Re: LuaJIT Crash When Returning Null Pointer from FFI

  • From: Jim Burnes <jvburnes@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 17 Jul 2014 12:09:36 -0500

Mike ... more than happy to.  Just need to know how much you need.  I'll
enable debug syms in LuaJIT, but the rest of the app is getting pretty
large so if you can be more specific I can provide most anything.  Stand by
and I'll re-run with debug sums.


On Thu, Jul 17, 2014 at 5:21 AM, Mike Pall <mike-1407@xxxxxxxxxx> wrote:

> Jim Burnes wrote:
> > In any case the print statement never actually executes.  It appears to
> be
> > crashing in the assembly code that interfaces back into the Lua program
> > (FFI code I'm guessing).
>
> Well, a *complete* self-contained example would help. Not some
> snippets taken out of context. Simply by the process of reducing
> it to that, one often finds the problem.
>
> Returning a NULL pointer is fine, as well as printing it (it'll
> print as: cdata<...>: NULL).
>
> Also, build LuaJIT with debug symbols enabled, otherwise the
> debugger output isn't very useful.
>
> --Mike
>
>

Other related posts: