Skip to content

Instantly share code, notes, and snippets.

@steveej
Created March 21, 2024 11:21
Show Gist options
  • Save steveej/c392c420a5cdd7e23c1f6a1b30c65b19 to your computer and use it in GitHub Desktop.
Save steveej/c392c420a5cdd7e23c1f6a1b30c65b19 to your computer and use it in GitHub Desktop.
coturn buffer overflow stacktrace on cli connection
Mar 21 11:20:31 turn-infra-holochain-org turnserver[66325]: 388: (66496): INFO: IPv4. CLI connected to: 127.0.0.1:35632
Mar 21 11:20:33 turn-infra-holochain-org turnserver[66325]: *** buffer overflow detected ***: terminated
Mar 21 11:20:33 turn-infra-holochain-org systemd[1]: Started Process Core Dump (PID 66558/UID 0).
Mar 21 11:20:33 turn-infra-holochain-org systemd-coredump[66559]: [🡕] Process 66325 (turnserver) of user 249 dumped core.
Module libffi.so.8 without build-id.
Module libgmp.so.10 without build-id.
Module libhogweed.so.6 without build-id.
Module libnettle.so.8 without build-id.
Module libtasn1.so.6 without build-id.
Module libunistring.so.5 without build-id.
Module libidn2.so.0 without build-id.
Module libp11-kit.so.0 without build-id.
Module libgnutls.so.30 without build-id.
Module libz.so.1 without build-id.
Module libmicrohttpd.so.12 without build-id.
Module libpromhttp.so without build-id.
Module libprom.so without build-id.
Module libevent-2.1.so.7 without build-id.
Module libevent_pthreads-2.1.so.7 without build-id.
Module libevent_openssl-2.1.so.7 without build-id.
Module libevent_extra-2.1.so.7 without build-id.
Module libevent_core-2.1.so.7 without build-id.
Module turnserver without build-id.
Stack trace of thread 66496:
#0 0x00007f8cf537cddc __pthread_kill_implementation (libc.so.6 + 0x8cddc)
#1 0x00007f8cf532d9c6 raise (libc.so.6 + 0x3d9c6)
#2 0x00007f8cf53168fa abort (libc.so.6 + 0x268fa)
#3 0x00007f8cf5317767 __libc_message.cold (libc.so.6 + 0x27767)
#4 0x00007f8cf540b949 __fortify_fail (libc.so.6 + 0x11b949)
#5 0x00007f8cf540b304 __chk_fail (libc.so.6 + 0x11b304)
#6 0x00007f8cf540caf5 __snprintf_chk (libc.so.6 + 0x11caf5)
#7 0x0000000000436783 generate_enc_password (turnserver + 0x36783)
#8 0x0000000000436c8c check_password (turnserver + 0x36c8c)
#9 0x000000000042593d cli_telnet_event_handler (turnserver + 0x2593d)
#10 0x000000000041bbe1 _process (turnserver + 0x1bbe1)
#11 0x00000000004205d6 cli_socket_input_handler_bev.part.0 (turnserver + 0x205d6)
#12 0x00007f8cf5af391e bufferevent_run_deferred_callbacks_unlocked (libevent_core-2.1.so.7 + 0x1391e)
#13 0x00007f8cf5afd9eb event_process_active_single_queue (libevent_core-2.1.so.7 + 0x1d9eb)
#14 0x00007f8cf5afe46f event_base_loop (libevent_core-2.1.so.7 + 0x1e46f)
#15 0x000000000041836f run_admin_server_thread (turnserver + 0x1836f)
#16 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#17 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66489:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x0000000000418ac8 run_general_relay_thread (turnserver + 0x18ac8)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66491:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x0000000000418ac8 run_general_relay_thread (turnserver + 0x18ac8)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66495:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x00000000004175f8 run_auth_server_thread (turnserver + 0x175f8)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66493:
#0 0x00007f8cf53c2b75 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd2b75)
#1 0x00007f8cf53d4ed7 __nanosleep (libc.so.6 + 0xe4ed7)
#2 0x00007f8cf53e593e sleep (libc.so.6 + 0xf593e)
#3 0x0000000000417542 run_auth_server_thread (turnserver + 0x17542)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66494:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x00000000004175f8 run_auth_server_thread (turnserver + 0x175f8)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66325:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x0000000000419032 run_listener_server (turnserver + 0x19032)
#4 0x000000000040994e main (turnserver + 0x994e)
#5 0x00007f8cf5317fce __libc_start_call_main (libc.so.6 + 0x27fce)
#6 0x00007f8cf5318089 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28089)
#7 0x000000000040a845 _start (turnserver + 0xa845)
Stack trace of thread 66497:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf54e873a MHD_epoll (libmicrohttpd.so.12 + 0xf73a)
#2 0x00007f8cf54e97c5 MHD_polling_thread (libmicrohttpd.so.12 + 0x107c5)
#3 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#4 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66492:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x0000000000418ac8 run_general_relay_thread (turnserver + 0x18ac8)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
Stack trace of thread 66490:
#0 0x00007f8cf53fdb76 epoll_wait (libc.so.6 + 0x10db76)
#1 0x00007f8cf5b076e6 epoll_dispatch (libevent_core-2.1.so.7 + 0x276e6)
#2 0x00007f8cf5afe265 event_base_loop (libevent_core-2.1.so.7 + 0x1e265)
#3 0x0000000000418ac8 run_general_relay_thread (turnserver + 0x18ac8)
#4 0x00007f8cf537b0e4 start_thread (libc.so.6 + 0x8b0e4)
#5 0x00007f8cf53fd75c __clone3 (libc.so.6 + 0x10d75c)
ELF object binary architecture: AMD x86-64
Mar 21 11:20:33 turn-infra-holochain-org systemd[1]: coturn.service: Main process exited, code=dumped, status=6/ABRT
Mar 21 11:20:33 turn-infra-holochain-org systemd[1]: coturn.service: Failed with result 'core-dump'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment