[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_newstate crashes on "setnilvalue(L, registry(L)); ", lua_State L initialized with garbage?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 16 Mar 2017 10:55:20 -0300
> Once a few dozens of launching my app I notice crash on start, lua
> Keeping in mind that this could be our-code issue, anyway I looked on
> lua_newstate() implementation.
> Here it is with my comments:
> setnilvalue macro gives something like this:
> if (i_o >= L->base && i_o < L->top && !stuckref(i_o))
> i_o->value.gc->gch.refCount--; // crashed
What version of Lua are you talking about? Lua does not use reference
count and nowhere in its code you would find a 'refCount' field.