c - How to diagnose an application crash involving LuaJIT -
i'm trying load chunk of lua text not stored on file system. added element package.loaders
c. phone call lua_load
, in c, load/execute chunk, application aborts, crashes, no exception raised. app gone.
this pretty big problem. right i'm trying debug 1 problem, happens if happens in production real? must missing something. how write quality, production code without luajit aborting app? i'm missing something. missing?
a related article suggested running app regular lua. did , worked fine. in luajit doesn't code. can't find it.
i may asking 2 questions:
how find specific problem particular code right now. works in regular lua, fails in luajit.
how utilize luajit when hits doesn't like, won't abort entire process?
the crash in luajit in lib_package.c @ lua_call(l, 1, 1); /* run loaded module */
around line 431
.
c lua luajit
No comments:
Post a Comment