Re: LuaJIT built statically segfaults when loading external module

  • From: Mike Pall <mike-1206@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 7 Jun 2012 15:37:26 +0200

Vladimir Dronnikov wrote:
> > The dynamic library loader (-ldl) generally doesn't work with
> > static builds (some toolchains give you a warning if you try).
> > That is a known limitation and not specific to LuaJIT.
> 
> If I build statically the latest Lua-5.2.0, I get no SEGV. Do Lua and
> LuaJIT require() things differently?

It would fail and/or crash as soon as you'd try to load a C module.
LuaJIT checks the global symbol space for embedded bytecode modules
first, so you discover the problem earlier.

--Mike

Other related posts: