[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#pmainVanilla Lua crashes (why?)
LuaJIT indeed invokes "nested interpreter" (press Ctrl-D to return back to "parent interpreter")