[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.4.0-rc5 segfault in low memory conditions
- From: Sergey Zakharchenko <doublef.mobile@...>
- Date: Sat, 13 Jun 2020 16:47:12 +0400
Thanks for your efforts!
> It looks to me like the issue is not with the actual failure of theallocation (since the retry succeeds), but the fact that we're doing agarbage collection at that precise point, which is leaving somethingcorrupted in a way that breaks later.
Yes, this is my opinion as well. When I compared memory dumps before and after the full GC triggered, I only saw differences in the marked bits, a gclist pointer in a proto that was wild (?pointed to a Lua routine?) became null, and pointers in state changed. The best tools for fixing this are likely rr (working on getting a host that can run it up) and superhuman Lua GC internals knowledge (which I lack).