Am 02.12.2016 um 23:52 schrieb Jonas Meurer: > I encounter frequent segfaults of coturn on a Debian Squeeze VM with > recent kernel (4.8.7-1). > [...] > I'll gladly further debug the issue if you give me instructions.
I ran coturn in gdb now (with coturn-dbg and libssl1.0.2-dbg installed) and it segfaulted again: Thread 2 "turnserver" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff1709700 (LWP 26630)] ssl3_get_message (s=0x7fffec007fd0, st1=0, stn=0, mt=26630, max=140737152848544, ok=0x0) at s3_both.c:364 364 s3_both.c: No such file or directory. The full backtrace is attached. Cheers, jonas
Thread 7 (Thread 0x7fffea7fc700 (LWP 26635)): #0 0x00007ffff5699fd3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff6bc1a48 in ?? () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #2 0x00007ffff6babd2a in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #3 0x0000555555569593 in run_events (eb=0x7fffdc0008f0, e=e@entry=0x0) at src/apps/relay/netengine.c:1550 timeout = {tv_sec = 5, tv_usec = 0} #4 0x000055555556ad37 in run_admin_server_thread (arg=0x5555557f1540 <adminserver>) at src/apps/relay/netengine.c:1788 __FUNCTION__ = "run_admin_server_thread" #5 0x00007ffff5956464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #6 0x00007ffff56999df in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. Thread 6 (Thread 0x7fffeaffd700 (LWP 26634)): #0 0x00007ffff5699fd3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff6bc1a48 in ?? () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #2 0x00007ffff6babd2a in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #3 0x0000555555569593 in run_events (eb=0x7fffd80008f0, e=e@entry=0x0) at src/apps/relay/netengine.c:1550 timeout = {tv_sec = 5, tv_usec = 0} #4 0x000055555556acfc in run_auth_server_thread (arg=0x5555557cd6a0 <authserver+96>) at src/apps/relay/netengine.c:1763 pair = {0x7fffd8001210, 0x7fffd80015b0} as = 0x5555557cd6a0 <authserver+96> id = <optimized out> __FUNCTION__ = "run_auth_server_thread" #5 0x00007ffff5956464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #6 0x00007ffff56999df in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. Thread 5 (Thread 0x7fffeb7fe700 (LWP 26633)): #0 0x00007ffff5699fd3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff6bc1a48 in ?? () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #2 0x00007ffff6babd2a in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #3 0x0000555555569593 in run_events (eb=0x7fffe00008f0, e=e@entry=0x0) at src/apps/relay/netengine.c:1550 timeout = {tv_sec = 5, tv_usec = 0} #4 0x000055555556acfc in run_auth_server_thread (arg=0x5555557cd670 <authserver+48>) at src/apps/relay/netengine.c:1763 pair = {0x7fffe0001110, 0x7fffe00014b0} as = 0x5555557cd670 <authserver+48> id = <optimized out> __FUNCTION__ = "run_auth_server_thread" #5 0x00007ffff5956464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #6 0x00007ffff56999df in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. Thread 4 (Thread 0x7fffebfff700 (LWP 26632)): #0 0x00007ffff566908d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff5668fda in sleep () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #2 0x000055555556ac3a in run_auth_server_thread (arg=0x5555557cd640 <authserver>) at src/apps/relay/netengine.c:1733 as = 0x5555557cd640 <authserver> id = <optimized out> __FUNCTION__ = "run_auth_server_thread" #3 0x00007ffff5956464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #4 0x00007ffff56999df in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. Thread 3 (Thread 0x7ffff0d07700 (LWP 26631)): #0 0x00007ffff5699fd3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff6bc1a48 in ?? () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #2 0x00007ffff6babd2a in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #3 0x0000555555569593 in run_events (eb=0x7fffe40008f0, e=0x7ffff0d081e8) at src/apps/relay/netengine.c:1550 timeout = {tv_sec = 5, tv_usec = 0} #4 0x000055555556ab95 in run_general_relay_thread (arg=0x7ffff0d08010) at src/apps/relay/netengine.c:1680 rs = 0x7ffff0d08010 we_need_rfc5780 = 0 __FUNCTION__ = "run_general_relay_thread" #5 0x00007ffff5956464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #6 0x00007ffff56999df in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. Thread 2 (Thread 0x7ffff1709700 (LWP 26630)): #0 ssl3_get_message (s=0x7fffec007fd0, st1=0, stn=0, mt=26630, max=140737152848544, ok=0x0) at s3_both.c:364 p = <error reading variable p (Cannot access memory at address 0x8)> l = <optimized out> n = <optimized out> i = <optimized out> al = <optimized out> #1 0x00007ffff4e6e6b6 in SSL_do_handshake () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1 No symbol table info available. #2 0x00007ffff677c9ec in ?? () from /usr/lib/x86_64-linux-gnu/libevent_openssl-2.0.so.5 No symbol table info available. #3 0x00007ffff677cbb0 in ?? () from /usr/lib/x86_64-linux-gnu/libevent_openssl-2.0.so.5 No symbol table info available. #4 0x00007ffff6bac250 in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #5 0x0000555555569593 in run_events (eb=0x7fffec0008f0, e=0x7ffff170a1e8) at src/apps/relay/netengine.c:1550 timeout = {tv_sec = 5, tv_usec = 0} #6 0x000055555556ab95 in run_general_relay_thread (arg=0x7ffff170a010) at src/apps/relay/netengine.c:1680 rs = 0x7ffff170a010 we_need_rfc5780 = 0 __FUNCTION__ = "run_general_relay_thread" #7 0x00007ffff5956464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #8 0x00007ffff56999df in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. Thread 1 (Thread 0x7ffff7fda740 (LWP 26624)): #0 0x00007ffff5699fd3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff6bc1a48 in ?? () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #2 0x00007ffff6babd2a in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent_core-2.0.so.5 No symbol table info available. #3 0x0000555555569593 in run_events (eb=0x55555585ee50, e=0x7ffff1963048) at src/apps/relay/netengine.c:1550 timeout = {tv_sec = 5, tv_usec = 0} #4 0x000055555556bd0d in run_listener_server (ls=0x5555557c7310 <turn_params+8880>) at src/apps/relay/netengine.c:1570 cycle = 0 __FUNCTION__ = "run_listener_server" #5 0x000055555555e994 in main (argc=<optimized out>, argv=<optimized out>) at src/apps/relay/mainrelay.c:2133 c = <optimized out> uo = {u = {m = 0x5555557be320 <long_options>, o = 0x5555557be320 <long_options>}} local_listeners = <optimized out> __FUNCTION__ = "main"
signature.asc
Description: OpenPGP digital signature