[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 'luaD_precall' triggering 'luaB_assert'
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 24 Jul 2023 12:08:58 -0300
> Hello folks,
>
> We use Lua, 5.4.6 via Fennel, to power "the brains" of our Android apps
> at Egghead Games. Everything works well, but recently, we have gotten
> some crash reports about 'luaD_precall' triggering 'luaB_assert'.
>
> Looking at 'ldo.c', the only assertion in 'luaD_precall' is:
>
> lua_assert(ci->top.p <= L->stack_last.p);
'luaB_assert' is the assert exported to Lua. It means that some Lua code
is calling "assert" (so that, in the C level, it goes through 'luaD_precall'
to call 'luaB_assert' that calls 'assert'.) It has no relation to
'lua_assert'.
-- Roberto