Re: Luajit Valgrind SEGV (invalid read, access not within mapped region) x64.

  • From: Mike Pall <mike-1404@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 19 Apr 2014 18:31:43 +0200

Jordan Henderson wrote:
> I am trying to run my application which makes use of embedded luajit
> using valgrind.

Checking the return value of luaL_newstate() is mandatory. Then
you'd probably find that it returns NULL under Valgrind.

Valgrind 3.9.0 has chosen to block MAP_32BIT, which breaks LuaJIT
on Linux/x64:

  https://bugs.kde.org/show_bug.cgi?id=324181

Older versions of Valgrind still work. But it wasn't that useful
to debug LuaJIT on x64, anyway, due to the mandatory use of the
builtin allocator.

--Mike

Other related posts: