lua-users home
lua-l archive

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

On Wed, Jul 08, 2020 at 11:50:54 -0300, Roberto Ierusalimschy wrote:
> - Heap overflow in luaH_get
> Until now, I have no clues about this one. It seems to be a real problem
> in the GC, but it is hard to reproduce. Applying the previous fixes
> makes it desapear, but I cannot see how they could solve the bug.

I assume you're already doing so, but just in case, the `rr` debug tool is
exceedingly helpful when trying to diagnose this kind of thing.  You can
walk forward and backward and replay the execution of a failing test case
over and over until you diagnose what happened.  If you're comfortable
with `gdb` but really wish you could put a watchpoint on the address
of a variable which was definitely corrupted by the time the crash happened
and then `reverse-continue` until that corruption goes away, the `rr` is
what you need.

If I'm already preaching to the choir here, then I apologise :D


Daniel Silverstone               
PGP mail accepted and encouraged.            Key Id: 3CCE BABE 206C 3B69