[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem with garbage collector while parsing
- From: Ingo van Lil <inguin@...>
- Date: Thu, 13 Oct 2011 15:31:12 +0200
On 13/10/2011 10:54, Ingo van Lil wrote:
I'm currently hunting a bug in our project where the LUA garbage
collector occasionally frees one particular Proto object although it is
still reachable and in use. I've now managed to come up with a small
example demonstrating the problem.
Some more information: I believe I've identified the culprit to be the
luaC_checkGC() call introduced by item 6 of the 5.1.4 patches on
http://www.lua.org/bugs.html. Just before the interpreter runs into the
assertion failure this call sweeps the string table during the
anchor_token() call in lparser.c:379. If I remove the checkGC() call my
scripts run stable again.