Skip to content

Instantly share code, notes, and snippets.

@rtsisyk
Created March 23, 2017 12:18
Show Gist options
  • Save rtsisyk/93af3959a73ac770431eae0b2de0c29b to your computer and use it in GitHub Desktop.
Save rtsisyk/93af3959a73ac770431eae0b2de0c29b to your computer and use it in GitHub Desktop.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `tarantool logger.test.lua <hot_standby> '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007ff47c5e46a0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
[Current thread is 1 (Thread 0x7ff471bfc700 (LWP 5439))]
Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.1.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.14.1-27.el7_3.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-11.el7.x86_64 libgomp-4.8.5-11.el7.x86_64 libselinux-2.5-6.el7.x86_64 libstdc++-4.8.5-11.el7.x86_64 libyaml-0.1.4-11.el7_0.x86_64 ncurses-libs-5.9-13.20130511.el7.x86_64 openssl-libs-1.0.1e-60.el7_3.1.x86_64 pcre-8.32-15.el7_2.1.x86_64 readline-6.2-9.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0 0x00007ff47c5e46a0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00000000004b2550 in cbus_wait_signal (bus=0x8dbbc0 <net_tx_bus>) at /data/src/cbus.h:408
#2 cbus_join (bus=bus@entry=0x8dbbc0 <net_tx_bus>, pipe=pipe@entry=0x8dbc40 <net_pipe>) at /data/src/cbus.c:158
#3 0x000000000046232d in net_cord_f(typedef __va_list_tag __va_list_tag *) () at /data/src/box/iproto.cc:926
#4 0x00000000004247bc in fiber_cxx_invoke(fiber_func, typedef __va_list_tag __va_list_tag *) (f=<optimized out>, ap=<optimized out>)
at /data/src/fiber.h:533
#5 0x00000000004afee0 in fiber_loop (data=<optimized out>) at /data/src/fiber.c:472
#6 0x00000000005ce11f in coro_init () at /data/third_party/coro/coro.c:110
(gdb) thread apply all bt
Thread 6 (Thread 0x7ff470bff700 (LWP 5440)):
#0 0x00007ff47b8c8701 in clone () from /lib64/libc.so.6
#1 0x00007ff47c5e0d00 in ?? () from /lib64/libpthread.so.0
#2 0x00007ff470bff700 in ?? ()
#3 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7ff47dd0ad80 (LWP 5435)):
#0 0x00007ff47c5e46d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00000000004b11b3 in cord_start (cord=cord@entry=0x8daf80 <iproto_init()::net_cord>, name=name@entry=0x5d4be8 "iproto",
f=f@entry=0x4b0d80 <cord_costart_thread_func>, arg=arg@entry=0x1dae600) at /data/src/fiber.c:740
#2 0x00000000004b1679 in cord_costart (cord=cord@entry=0x8daf80 <iproto_init()::net_cord>, name=name@entry=0x5d4be8 "iproto",
f=f@entry=0x462220 <net_cord_f(typedef __va_list_tag __va_list_tag *)>, arg=arg@entry=0x0) at /data/src/fiber.c:921
#3 0x0000000000464409 in iproto_init () at /data/src/box/iproto.cc:959
#4 0x000000000044e1f7 in box_init () at /data/src/box/box.cc:1080
#5 box_load_cfg () at /data/src/box/box.cc:1109
#6 0x000000000042518a in load_cfg () at /data/src/main.cc:458
#7 0x000000000045ba11 in lbox_cfg_load (L=0x407e5378) at /data/src/box/lua/cfg.cc:60
#8 0x00000000004dfec7 in lj_BC_FUNCC () at buildvm_x86.dasc:809
#9 0x00000000004cbec1 in lua_pcall (L=L@entry=0x407e5378, nargs=<optimized out>, nresults=nresults@entry=0, errfunc=errfunc@entry=0)
at lj_api.c:1055
#10 0x00000000004a4e15 in luaT_call (L=L@entry=0x407e5378, nargs=<optimized out>, nreturns=nreturns@entry=0) at /data/src/lua/utils.c:944
#11 0x000000000049fb69 in run_script_f (ap=<error reading variable: value has been optimized out>) at /data/src/lua/init.c:450
#12 0x00000000004247bc in fiber_cxx_invoke(fiber_func, typedef __va_list_tag __va_list_tag *) (f=<optimized out>, ap=<optimized out>)
at /data/src/fiber.h:533
#13 0x00000000004afee0 in fiber_loop (data=<optimized out>) at /data/src/fiber.c:472
#14 0x00000000005ce11f in coro_init () at /data/third_party/coro/coro.c:110
Thread 4 (Thread 0x7ff4723fd700 (LWP 5438)):
#0 0x00007ff47bdc0b43 in ?? () from /lib64/libgomp.so.1
#1 0x00007ff47bdbe410 in ?? () from /lib64/libgomp.so.1
#2 0x00007ff47c5e0dc5 in start_thread () from /lib64/libpthread.so.0
#3 0x00007ff47b8c873d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7ff4733ff700 (LWP 5436)):
---Type <return> to continue, or q <return> to quit---
#0 0x00007ff47bdc0b40 in ?? () from /lib64/libgomp.so.1
#1 0x00007ff47bdbe410 in ?? () from /lib64/libgomp.so.1
#2 0x00007ff47c5e0dc5 in start_thread () from /lib64/libpthread.so.0
#3 0x00007ff47b8c873d in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x7ff472bfe700 (LWP 5437)):
#0 0x00007ff47bdc0b51 in ?? () from /lib64/libgomp.so.1
#1 0x00007ff47bdbe410 in ?? () from /lib64/libgomp.so.1
#2 0x00007ff47c5e0dc5 in start_thread () from /lib64/libpthread.so.0
#3 0x00007ff47b8c873d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ff471bfc700 (LWP 5439)):
#0 0x00007ff47c5e46a0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00000000004b2550 in cbus_wait_signal (bus=0x8dbbc0 <net_tx_bus>) at /data/src/cbus.h:408
#2 cbus_join (bus=bus@entry=0x8dbbc0 <net_tx_bus>, pipe=pipe@entry=0x8dbc40 <net_pipe>) at /data/src/cbus.c:158
#3 0x000000000046232d in net_cord_f(typedef __va_list_tag __va_list_tag *) () at /data/src/box/iproto.cc:926
#4 0x00000000004247bc in fiber_cxx_invoke(fiber_func, typedef __va_list_tag __va_list_tag *) (f=<optimized out>, ap=<optimized out>)
at /data/src/fiber.h:533
#5 0x00000000004afee0 in fiber_loop (data=<optimized out>) at /data/src/fiber.c:472
#6 0x00000000005ce11f in coro_init () at /data/third_party/coro/coro.c:110
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment