[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem with closures, nCcalls on Lua 5.4.0 (alpha)
- From: Tom Sutcliffe <tomsci@...>
- Date: Fri, 28 Jun 2019 19:58:05 GMT
Hi Roberto,
I keep forgetting latest master is on github, I realise I should have checked there first.
In short updating to latest github master has fixed the nCcalls problem I was seeing. Many thanks for the quick response!
Cheers,
Tom
On June 28, 2019 at 4:45 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
I narrowed it down to something going wrong with the value of nCcalls in a coroutine's lua_State. I managed to get it to underflow and wrap around, and once it has a value like 0xFFFFFFFF all sorts of interesting things go wrong (spurious warnings about yielding across a C boundary, out of stack errors, etc).
If it is not asking to much, do you think you could repeat your tests
with the current version in github? Commit 3cd9b56ae6 is titled
"Revamp around 'L->nCcalls' count". Maybe this bug has already been
fixed there.
-- Roberto