Re: segfaults on OS X with latest HEAD

  • From: Mike Pall <mike-1208@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 2 Aug 2012 14:19:28 +0200

Richard Hundt wrote:
> Oh right, it seems to be the last commit (4b0af61) which broke it.

I bet it's those semi-broken SSE optimizations Apple added to
their GCC ... Can you try to remove the 'LJ_ALIGN(8)' for the
CCallState in lj_ccall.h and try again?

> As for where it crashes, gdb tells me:
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: 13 at address: 0x0000000000000000
> 0x0000000100042cb3 in luaL_checkstack ()

OTOH this seems to be something unrelated. You're trying this with
the standard command line executable? Please recompile with debug
options, run it under gdb and print a backtrace (bt command).

--Mike

Other related posts: