Chan_sip.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x1e33630 (0)

Hi,

Asterisk crashed with these messages in the log

[Sep  1 17:18:05] ERROR[23620] chan_sip.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x1e33630 (0)
[Sep  1 17:18:05] ERROR[23620] : Got 14 backtrace records
# 0: /usr/sbin/asterisk(__ao2_ref+0xbb) [0x45e07b]
# 1: /usr/sbin/asterisk() [0x4605ca]
# 2: /usr/lib/asterisk/modules/chan_sip.so(+0x75b69) [0x7fc5a4801b69]
# 3: /usr/lib/asterisk/modules/chan_sip.so(+0x76a95) [0x7fc5a4802a95]
# 4: /usr/lib/asterisk/modules/chan_sip.so(+0xa84d3) [0x7fc5a48344d3]
# 5: /usr/lib/asterisk/modules/chan_sip.so(+0xaaca3) [0x7fc5a4836ca3]
# 6: /usr/lib/asterisk/modules/chan_sip.so(+0xada84) [0x7fc5a4839a84]
# 7: /usr/lib/asterisk/modules/chan_sip.so(+0xaf847) [0x7fc5a483b847]
# 8: /usr/lib/asterisk/modules/res_http_websocket.so(__ast_websocket_uri_cb+0xe54) [0x7fc5a62cf484]
# 9: /usr/sbin/asterisk() [0x60d238]
#10: /usr/sbin/asterisk() [0x60d75b]
#11: /usr/sbin/asterisk() [0x5c264c]
#12: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7fc610dbf6ba]
#13: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fc6103994dd]

And this message in syslog

kernel: [11993449.727273] asterisk[23620]: segfault at 10 ip 00000000005ab9cb sp 00007fc566d16918 error 4 in asterisk[400000+30b000]

Unfortunately i don’t have a core dump.

Asterisk version 17.4
OS: Ubuntu 16
Using chan_sip with webrtc/websockets.

Any help appreciated.

Thanks

Something in chan_sip tried to access something that already had its memory freed, or memory was overwritten. That’s the extent of what can be determined based on the above information.

So it this a bug in chan_sip ?

From the available information it would seem that way.

Ok, thanks a lot. Would migrating to chan_pjsip be the best course of action ?

Memory corruption can happen across threads, so it is not certain the original problem is in chan_sip.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.