diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 09:36:30 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-24 14:22:35 -0700 |
| commit | 188e471339dfe652b8ff9f3bbe4cc262a040c584 (patch) | |
| tree | d7267619b1909f2deaf319c560a64d667d141d35 /src/libstd/rt/task.rs | |
| parent | d425218395b4a4dd7c6e4f3d680447efd2a3abc6 (diff) | |
| download | rust-188e471339dfe652b8ff9f3bbe4cc262a040c584.tar.gz rust-188e471339dfe652b8ff9f3bbe4cc262a040c584.zip | |
Another round of test fixes and merge conflicts
Diffstat (limited to 'src/libstd/rt/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index b3c65ce4749..1ea68bb52d7 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -479,7 +479,6 @@ pub extern "C" fn rust_stack_exhausted() { use rt::in_green_task_context; use rt::task::Task; use rt::local::Local; - use rt::logging::Logger; use unstable::intrinsics; unsafe { @@ -529,8 +528,12 @@ pub extern "C" fn rust_stack_exhausted() { do Local::borrow |task: &mut Task| { let n = task.name.as_ref().map(|n| n.as_slice()).unwrap_or("<unnamed>"); - format_args!(|args| { task.logger.log(args) }, - "task '{}' has overflowed its stack", n); + // See the message below for why this is not emitted to the + // task's logger. This has the additional conundrum of the + // logger may not be initialized just yet, meaning that an FFI + // call would happen to initialized it (calling out to libuv), + // and the FFI call needs 2MB of stack when we just ran out. + rterrln!("task '{}' has overflowed its stack", n); } } else { rterrln!("stack overflow in non-task context"); |
