lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Pall, 23.07.2011 16:54:
Stefan Behnel wrote:
the latest LuaJIT2 (with and without hotfix#1) crashes for me in
lj_dispatch_init(), right when creating a new Lua state using
lua_open(). So I guess there's not much I can be doing wrong myself.

The standalone luajit.c does exactly that: call lua_open() first.
And it doesn't crash.

Ah, right, should have tried that first. That crashes here, too:

.../LuaJIT-2.0.0-beta8/src$ gdb ./luajit
(gdb) run
Program received signal SIGSEGV, Segmentation fault.
0x0000000000409ef8 in ?? ()
(gdb) bt 10
#0  0x0000000000409ef8 in ?? ()
#1  0x0000000000409a04 in ?? ()
#2  0x00000000004239cf in luaL_newstate ()
#3  0x000000000040486d in main ()

Appears to be stripped, but it's most likely the same place where it crashes.

This seems to be a problem with gcc. I'm using gcc 4.4.3 on Ubuntu. When I compile with -O2, it works. When I compile it using -O3, it crashes.

Stefan