Skip to content

tup aborts on nested lua file error #504

Description

@jp-embedded

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions