Skip to content

Instantly share code, notes, and snippets.

@soulfly
Created February 15, 2018 09:15
Show Gist options
  • Save soulfly/810c6d424a6689321aac202d8048c4f3 to your computer and use it in GitHub Desktop.
Save soulfly/810c6d424a6689321aac202d8048c4f3 to your computer and use it in GitHub Desktop.
SegvAnalysis:
Segfault happened at: 0x7fd7e51698b0 <g_hash_table_iter_next+96>: mov (%r9,%rcx,1),%r9d
PC (0x7fd7e51698b0) ok
source "(%r9,%rcx,1)" (0x00000000) not located in a known VMA region (needed readable region)!
destination "%r9d" ok
Stack memory exhausted (SP below stack segment)
SegvReason: reading NULL VMA
Stacktrace:
#0 0x00007fd7e51698b0 in g_hash_table_iter_next () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1 0x00007fd7dc24ba7b in janus_videoroom_setup_media (handle=<optimized out>) at plugins/janus_videoroom.c:2850
participant = 0x7fd7bcbfa9a0
list = <optimized out>
pl = <optimized out>
pub = 0x7fd778022260
iter = {dummy1 = 0x7fd77400eb60, dummy2 = 0x7fd78c00d0c0, dummy3 = 0xa17cdddde0db3be0, dummy4 = -1, dummy5 = 32727, dummy6 = 0x7fd700000001}
value = 0x0
videoroom = 0x7fd7bcc58800
__FUNCTION__ = "janus_videoroom_setup_media"
session = 0x7fd78c0111b0
#2 0x0000000000438b1b in janus_ice_dtls_handshake_done (handle=handle@entry=0x7fd78c001c70, component=component@entry=0x7fd78c00f830) at ice.c:4264
__FUNCTION__ = "janus_ice_dtls_handshake_done"
pkt = <optimized out>
plugin = 0x7fd7dc45e420 <janus_videoroom_plugin>
session = <optimized out>
event = <optimized out>
#3 0x000000000041f585 in janus_dtls_srtp_incoming_msg (dtls=<optimized out>, buf=<optimized out>, len=len@entry=483) at dtls.c:767
rsize = 32
rfingerprint = "];\314.\322\305(jQ\220\f\370\226@\232[2\206\024Wl\315\370\346\066\370m\026\321\233\276]\000\000\000\000\000\000\000\000\220\200\376\264\327\177\000\000\000\000\000\000\071\000\070\000\067\000\066\000\210\000\207"
i = <optimized out>
remote_fingerprint = "5D:3B:CC:2E:D2:C5:28:6A:51:90:0C:F8:96:40:9A:5B:32:86:14:57:6C:CD:F8:E6:36:F8:6D:16:D1:9B:BE:5D", '\000' <repeats 64 times>
rfp = <optimized out>
rcert = 0x0
__FUNCTION__ = "janus_dtls_srtp_incoming_msg"
component = <optimized out>
stream = <optimized out>
handle = 0x7fd78c001c70
written = <optimized out>
data = '\000' <repeats 1499 times>
read = <optimized out>
#4 0x0000000000431bea in janus_ice_cb_nice_recv (agent=<optimized out>, stream_id=1, component_id=1, len=483, buf=<optimized out>, ice=0x7fd78c00f830) at ice.c:2000
component = 0x7fd78c00f830
__FUNCTION__ = "janus_ice_cb_nice_recv"
stream = <optimized out>
handle = <optimized out>
session = <optimized out>
#5 0x00007fd7e56a15a0 in nice_component_emit_io_callback (component=0x7fd78c0133d0, buf=0x7fd7b4fe8ab0 "\026\376\377", buf_len=483) at component.c:895
agent = 0x7fd7bc471290
stream_id = 1
component_id = 1
io_callback = 0x431ac0 <janus_ice_cb_nice_recv>
io_user_data = 0x7fd78c00f830
__func__ = "nice_component_emit_io_callback"
#6 0x00007fd7e56abcd3 in component_io_cb (gsocket=<optimized out>, condition=<optimized out>, user_data=0x7fd780019820) at agent.c:5198
local_buf = "\026\376\377\000\000\000\000\000\000\000\006\001{\004\000\006\006\000\005\000\004\227\000\001o\246xF\237\305T\372\277K-9\255\367\300f@xR\221\211Yo\201m\277zlm@\236V8<\005\216l\245hM,\343'N\332;\217.Hk\003$$\342\300\335\260\370*\205\004\230\350\035+t\005%\324#\204\233=\350\207x%j\230\362\060\024u|\025\261U3\202.\250a\235\304\071\204s'\030JK \\\204\312\353@\267\214\347\237]j\274\316\210\201\276\204\021 \352*\374\220\216\366\364\252g\205L\305?o`\031\366^\243\303\233\354\314\061\352\210&g6\241\"\321\326WR\364 \t\350\067!Q\031\361b\234\331i\277@\331X\241\307\024"...
local_bufs = {buffer = 0x7fd7b4fe8ab0, size = 65535}
local_message = {buffers = 0x7fd7b4fe8a40, n_buffers = 1, from = 0x0, length = 483}
retval = <optimized out>
socket_source = 0x7fd780019820
component = 0x7fd78c0133d0
agent = 0x7fd7bc471290
stream = 0x7fd78c00f030
has_io_callback = <optimized out>
remove_source = 0
__func__ = "component_io_cb"
#7 0x00007fd7e3320901 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
No symbol table info available.
#8 0x00007fd7e517b05a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#9 0x00007fd7e517b400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#10 0x00007fd7e517b722 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#11 0x000000000042cbc0 in janus_ice_thread (data=0x7fd78c001c70) at ice.c:2486
handle = 0x7fd78c001c70
__FUNCTION__ = "janus_ice_thread"
loop = 0x7fd78c005260
#12 0x00007fd7e51a1bc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#13 0x00007fd7e3f3a6ba in start_thread (arg=0x7fd7b4ff9700) at pthread_create.c:333
__res = <optimized out>
pd = 0x7fd7b4ff9700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140564431345408, 8835671603498289512, 0, 140563986755887, 8388608, 140562669783568, -8849021873082234520, -8849191300193351320}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#14 0x00007fd7e3c7041d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.
StacktraceAddressSignature: /opt/janus_dev/bin/janus:11:/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.1+388b0:/opt/janus_dev/lib/janus/plugins/libjanus_videoroom.so.0.0.0+1ba7b:/opt/janus_dev/bin/janus+38b1b:/opt/janus_dev/bin/janus+1f585:/opt/janus_dev/bin/janus+31bea:/usr/local/lib/libnice.so.10.7.0+c5a0:/usr/local/lib/libnice.so.10.7.0+16cd3:/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.4800.1+77901:/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.1+4a05a:/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.1+4a400:/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.1+4a722:/opt/janus_dev/bin/janus+2cbc0:/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.1+70bc5:/lib/x86_64-linux-gnu/libpthread-2.23.so+76ba:/lib/x86_64-linux-gnu/libc-2.23.so+10741d
StacktraceTop:
g_hash_table_iter_next () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
janus_videoroom_setup_media (handle=<optimized out>) at plugins/janus_videoroom.c:2850
janus_ice_dtls_handshake_done (handle=handle@entry=0x7fd78c001c70, component=component@entry=0x7fd78c00f830) at ice.c:4264
janus_dtls_srtp_incoming_msg (dtls=<optimized out>, buf=<optimized out>, len=len@entry=483) at dtls.c:767
janus_ice_cb_nice_recv (agent=<optimized out>, stream_id=1, component_id=1, len=483, buf=<optimized out>, ice=0x7fd78c00f830) at ice.c:2000
Tags: xenial ec2-images
Title: janus crashed with SIGSEGV in g_hash_table_iter_next()
UnreportableReason: This package does not seem to be installed correctly
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment