Stack trace on SIGSEGV?

  • From: Luke Gorrie <lukego@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 8 Oct 2012 07:42:22 +0200

Hi!

Is there an easy trick to print a Lua stack trace when I hit a
SIGSEGV? This would be convenient when debugging FFI code that hits
invalid pointers.

Perhaps somebody has a clever hack for runtime bounds checking on
pointer arithmetic, even?

-Luke

Other related posts: