Skip to content

Instantly share code, notes, and snippets.

@evax
Created February 18, 2011 15:23
Show Gist options
  • Save evax/833806 to your computer and use it in GitHub Desktop.
Save evax/833806 to your computer and use it in GitHub Desktop.
Program terminated with signal 11, Segmentation fault.
#0 unlink_free_block (allctr=0x900b80, block=0x28)
at beam/erl_goodfit_alloc.c:453
453 Uint sz = BLK_SZ(blk);
(gdb) thread apply all bt
Thread 12 (Thread 1104):
#0 0x00007f5eea8e5f8c in __libc_recv (fd=32, buf=<value optimised out>,
n=<value optimised out>, flags=<value optimised out>)
at ../sysdeps/unix/sysv/linux/x86_64/recv.c:34
#1 0x00007f5ee744e819 in recv (this=<value optimised out>,
cmd_=0x7f5ee4d16d20, block_=<value optimised out>)
at /usr/include/bits/socket2.h:45
#2 zmq::mailbox_t::recv (this=<value optimised out>, cmd_=0x7f5ee4d16d20,
block_=<value optimised out>) at mailbox.cpp:203
#3 0x00007f5ee7451b3f in zmq::socket_base_t::process_commands (this=0x976f20,
block_=<value optimised out>, throttle_=false) at socket_base.cpp:639
#4 0x00007f5ee7451d64 in zmq::socket_base_t::recv (this=0x976f20,
msg_=0x7f5ee4d16e40, flags_=0) at socket_base.cpp:558
#5 0x00007f5ee744a51e in receiver_thread (handle=0x9147f8)
at c_src/ezmq_nif.c:446
#6 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
#7 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#8 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
Thread 11 (Thread 1094):
#0 pthread_cond_wait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00000000005a2639 in ethr_cond_wait (cnd=0x84a4e4, mtx=0x80)
at common/ethr_mutex.c:1348
#2 0x000000000046e0e9 in erts_cnd_wait (unused=<value optimised out>)
at beam/erl_threads.h:632
#3 erts_smp_cnd_wait (unused=<value optimised out>) at beam/erl_smp.h:428
#4 sys_msg_dispatcher_func (unused=<value optimised out>)
at beam/erl_trace.c:3240
#5 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
#6 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#7 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8 0x0000000000000000 in ?? ()
Thread 10 (Thread 1095):
#0 pthread_cond_wait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00000000005a2639 in ethr_cond_wait (cnd=0x8958c4, mtx=0x80)
---Type <return> to continue, or q <return> to quit---
at common/ethr_mutex.c:1348
#2 0x000000000054384f in erts_cnd_wait (unused=<value optimised out>)
at beam/erl_threads.h:632
#3 child_waiter (unused=<value optimised out>) at sys/unix/sys.c:2831
#4 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
#5 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#6 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7 0x0000000000000000 in ?? ()
Thread 9 (Thread 1093):
#0 pthread_cond_wait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00000000005a2639 in ethr_cond_wait (cnd=0x890554, mtx=0x80)
at common/ethr_mutex.c:1348
#2 0x000000000047592f in erts_cnd_wait (unused=<value optimised out>)
at beam/erl_threads.h:632
#3 erts_smp_cnd_wait (unused=<value optimised out>) at beam/erl_smp.h:428
#4 emergency_watchdog (unused=<value optimised out>) at beam/utils.c:3898
#5 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
---Type <return> to continue, or q <return> to quit---
#6 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#7 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8 0x0000000000000000 in ?? ()
Thread 8 (Thread 1103):
#0 0x00007f5eea432f23 in epoll_wait ()
at ../sysdeps/unix/syscall-template.S:82
#1 0x00007f5ee7459740 in zmq::epoll_t::loop (this=0x976d10) at epoll.cpp:141
#2 0x00007f5ee74614d6 in thread_routine (arg_=0x976d80) at thread.cpp:70
#3 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#4 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5 0x0000000000000000 in ?? ()
Thread 7 (Thread 1092):
#0 0x00007f5eea8e5b8d in read () at ../sysdeps/unix/syscall-template.S:82
#1 0x0000000000542750 in read (unused=<value optimised out>)
at /usr/include/bits/unistd.h:45
#2 signal_dispatcher_thread_func (unused=<value optimised out>)
at sys/unix/sys.c:2902
---Type <return> to continue, or q <return> to quit---
#3 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
#4 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#5 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()
Thread 6 (Thread 1102):
#0 0x00007f5eea432f23 in epoll_wait ()
at ../sysdeps/unix/syscall-template.S:82
#1 0x00007f5ee7459740 in zmq::epoll_t::loop (this=0x9749f0) at epoll.cpp:141
#2 0x00007f5ee74614d6 in thread_routine (arg_=0x974a60) at thread.cpp:70
#3 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#4 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5 0x0000000000000000 in ?? ()
Thread 5 (Thread 1088):
#0 0x00007f5eea42b2c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x0000000000542190 in erts_sys_main_thread () at sys/unix/sys.c:3008
#2 0x000000000044ef41 in erl_start (argc=26, argv=<value optimised out>)
---Type <return> to continue, or q <return> to quit---
at beam/erl_init.c:1439
#3 0x00000000004329e9 in main (argc=0, argv=0x0) at sys/unix/erl_main.c:29
Thread 4 (Thread 1101):
#0 0x00007f5eea432f23 in epoll_wait ()
at ../sysdeps/unix/syscall-template.S:82
#1 0x00007f5ee7459740 in zmq::epoll_t::loop (this=0x974380) at epoll.cpp:141
#2 0x00007f5ee74614d6 in thread_routine (arg_=0x9743f0) at thread.cpp:70
#3 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#4 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5 0x0000000000000000 in ?? ()
Thread 3 (Thread 1100):
#0 0x00007f5eea432f23 in epoll_wait ()
at ../sysdeps/unix/syscall-template.S:82
#1 0x00007f5ee7459740 in zmq::epoll_t::loop (this=0x974150) at epoll.cpp:141
#2 0x00007f5ee74614d6 in thread_routine (arg_=0x9741c0) at thread.cpp:70
#3 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#4 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
---Type <return> to continue, or q <return> to quit---
#5 0x0000000000000000 in ?? ()
Thread 2 (Thread 1097):
#0 0x00007f5eea426203 in __poll (fds=<value optimised out>,
nfds=<value optimised out>, timeout=1000)
at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x000000000054d75b in check_fd_events (ps=0x7f5eea1763d8,
pr=<value optimised out>, len=<value optimised out>,
utvp=<value optimised out>) at sys/common/erl_poll.c:1969
#2 erts_poll_wait_nkp (ps=0x7f5eea1763d8, pr=<value optimised out>,
len=<value optimised out>, utvp=<value optimised out>)
at sys/common/erl_poll.c:2068
#3 0x00000000005507f5 in erts_check_io_nkp (do_wait=<value optimised out>)
at sys/common/erl_check_io.c:1156
#4 0x000000000049f187 in scheduler_wait (fcalls=<value optimised out>,
esdp=0x7f5eea249a00, rq=0x7f5eea23b340) at beam/erl_process.c:1089
#5 0x00000000004a25b3 in schedule (p=<value optimised out>,
calls=<value optimised out>) at beam/erl_process.c:5172
#6 0x0000000000526c52 in process_main () at beam/beam_emu.c:1181
#7 0x000000000049da93 in sched_thread_func (vesdp=<value optimised out>)
at beam/erl_process.c:3566
#8 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
---Type <return> to continue, or q <return> to quit---
#9 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#10 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
Thread 1 (Thread 1096):
#0 unlink_free_block (allctr=0x900b80, block=0x28)
at beam/erl_goodfit_alloc.c:453
#1 0x0000000000442817 in mbc_free (allctr=0x900b80, p=<value optimised out>)
at beam/erl_alloc_util.c:805
#2 0x00000000004439ef in do_erts_alcu_free (type=<value optimised out>,
unused=<value optimised out>, p=<value optimised out>)
at beam/erl_alloc_util.c:2648
#3 erts_alcu_free_thr_pref (type=<value optimised out>,
unused=<value optimised out>, p=<value optimised out>)
at beam/erl_alloc_util.c:2699
#4 0x00000000004f3eea in erts_free (p=0x7f5ee90bd810,
new_sz=<value optimised out>, objv=<value optimised out>,
nobj=<value optimised out>) at beam/erl_alloc.h:210
#5 do_minor (p=0x7f5ee90bd810, new_sz=<value optimised out>,
objv=<value optimised out>, nobj=<value optimised out>)
at beam/erl_gc.c:1056
---Type <return> to continue, or q <return> to quit---
#6 0x00000000004f7f12 in minor_collection (p=0x7f5ee90bd810, need=4,
objv=0x7f5eea23b940, nobj=6) at beam/erl_gc.c:758
#7 erts_garbage_collect (p=0x7f5ee90bd810, need=4, objv=0x7f5eea23b940,
nobj=6) at beam/erl_gc.c:375
#8 0x000000000052f814 in process_main ()
at x86_64-unknown-linux-gnu/opt/smp/beam_hot.h:36
#9 0x000000000049da93 in sched_thread_func (vesdp=<value optimised out>)
at beam/erl_process.c:3566
#10 0x00000000005a465a in thr_wrapper (vtwd=<value optimised out>)
at pthread/ethread.c:106
#11 0x00007f5eea8de971 in start_thread (arg=<value optimised out>)
at pthread_create.c:304
#12 0x00007f5eea43292d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment