Re: segfault on x86_64 using musl libc

  • From: Mike Pall <mike-1207@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 17 Jul 2012 19:51:32 +0200

John Spencer wrote:
> Rich came up with a clever portable (POSIX) way that could be used instead
> of the existing non-threadsafe fallback code for OSX/OpenBSD/non-TLS.

There's no way I can drag a dependency on pthreads into the LuaJIT
core, because it's meant to be embedded. Pthreads needs to be loaded
early on (or bad things will happen), so the executable must be
linked with it. But that would kill the ability to use the LuaJIT
shared library as a drop-in replacement for Lua.

--Mike

Other related posts: