lua-users home
lua-l archive

Re: [ 5.4 ] Bug - L->nCcalls unsigned short overflow

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


> Sometimes when calling collectgarbage() inside a coroutine, my application
> crashes with 'C Stack Overflow'. I managed to track it down to a negative
> number being assigned to nCcalls in lstate.c and ldo.c, so nCcalls becomes
> ~65534.
Many thanks for the report.
Are you sure about the cause? In particular, can you check whether the
problem is that (L->nci > L->nCcalls) when luaD_rawrunprotected is
called? That should never happen.
Can you produce a "small" self-sufficient program that reproduces the bug?
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /