[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ 5.4 ] Bug - L->nCcalls unsigned short overflow
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 27 Jun 2018 11:11:02 -0300
> 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