Skip to content

"fatal, 'on_rust_stack()' failed" with recursive resource #2061

Closed
@jruderman

Description

@jruderman
resource r(b: int) { r(b); }
fn main() { r(0); }

Hits a fatal assertion rather than simply failing:

rust: task 7fce71800000 ran out of stack
rust: fatal, 'on_rust_stack()' failed, ../src/rt/rust_task.cpp:570 

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions