[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The document of lua_remove is out of date
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 13 Jul 2022 11:54:49 -0300
> Well, You remind me. Recently our project has upgraded to lua5.4. I found a
> traceback: attempt to call a nil value, when I call lua_remove in a
> function (the function is invoked in lua).
> The C stack is lua_remove -> lua_pop -> lua_settop -> luaF_close ->
> prepcallclosemth -> callclosemethod
> I'm sure we have no to-be-closed variables yet.
> I'll continue to figure it out And try to reproduce the traceback.
Are you using string buffers (luaL_Buffer)? They use to-be-closed
variables. Maybe you are removing a buffer from the stack without
properly finalizing it first.