[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.0-rc5 segfault in low memory conditions
- From: Sergey Zakharchenko <doublef.mobile@...>
- Date: Sun, 14 Jun 2020 08:23:48 +0400
Sergey Zakharchenko <doublef.mobile@gmail.com>:
[seemingly string-constant-related low memory handling issues]
> I'll see if I can reproduce these issues on x86 with a simpler test
> case I can share.
The attached script, which itself does some GC ops, causes Lua
5.4.0/x86-64 patched with the proto loading patches to fail with the
messages:
attempt to call a number value
stack traceback:
test-str.lua:2: in main chunk
[C]: in ?
when I forcefully fail allocation #100, which seems to be for one of
the strings (4):
fail_alloc_at: 00000100: failing
00000100 (nil) 4 (nil) 31
Best regards,
--
DoubleF
collectgarbage"collect"
collectgarbage"collect"
(function()
print"str0"
print"str1"
print"str2"
return (function()
print"str3"
print"str4"
print"str5"
return (function()
print"str6"
print"str7"
print"str8"
return function()
end
end)()
end)()
end)()
- References:
- Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Andrew Gierth
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Bogdan Marinescu
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Andrew Gierth
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko
- Re: Lua 5.4.0-rc5 segfault in low memory conditions, Sergey Zakharchenko