Skip to content

Conversation

@ahomescu
Copy link
Contributor

The lua test occasionally crashes with stack overflows. Build and run it in release mode so the compiler optimizes a lot of the stack variables away.


SCRIPT_DIR="$(cd "$(dirname "$0" )" && pwd)"

ulimit -s 16384 # debug build requires this much stack to pass tests
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we increase this limit instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running in release mode seems fine. We could also run in release with debug info mode if we want.

@ahomescu ahomescu merged commit cde8a01 into master Dec 2, 2025
2 checks passed
@ahomescu ahomescu deleted the ahomescu/b/fix_lua_stack_overflow branch December 2, 2025 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants