-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Description
Logging some pseudo-crates (::rt:::mem, rt::upcall) causes even (as well as more complicated programs) the trivial hello world program to crash.
Hello world:
fn main () {
println ("Hello World!")
}
Invocation on sh:
RUST_LOG="::rt::mem" ./hello
Result on ::rt::mem:
rust: new dom 0x4b2460
rust: new dom 0x4b31d0
rust: new task 0x4b4080
rust: creating new stack for task 4b4080
rust: calculating new stack size for 0x4b4080
rust: min: 768 current: 0 requested: 768
rust: next stack size: 1152
rust: new stk 0x4b43b0
rust: stk end 0x4b5060
hello: /home/steven/others/sources/rust/src/rt/rust_log.cpp:137: void rust_log::trace_ln(rust_task*, uint32_t, char*): Assertion `!task->on_rust_stack() && "logging on rust stack"' failed.
aborted (core dumped)
Result for ::rt::upcall
hello: /home/steven/others/sources/rust/src/rt/rust_log.cpp:137: void rust_log::trace_ln(rust_task*, uint32_t, char*): Assertion `!task->on_rust_stack() && "logging on rust stack"' failed.
aborted (core dumped)
Metadata
Metadata
Assignees
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.