gluon-lang / gluon

A static, type inferred and embeddable language written in Rust.
https://gluon-lang.org
MIT License
3.16k stars 145 forks source link

Stack overflow on code loading / evaluation #934

Open JohnDoneth opened 1 year ago

JohnDoneth commented 1 year ago

Stack overflows occur for me when trying to load or evaluate any code using load_script or run_expr. I figured this might be an issue with my code but found that it occurs on a clean pull of master and on the v0.18 release tag. Possibly related to https://github.com/gluon-lang/gluon/issues/903.

> cargo run --example 24

thread 'main' has overflowed its stack
error: process didn't exit successfully: `target\debug\examples\24.exe` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)

Attempted on Windows 10 with the following Rust toolchain:

stable-x86_64-pc-windows-msvc (default)
rustc 1.63.0 (4b91a6ea7 2022-08-08)