Skip to content

Instantly share code, notes, and snippets.

@vahidov
Last active April 9, 2019 14:48
Show Gist options
  • Save vahidov/6bfa1ee8581c6a69f2f077b2be74902a to your computer and use it in GitHub Desktop.
Save vahidov/6bfa1ee8581c6a69f2f077b2be74902a to your computer and use it in GitHub Desktop.
janus crash 04.19
---------------------------------------------------------------
First crash
---------------------------------------------------------------
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000770681a8e0d3 in _lws_change_pollfd.part.1 () from /usr/lib/libwebsockets.so.13
[Current thread is 1 (Thread 0x770509d09700 (LWP 3027))]
(gdb) bt full
#0 0x0000770681a8e0d3 in _lws_change_pollfd.part.1 () from /usr/lib/libwebsockets.so.13
No symbol table info available.
#1 0x0000770681a8efcf in lws_callback_on_writable () from /usr/lib/libwebsockets.so.13
No symbol table info available.
#2 0x0000770688220cd0 in janus_websockets_send_message (transport=0x77066c377ff0, request_id=0x0, admin=0, message=0x77064c0fed80) at transports/janus_websockets.c:904
__FUNCTION__ = "janus_websockets_send_message"
client = 0x77066c183fe0
payload = 0x77064c099800 "{\n \"janus\": \"hangup\",\n \"session_id\": 6984663628625322,\n \"sender\": 3884357842577851,\n \"reason\": \"Close PC\"\n}"
#3 0x00000500bf2b768b in janus_session_notify_event (session=0x77066471e3e0, event=0x77064c0fed80) at janus.c:591
No locals.
#4 0x00000500bf297cb2 in janus_ice_notify_hangup (handle=0x770664155550, reason=0x500bf30e91a "Close PC") at ice.c:679
session = 0x77066471e3e0
event = 0x77064c0fed80
#5 0x00000500bf29e05e in janus_ice_webrtc_free (handle=0x770664155550) at ice.c:1362
__FUNCTION__ = "janus_ice_webrtc_free"
#6 0x00000500bf2b18b8 in janus_ice_outgoing_traffic_handle (handle=0x770664155550, pkt=0x500bf51d2e0 <janus_ice_hangup_peerconnection>) at ice.c:3836
plugin = 0x770689356e20 <janus_videoroom_plugin>
session = 0x77066471e3e0
stream = 0x770658ed6a20
component = 0x770658bc56d0
__FUNCTION__ = "janus_ice_outgoing_traffic_handle"
age = 6
#7 0x00000500bf295922 in janus_ice_outgoing_traffic_dispatch (source=0x7706644dada0, callback=0x0, user_data=0x0) at ice.c:358
t = 0x7706644dada0
ret = 1
pkt = 0x500bf51d2e0 <janus_ice_hangup_peerconnection>
#8 0x000077069b8ef7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#9 0x000077069b8efa60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#10 0x000077069b8efd82 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#11 0x00000500bf29bb78 in janus_ice_handle_thread (data=0x770664155550) at ice.c:1077
handle = 0x770664155550
__FUNCTION__ = "janus_ice_handle_thread"
#12 0x000077069b9173d5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#13 0x000077069a3de4a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#14 0x000077069a120d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
---------------------------------------------------------------
Second crash
---------------------------------------------------------------
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007857accb00d3 in _lws_change_pollfd.part.1 () from /usr/lib/libwebsockets.so.13
[Current thread is 1 (Thread 0x7855f5435700 (LWP 24452))]
(gdb) bt full
#0 0x00007857accb00d3 in _lws_change_pollfd.part.1 () from /usr/lib/libwebsockets.so.13
No symbol table info available.
#1 0x00007857accb0fcf in lws_callback_on_writable () from /usr/lib/libwebsockets.so.13
No symbol table info available.
#2 0x00007857aced9cd0 in janus_websockets_send_message (transport=0x78579851c790, request_id=0x0, admin=0, message=0x7856d80c5fa0) at transports/janus_websockets.c:904
__FUNCTION__ = "janus_websockets_send_message"
client = 0x785798198140
payload = 0x7856d818e180 "{\n \"janus\": \"hangup\",\n \"session_id\": 6725571614980171,\n \"sender\": 1173062537409131,\n \"reason\": \"Close PC\"\n}"
#3 0x00000bbc83f1468b in janus_session_notify_event (session=0x78578c7ac4c0, event=0x7856d80c5fa0) at janus.c:591
No locals.
#4 0x00000bbc83ef4cb2 in janus_ice_notify_hangup (handle=0x78578c47a370, reason=0xbbc83f6b91a "Close PC") at ice.c:679
session = 0x78578c7ac4c0
event = 0x7856d80c5fa0
#5 0x00000bbc83efb05e in janus_ice_webrtc_free (handle=0x78578c47a370) at ice.c:1362
__FUNCTION__ = "janus_ice_webrtc_free"
#6 0x00000bbc83f0e8b8 in janus_ice_outgoing_traffic_handle (handle=0x78578c47a370, pkt=0xbbc8417a2e0 <janus_ice_hangup_peerconnection>) at ice.c:3836
plugin = 0x7857b432be20 <janus_videoroom_plugin>
session = 0x78578c7ac4c0
stream = 0x7857801d8500
component = 0x7857807c4d20
__FUNCTION__ = "janus_ice_outgoing_traffic_handle"
age = 10
#7 0x00000bbc83ef2922 in janus_ice_outgoing_traffic_dispatch (source=0x78578c266d20, callback=0x0, user_data=0x0) at ice.c:358
t = 0x78578c266d20
ret = 1
pkt = 0xbbc8417a2e0 <janus_ice_hangup_peerconnection>
#8 0x00007857c279b7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#9 0x00007857c279ba60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#10 0x00007857c279bd82 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#11 0x00000bbc83ef8b78 in janus_ice_handle_thread (data=0x78578c47a370) at ice.c:1077
handle = 0x78578c47a370
__FUNCTION__ = "janus_ice_handle_thread"
#12 0x00007857c27c33d5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#13 0x00007857c128a4a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#14 0x00007857c0fccd0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
@vahidov
Copy link
Author

vahidov commented Apr 9, 2019

Third crash with libwebsockets v3.1.0-134-g890f4f93 (warmcat/libwebsockets@890f4f93)


[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/opt/janus/bin/janus'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000662d154f1ac3 in _lws_change_pollfd.part.1 ()
   from /usr/lib/libwebsockets.so.14
[Current thread is 1 (Thread 0x662b471a5700 (LWP 3757))]
(gdb) bt full
#0  0x0000662d154f1ac3 in _lws_change_pollfd.part.1 () from /usr/lib/libwebsockets.so.14
No symbol table info available.
#1  0x0000662d154f2a0f in lws_callback_on_writable () from /usr/lib/libwebsockets.so.14
No symbol table info available.
#2  0x0000662d15731cd0 in janus_websockets_send_message (transport=0x662d000aacc0, request_id=0x0, admin=0, message=0x662d0c12fc70) at transports/janus_websockets.c:904
        __FUNCTION__ = "janus_websockets_send_message"
        client = 0x662d00478da0
        payload = 0x662d0c0b6800 "{\n   \"janus\": \"hangup\",\n   \"session_id\": 8800494658921276,\n   \"sender\": 8796276803885218,\n   \"reason\": \"Close PC\"\n}"
#3  0x00000b2d2ec9668b in janus_session_notify_event (session=0x662cf468cc90, event=0x662d0c12fc70) at janus.c:591
No locals.
#4  0x00000b2d2ec76cb2 in janus_ice_notify_hangup (handle=0x662cf45bca40, reason=0xb2d2eced91a "Close PC") at ice.c:679
        session = 0x662cf468cc90
        event = 0x662d0c12fc70
#5  0x00000b2d2ec7d05e in janus_ice_webrtc_free (handle=0x662cf45bca40) at ice.c:1362
        __FUNCTION__ = "janus_ice_webrtc_free"
#6  0x00000b2d2ec908b8 in janus_ice_outgoing_traffic_handle (handle=0x662cf45bca40, pkt=0xb2d2eefc2e0 <janus_ice_hangup_peerconnection>) at ice.c:3836
        plugin = 0x662d1cceae20 <janus_videoroom_plugin>
        session = 0x662cf468cc90
        stream = 0x662ce8fb3820
        component = 0x662ce8843f00
        __FUNCTION__ = "janus_ice_outgoing_traffic_handle"
        age = 41
#7  0x00000b2d2ec74922 in janus_ice_outgoing_traffic_dispatch (source=0x662cf4260210, callback=0x0, user_data=0x0) at ice.c:358
        t = 0x662cf4260210
        ret = 1
        pkt = 0xb2d2eefc2e0 <janus_ice_hangup_peerconnection>
#8  0x0000662d2b0987f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#9  0x0000662d2b098a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#10 0x0000662d2b098d82 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#11 0x00000b2d2ec7ab78 in janus_ice_handle_thread (data=0x662cf45bca40) at ice.c:1077
        handle = 0x662cf45bca40
        __FUNCTION__ = "janus_ice_handle_thread"
#12 0x0000662d2b0c03d5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#13 0x0000662d29b874a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#14 0x0000662d298c9d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment