Re: Segmentation fault on FFI call containing OpenMP clause

  • From: Mike Pall <mike-1412@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 9 Dec 2014 21:49:38 +0100

Ciprian Tomoiaga wrote:
> I recompiled with the specified opition, but it still crashes. :(
> 
> Do I have any other options?

Well I tried myself and it prints two lines, but then crashes when
the shared library is unloaded (as a consequence of lua_close()).
Looks like OpenMP doesn't like to be unloaded -- this never
happens with programs that are statically linked against it.

Add 'os.exit(0)' at the end of the Lua script to avoid the unload.

--Mike

Other related posts: