lua-users home
lua-l archive

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


[FUN] here means both "fun" and "function" :-)

function segfault()
   for k = 1, 1/0 do
      x = debug.getinfo(k) or x.func()
   end
end

Actually, this code invokes pmain()
https://www.lua.org/source/5.3/lua.c.html#pmain
Vanilla Lua crashes (why?)
LuaJIT indeed invokes "nested interpreter" (press Ctrl-D to return back to "parent interpreter")