[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.4.0-rc5 segfault in low memory conditions
- From: Andrew Gierth <andrew@...>
- Date: Sat, 13 Jun 2020 13:30:27 +0100
>>>>> "Sergey" == Sergey Zakharchenko <email@example.com> writes:
Sergey> Hi again,
Sergey> FWIW glibc malloc with MALLOC_CHECK_=3 fails earlier in the
Sergey> same (fail #345) test case:
I can reproduce something that looks almost exactly like this one, so
it's not OS-dependent or glibc-malloc dependent, there must be a real
bug in Lua somewhere.
It looks to me like the issue is not with the actual failure of the
allocation (since the retry succeeds), but the fact that we're doing a
garbage collection at that precise point, which is leaving something
corrupted in a way that breaks later.