Skip to content

DwarfCompileUnit::createAndAddScopeChildren gobbles stack #92724

Open
@workingjubilee

Description

@workingjubilee

By far the most common stack overflow bug report nowadays for rustc is rustc dying in LLVM while emitting debuginfo. Lately DwarfCompileUnit::createAndAddScopeChildren has seemed to acquire the power of recursing on itself and destroying the stack essentially without assistance. People are setting hundreds of megabytes for RUST_MIN_STACK to get their code to compile. That's... closer to our resident set size in most executions?

Unlike other reports like #76920 this has been happening with our stock rustc distribution, as far as I can tell, and our bundled LLVM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions