lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Once a few dozens of launching my app I notice crash on start, lua
> initialization.
> 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.

-- Roberto