Note that this is documented in http://luajit.org/status.html > Currently some out-of-memory errors from on-trace code are not handled correctly. > The error may fall through an on-trace pcall or it may be passed on to the function > set with lua_atpanic on x64. This issue will be fixed with the new garbage collector. -- Sincerely, Alex Parrill