hashc icon indicating copy to clipboard operation
hashc copied to clipboard

compiler stack overflow with imports

Open feds01 opened this issue 1 year ago • 1 comments

The following snippet:

fmt := import("printing")
math := import("math")

main := () => {
}

The compiler crashes with a stack overflow:

thread 'main' has overflowed its stack
fatal runtime error: stack overflow

Meta

Backtrace

In LLDB, the stack trace is shown as:

    frame #18684: 0x0000000100141dc9 hashc`hash_tir::context::Context::enter_scope::h06b9541a92360227 + 1449
    frame #18685: 0x0000000100141dc9 hashc`hash_tir::context::Context::enter_scope::h06b9541a92360227 + 1449
    frame #18686: 0x0000000100141dc9 hashc`hash_tir::context::Context::enter_scope::h06b9541a92360227 + 1449
    frame #18687: 0x0000000100141dc9 hashc`hash_tir::context::Context::enter_scope::h06b9541a92360227 + 1449
    frame #18688: 0x000000010015b623 hashc`hash_semantics::passes::analysis_pass::AnalysisPass::pass_source::heebbb556d927c504 + 1619
    frame #18689: 0x000000010012b64f hashc`_$LT$hash_semantics..SemanticAnalysis$u20$as$u20$hash_pipeline..interface..CompilerStage$LT$Ctx$GT$$GT$::run::he6ab9b63c5b94072 + 3711

feds01 avatar Sep 17 '23 04:09 feds01