Public bug reported:

LuaJIT: v2.0.1-fixed-32-g3eeb7d3

g++:
gcc version 4.6.3 (Debian 4.6.3-15) 
!! Only C++ builds are affected.

with -static-libgcc:
ldd src/box/tarantool_box 
        linux-vdso.so.1 (0x00007fffdf3ff000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007fcc67eb6000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcc67cb2000)
        libbfd-2.22-system.so => /usr/lib/libbfd-2.22-system.so 
(0x00007fcc67ba9000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007fcc678a1000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcc675a3000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcc671f5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fcc680f1000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fcc66fde000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007fcc66dc8000)

#0  0x00007feb954d1295 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007feb954d4438 in __GI_abort () at abort.c:90
#2  0x00007feb9507c7fe in _Unwind_SetGR () from 
/lib/x86_64-linux-gnu/libgcc_s.so.1
#3  0x00007feb95ba9e00 in __gxx_personality_v0 () from 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00000000004e690b in _Unwind_RaiseException_Phase2 ()
#5  0x00000000004e6f0c in _Unwind_RaiseException ()
#6  0x00000000004835a8 in lj_err_throw ()
#7  0x0000000000483aad in lj_err_run ()
#8  0x0000000000483e82 in lj_err_callermsg ()
#9  0x0000000000483f3a in err_argmsg ()
#10 0x0000000000484132 in lj_err_argtype ()
#11 0x0000000000484149 in lj_err_argt ()
#12 0x000000000048c987 in luaL_checklstring ()
#13 0x000000000042b788 in lbox_pack (L=0x41f77b98) at 
/data/work/tarantool/cplusplus-v2/src/box/box_lua.cc:1530
#14 0x00000000004a3d3f in lj_BC_FUNCC ()
#15 0x000000000048ed9c in lua_call ()
#16 0x00000000004423dd in tarantool_lua_dostring (L=0x41f77b98, 
str=0x7feb8dc5603c "box.pack()")
    at /data/work/tarantool/cplusplus-v2/src/lua/init.cc:1122
#17 0x0000000000442515 in tarantool_lua (L=0x41f77b98, out=0x7feb9647e038, 
str=0x7feb8dc5603c "box.pack()")
    at /data/work/tarantool/cplusplus-v2/src/lua/init.cc:1147
#18 0x0000000000466e98 in admin_dispatch (coio=0x7feb8dc6df10, 
iobuf=0x7feb8dc7e0c0, L=0x41f77b98) at src/admin.rl:237
#19 0x0000000000469c52 in admin_handler(typedef __va_list_tag __va_list_tag *) 
(ap=0x7feb8dc7e098) at src/admin.rl:356
#20 0x0000000000452bbb in fiber_loop (data=0x0) at 
/data/work/tarantool/cplusplus-v2/src/fiber.cc:378
#21 0x00000000004808b8 in coro_init () at 
/data/work/tarantool/cplusplus-v2/third_party/coro/coro.c:95

without -static-libgcc:
ldd ../src/box/tarantool_box 
        linux-vdso.so.1 (0x00007fff515ff000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007fa53bd02000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa53bafe000)
        libbfd-2.22-system.so => /usr/lib/libbfd-2.22-system.so 
(0x00007fa53b9f5000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007fa53b6ed000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa53b3ef000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007fa53b1d8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa53ae2b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa53bf3d000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa53ac14000)

and all works fine.

** Affects: tarantool
     Importance: Undecided
         Status: New

** Summary changed:

- LuaJIT exception handling is broken by -static-libgcc option on g++-4.7
+ LuaJIT exception handling is broken by -static-libgcc option on g++-4.6

-- 
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1187406

Title:
  LuaJIT exception handling is broken by -static-libgcc option on
  g++-4.6

Status in Tarantool - an efficient in-memory data store:
  New

Bug description:
  LuaJIT: v2.0.1-fixed-32-g3eeb7d3

  g++:
  gcc version 4.6.3 (Debian 4.6.3-15) 
  !! Only C++ builds are affected.

  with -static-libgcc:
  ldd src/box/tarantool_box 
          linux-vdso.so.1 (0x00007fffdf3ff000)
          libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007fcc67eb6000)
          libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcc67cb2000)
          libbfd-2.22-system.so => /usr/lib/libbfd-2.22-system.so 
(0x00007fcc67ba9000)
          libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007fcc678a1000)
          libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcc675a3000)
          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcc671f5000)
          /lib64/ld-linux-x86-64.so.2 (0x00007fcc680f1000)
          libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fcc66fde000)
          libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007fcc66dc8000)

  #0  0x00007feb954d1295 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
  #1  0x00007feb954d4438 in __GI_abort () at abort.c:90
  #2  0x00007feb9507c7fe in _Unwind_SetGR () from 
/lib/x86_64-linux-gnu/libgcc_s.so.1
  #3  0x00007feb95ba9e00 in __gxx_personality_v0 () from 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
  #4  0x00000000004e690b in _Unwind_RaiseException_Phase2 ()
  #5  0x00000000004e6f0c in _Unwind_RaiseException ()
  #6  0x00000000004835a8 in lj_err_throw ()
  #7  0x0000000000483aad in lj_err_run ()
  #8  0x0000000000483e82 in lj_err_callermsg ()
  #9  0x0000000000483f3a in err_argmsg ()
  #10 0x0000000000484132 in lj_err_argtype ()
  #11 0x0000000000484149 in lj_err_argt ()
  #12 0x000000000048c987 in luaL_checklstring ()
  #13 0x000000000042b788 in lbox_pack (L=0x41f77b98) at 
/data/work/tarantool/cplusplus-v2/src/box/box_lua.cc:1530
  #14 0x00000000004a3d3f in lj_BC_FUNCC ()
  #15 0x000000000048ed9c in lua_call ()
  #16 0x00000000004423dd in tarantool_lua_dostring (L=0x41f77b98, 
str=0x7feb8dc5603c "box.pack()")
      at /data/work/tarantool/cplusplus-v2/src/lua/init.cc:1122
  #17 0x0000000000442515 in tarantool_lua (L=0x41f77b98, out=0x7feb9647e038, 
str=0x7feb8dc5603c "box.pack()")
      at /data/work/tarantool/cplusplus-v2/src/lua/init.cc:1147
  #18 0x0000000000466e98 in admin_dispatch (coio=0x7feb8dc6df10, 
iobuf=0x7feb8dc7e0c0, L=0x41f77b98) at src/admin.rl:237
  #19 0x0000000000469c52 in admin_handler(typedef __va_list_tag __va_list_tag 
*) (ap=0x7feb8dc7e098) at src/admin.rl:356
  #20 0x0000000000452bbb in fiber_loop (data=0x0) at 
/data/work/tarantool/cplusplus-v2/src/fiber.cc:378
  #21 0x00000000004808b8 in coro_init () at 
/data/work/tarantool/cplusplus-v2/third_party/coro/coro.c:95

  without -static-libgcc:
  ldd ../src/box/tarantool_box 
          linux-vdso.so.1 (0x00007fff515ff000)
          libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007fa53bd02000)
          libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa53bafe000)
          libbfd-2.22-system.so => /usr/lib/libbfd-2.22-system.so 
(0x00007fa53b9f5000)
          libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007fa53b6ed000)
          libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa53b3ef000)
          libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007fa53b1d8000)
          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa53ae2b000)
          /lib64/ld-linux-x86-64.so.2 (0x00007fa53bf3d000)
          libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa53ac14000)

  and all works fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1187406/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to