Skip to content

runtime segfaults (stack overflow) at exit when logging is on #2726

Closed
@bblum

Description

@bblum

With RUST_LOG=::rt, the runtime segfaults near the very end of its exit path.

The call is "KLOG_("Deleting scheduler %d", id);" in rust_scheduler::wait_for_schedulers. It gets into buffered_vfprintf and attempts to use 8K of stack space, which is apparently too far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: 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.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions