Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tup aborts on nested lua file error #504

Open
jp-embedded opened this issue Aug 15, 2024 · 0 comments
Open

tup aborts on nested lua file error #504

jp-embedded opened this issue Aug 15, 2024 · 0 comments

Comments

@jp-embedded
Copy link

The attached project makes tup abort.

$ ../tup-v0.8/tup 
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.000s] Reading in new environment variables...
[ tup ] [0.000s] Parsing Tupfiles...
 2) [0.001s] .
 [   ]  33%tup: luaparser.c:852: parse_lua_tupfile: Assertion `lua_gettop(gls) == 0' failed.
Aborted (core dumped)

It seems to me that parse_lua_tupfile() is invoked recursively and thus the assert should compare with what lua_gettop() would return at start of parse_lua_tupfile() instead of 0

tup-assert-test.tar.gz

jp-embedded pushed a commit to jp-embedded/tup that referenced this issue Aug 21, 2024
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

No branches or pull requests

1 participant