Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ cat ~/.kerlrc
KERL_CONFIGURE_OPTIONS="--enable-threads --enable-smp-support --enable-m64-build --without-javac --enable-kernel-poll"
$ cat vm.args
-name umca@127.0.0.1
+K true
+A 5
-env ERL_MAX_PORTS 4096
-env ERL_FULLSWEEP_AFTER 10
$ erl
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
Eshell V6.2 (abort with ^G)
1>
$ gdb beam.smp ./core
Program terminated with signal 11, Segmentation fault.
#0 do_minor (p=0x2aaaaef92c20, new_sz=318187, objv=0x2aaada7caeb8, nobj=2) at beam/erl_gc.c:1110
1110 beam/erl_gc.c: No such file or directory.
[Current thread is 1 (Thread 0x2aaaae542700 (LWP 3198))]
(gdb) where
#0 do_minor (p=0x2aaaaef92c20, new_sz=318187, objv=0x2aaada7caeb8, nobj=2) at beam/erl_gc.c:1110
#1 0x0000000000508a3d in minor_collection (recl=0x2aaaae541c50, nobj=1, objv=0x2aaaae541cd0,
p=0x2aaaaef92c20, need=<optimized out>) at beam/erl_gc.c:876
#2 erts_garbage_collect (p=0x2aaaaef92c20, objv=<optimized out>, nobj=<optimized out>, need=0)
at beam/erl_gc.c:450
#3 0x0000000000509479 in erts_gc_after_bif_call (p=0x2aaaaef92c20, result=46912522441497,
regs=<optimized out>, arity=<optimized out>) at beam/erl_gc.c:370
#4 0x00000000005453f6 in process_main () at beam/beam_emu.c:2787
#5 0x000000000049a5e3 in sched_thread_func (vesdp=0x2aaaabf19380) at beam/erl_process.c:7719
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d720) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) info threads
Id Target Id Frame
* 14 Thread 0x2aaaacca2700 (LWP 3191) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
13 Thread 0x2aaaaca35700 (LWP 3190) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
12 Thread 0x2aaaaaad4700 (LWP 3195) 0x00002aaaab40688d in waitpid ()
from /lib/x86_64-linux-gnu/libpthread.so.0
11 Thread 0x2aaaae341700 (LWP 3197) 0x00002aaaab910a93 in epoll_wait ()
from /lib/x86_64-linux-gnu/libc.so.6
10 Thread 0x2aaaad6a2700 (LWP 3192) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
9 Thread 0x2aaaae944700 (LWP 3200) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
8 Thread 0x2aaaad6c4700 (LWP 3193) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
7 Thread 0x2aaaae140700 (LWP 3196) tag_val_def (x=46913199874730) at beam/erl_term.c:116
6 Thread 0x2aaaacc80700 (LWP 3188) 0x00002aaaab405d2d in read ()
from /lib/x86_64-linux-gnu/libpthread.so.0
5 Thread 0x2aaaad6e6700 (LWP 3194) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
4 Thread 0x2aaaaaada980 (LWP 3180) 0x00002aaaab909763 in select ()
from /lib/x86_64-linux-gnu/libc.so.6
3 Thread 0x2aaaae743700 (LWP 3199) 0x00002aaaab90c619 in syscall ()
from /lib/x86_64-linux-gnu/libc.so.6
---Type <return> to continue, or q <return> to quit---
2 Thread 0x2aaaad680700 (LWP 3189) 0x00002aaaab402d84 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/x86_64-linux-gnu/libpthread.so.0
1 Thread 0x2aaaae542700 (LWP 3198) do_minor (p=0x2aaaaef92c20, new_sz=318187,
objv=0x2aaada7caeb8, nobj=2) at beam/erl_gc.c:1110
(gdb) thread 2
[Switching to thread 2 (Thread 0x2aaaad680700 (LWP 3189))]
#0 0x00002aaaab402d84 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/x86_64-linux-gnu/libpthread.so.0
#0 0x00002aaaab402d84 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00000000005bd329 in ethr_cond_wait (cnd=<optimized out>, mtx=<optimized out>)
at common/ethr_mutex.c:1368
#2 0x000000000046a80f in erts_cnd_wait (mtx=0x87e520, cnd=0x87e4e0) at beam/erl_threads.h:1821
#3 erts_smp_cnd_wait (cnd=<optimized out>, mtx=<optimized out>) at beam/erl_smp.h:951
#4 sys_msg_dispatcher_func (unused=<optimized out>) at beam/erl_trace.c:3305
#5 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6e0) at pthread/ethread.c:106
#6 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x0000000000000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (Thread 0x2aaaae743700 (LWP 3199))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca403d0) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca403d0) at pthread/ethr_event.c:218
#3 0x000000000049f8a5 in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 scheduler_wait (fcalls=<optimized out>, esdp=0x2aaaabf23640, rq=0x2aaaabf046c0)
at beam/erl_process.c:2832
#5 0x00000000004a9a06 in schedule (p=<optimized out>, calls=18) at beam/erl_process.c:9193
#6 0x00000000005414a6 in process_main () at beam/beam_emu.c:1229
#7 0x000000000049a5e3 in sched_thread_func (vesdp=0x2aaaabf23640) at beam/erl_process.c:7719
#8 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d720) at pthread/ethread.c:106
#9 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()
(gdb) thread 5
[Switching to thread 5 (Thread 0x2aaaad6e6700 (LWP 3194))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca40290) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca40290) at pthread/ethr_event.c:218
#3 0x00000000005047a8 in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 async_get (prep_enq=<synthetic pointer>, tse=<optimized out>, q=0x2aaaad3ca8c0)
at beam/erl_async.c:386
#5 async_main (arg=0x2aaaad3ca8c0) at beam/erl_async.c:507
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6c0) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) thread 6
[Switching to thread 6 (Thread 0x2aaaacc80700 (LWP 3188))]
#0 0x00002aaaab405d2d in read () from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) where
#0 0x00002aaaab405d2d in read () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x000000000055ccba in read (__nbytes=32, __buf=0x2aaaacc7fe30, __fd=<optimized out>)
at /usr/include/x86_64-linux-gnu/bits/unistd.h:45
#2 signal_dispatcher_thread_func (unused=<optimized out>) at sys/unix/sys.c:2944
#3 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d5c0) at pthread/ethread.c:106
#4 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6 0x0000000000000000 in ?? ()
(gdb) thread 7
[Switching to thread 7 (Thread 0x2aaaae140700 (LWP 3196))]
#0 tag_val_def (x=46913199874730) at beam/erl_term.c:116
116 beam/erl_term.c: No such file or directory.
(gdb) where
#0 tag_val_def (x=46913199874730) at beam/erl_term.c:116
#1 0x00000000004bb0df in encode_size_struct_int (ctx=<optimized out>, acmp=0x0,
obj=46913199874730, dflags=<optimized out>, reds=0x2aaaae13fc70, res=0x2aaaae13fc80)
at beam/external.c:3903
#2 0x00000000004bff5f in erts_term_to_binary_int (p=0x2aaae2a653a0, Term=46913199874482,
level=<optimized out>, flags=<optimized out>, context_b=0x0) at beam/external.c:1883
#3 0x00000000004c2923 in term_to_binary_1 (A__p=0x2aaae2a653a0, BIF__ARGS=<optimized out>)
at beam/external.c:1064
#4 0x00000000005453ce in process_main () at beam/beam_emu.c:2779
#5 0x000000000049a5e3 in sched_thread_func (vesdp=0x2aaaabf04e00) at beam/erl_process.c:7719
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d720) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) thread 8
[Switching to thread 8 (Thread 0x2aaaad6c4700 (LWP 3193))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca40250) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca40250) at pthread/ethr_event.c:218
#3 0x00000000005047a8 in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 async_get (prep_enq=<synthetic pointer>, tse=<optimized out>, q=0x2aaaad3ca780)
at beam/erl_async.c:386
#5 async_main (arg=0x2aaaad3ca780) at beam/erl_async.c:507
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6c0) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) thread 9
[Switching to thread 9 (Thread 0x2aaaae944700 (LWP 3200))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca40410) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca40410) at pthread/ethr_event.c:218
#3 0x000000000049d97d in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 aux_thread (unused=<optimized out>) at beam/erl_process.c:2726
#5 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d720) at pthread/ethread.c:106
#6 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x0000000000000000 in ?? ()
(gdb) thread 10
[Switching to thread 10 (Thread 0x2aaaad6a2700 (LWP 3192))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca40210) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca40210) at pthread/ethr_event.c:218
#3 0x00000000005047a8 in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 async_get (prep_enq=<synthetic pointer>, tse=<optimized out>, q=0x2aaaad3ca640)
at beam/erl_async.c:386
#5 async_main (arg=0x2aaaad3ca640) at beam/erl_async.c:507
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6c0) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) thread 11
[Switching to thread 11 (Thread 0x2aaaae341700 (LWP 3197))]
#0 0x00002aaaab910a93 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab910a93 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x0000000000560f4c in check_fd_events (max_res=256, tv=<optimized out>, ps=0x2aaaabef8368)
at sys/common/erl_poll.c:2023
#2 erts_poll_wait_kp (ps=0x2aaaabef8368, pr=0x2aaaae340300, len=0x2aaaae340b10,
utvp=<optimized out>) at sys/common/erl_poll.c:2184
#3 0x0000000000564288 in erts_check_io_kp (do_wait=<optimized out>)
at sys/common/erl_check_io.c:1191
#4 0x000000000049fd9c in scheduler_wait (fcalls=<optimized out>, esdp=0x2aaaabf0f0c0,
rq=0x2aaaabf043c0) at beam/erl_process.c:3018
#5 0x00000000004a9a06 in schedule (p=<optimized out>, calls=155) at beam/erl_process.c:9193
#6 0x00000000005414a6 in process_main () at beam/beam_emu.c:1229
#7 0x000000000049a5e3 in sched_thread_func (vesdp=0x2aaaabf0f0c0) at beam/erl_process.c:7719
#8 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d720) at pthread/ethread.c:106
#9 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()
(gdb) thread 12
[Switching to thread 12 (Thread 0x2aaaaaad4700 (LWP 3195))]
#0 0x00002aaaab40688d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) where
#0 0x00002aaaab40688d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x000000000055b005 in child_waiter (unused=<optimized out>) at sys/unix/sys.c:2868
#2 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6b0) at pthread/ethread.c:106
#3 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x0000000000000000 in ?? ()
(gdb) thread 13
[Switching to thread 13 (Thread 0x2aaaaca35700 (LWP 3190))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca40190) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca40190) at pthread/ethr_event.c:218
#3 0x000000000050487f in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 async_get (prep_enq=<synthetic pointer>, tse=<optimized out>, q=0x2aaaad3ca3c0)
at beam/erl_async.c:371
#5 async_main (arg=0x2aaaad3ca3c0) at beam/erl_async.c:507
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6c0) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
(gdb) thread 14
[Switching to thread 14 (Thread 0x2aaaacca2700 (LWP 3191))]
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00002aaaab90c619 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000005be835 in wait__ (spincount=0, e=0x2aaaaca401d0) at pthread/ethr_event.c:92
#2 ethr_event_wait (e=0x2aaaaca401d0) at pthread/ethr_event.c:218
#3 0x00000000005047a8 in erts_tse_wait (ep=<optimized out>) at beam/erl_threads.h:2782
#4 async_get (prep_enq=<synthetic pointer>, tse=<optimized out>, q=0x2aaaad3ca500)
at beam/erl_async.c:386
#5 async_main (arg=0x2aaaad3ca500) at beam/erl_async.c:507
#6 0x00000000005be1b0 in thr_wrapper (vtwd=0x7fffde85d6c0) at pthread/ethread.c:106
#7 0x00002aaaab3fee9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00002aaaab9103fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.