lua-users home
lua-l archive

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


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)()