Skip to content

Kcl run causes stack overflow #2046

@anotherdish

Description

@anotherdish

Bug Report

Please answer these questions before submitting your issue. Thanks!

Minimal reproduce step (Required)

cd /tmp
git clone https://github.com/kcl-lang/kcl.git
cd kcl
cargo build

running the following gives us the stack overflow:

user@/t/kcl (main) [2]> /tmp/kcl/_build/dist/linux/core/libkcl run test.k

thread 'main' (79949) has overflowed its stack
fatal runtime error: stack overflow, aborting
fish: Job 1, '/tmp/kcl/_build/dist/linux/core…' terminated by signal SIGABRT (Abort)

with

test.k

test = {
  bean: "test"
}
test

being the offending minimal test case identified

the following does not cause an issue:

_test = {
  bean: "test"
}
_test

What is your KCL components version? (Required)

Version: 0.12.3-c020ab3eb4b9179219d6837a57f5d323
Platform: x86_64-unknown-linux-gnu
GitCommit: 7a5fabf

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions