<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>FYI.<br>
</p>
<p><br>
</p>
<p>FreeSWITCH version 1.6.19<br>
</p>
<p>Debian 8.9<br>
</p>
<p><br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Shaun Stokes <shaun.stokes@itec-support.co.uk><br>
<b>Sent:</b> 13 December 2017 11:48<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> [Freeswitch-users] FreeSWITCH crash due to Signal 6 Abort while executing assert in nua_stack.c</font>
<div> </div>
</div>
<div>
<p>Hi,<br>
</p>
<p><br>
</p>
<p>Recently experienced a crash (Signal 6 Abort) on FreeSWITCH, daemon log as follows.<br>
</p>
<p><br>
</p>
<div>systemd[1]: freeswitch.service: main process exited, code=killed, status=6/ABRT</div>
<div>fs_cli[5866]: [ERROR] fs_cli.c:1659 main() Error Connecting [Socket Connection Error]<br>
</div>
<div>systemd[1]: freeswitch.service: control process exited, code=exited status=255</div>
<div>systemd[1]: Unit freeswitch.service entered failed state.</div>
<div>systemd[1]: freeswitch.service holdoff time over, scheduling restart.</div>
<div>systemd[1]: Stopping freeswitch...</div>
<div>systemd[1]: Starting freeswitch...<br>
</div>
<p><br>
</p>
<p>We don't have the FreeSWITCH logs for this particular incident, back-trace as follows.<br>
</p>
<p><br>
</p>
<div>================================================================================</div>
<div># bt full</div>
<div>================================================================================</div>
<div>#0 0x00007f6b05f79067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56</div>
<div> resultvar = 0</div>
<div> pid = 20383</div>
<div> selftid = 20402</div>
<div>#1 0x00007f6b05f7a448 in __GI_abort () at abort.c:89</div>
<div> save_stage = 2</div>
<div> act = {__sigaction_handler = {sa_handler = 0x7fff30339e75, sa_sigaction = 0x7fff30339e75}, sa_mask = {__val = {140097639576617, 140097517785411, 959, 4, 140097512340528, 0, 140096967610088, 4294967296, 0, 0, 0, 21474836480, 140097639576143, 140097512340680,
140097676636160, 140097639591704}}, sa_flags = -20442716, sa_restorer = 0x7f6afec8139a <__PRETTY_FUNCTION__.16073>}</div>
<div> sigs = {__val = {32, 0 <repeats 15 times>}}</div>
<div>#2 0x00007f6b05f72266 in __assert_fail_base (fmt=0x7f6b060aaf18 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f6afec811a4 "*nh->nh_prev == nh", file=file@entry=0x7f6afec81143 "nua_stack.c", line=line@entry=959, function=function@entry=0x7f6afec8139a
<__PRETTY_FUNCTION__.16073> "nh_remove") at assert.c:92</div>
<div> str = 0x7f67e44770f0 ""</div>
<div> total = 4096</div>
<div>#3 0x00007f6b05f72312 in __GI___assert_fail (assertion=assertion@entry=0x7f6afec811a4 "*nh->nh_prev == nh", file=file@entry=0x7f6afec81143 "nua_stack.c", line=line@entry=959, function=function@entry=0x7f6afec8139a <__PRETTY_FUNCTION__.16073> "nh_remove")
at assert.c:101</div>
<div>No locals.</div>
<div>#4 0x00007f6afebf3a36 in nh_remove (nua=0x7f6aec019e70, nh=0x7f6adfb244a0) at nua_stack.c:959</div>
<div>No locals.</div>
<div>#5 nh_destroy (nua=0x7f6aec019e70, nh=0x7f6adfb244a0) at nua_stack.c:998</div>
<div> nh = 0x7f6adfb244a0</div>
<div> nua = 0x7f6aec019e70</div>
<div>#6 0x00007f6afebf4ba5 in nua_stack_destroy_handle (tags=<optimized out>, nh=<optimized out>, nua=<optimized out>) at nua_stack.c:660</div>
<div>No locals.</div>
<div>#7 nua_stack_signal (nua=0x7f6aec019e70, msg=0x31, ee=0x7f6ac401fba8) at nua_stack.c:661</div>
<div> nh = 0x7f6adfb244a0</div>
<div> tags = 0x7f6ac401fbd0</div>
<div> event = nua_r_destroy</div>
<div> error = 0</div>
<div> __func__ = "nua_stack_signal"</div>
<div>#8 0x00007f6afec276d2 in su_base_port_execute_msgs (queue=0x7f67ea5624b0) at su_base_port.c:280</div>
<div> root = <optimized out></div>
<div> f = <optimized out></div>
<div> msg = 0x0</div>
<div> n = 12</div>
<div>#9 0x00007f6afec27bcd in su_base_port_run (self=0x7f6adc0008c0) at su_base_port.c:335</div>
<div> tout = 15000</div>
<div> tout2 = 0</div>
<div> __PRETTY_FUNCTION__ = "su_base_port_run"</div>
<div>#10 0x00007f6afec2c900 in su_pthread_port_clone_main (varg=0x7f6afea2e750) at su_pthread_port.c:343</div>
<div> arg = 0x0</div>
<div> task = {{sut_port = 0x7f6adc0008c0, sut_root = 0x7f6adc001130}}</div>
<div> zap = 1</div>
<div>#11 0x00007f6b062f7064 in start_thread (arg=0x7f6afe750700) at pthread_create.c:309</div>
<div> __res = <optimized out></div>
<div> pd = 0x7f6afe750700</div>
<div> now = <optimized out></div>
<div> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140097512343296, 1338962068899872702, 0, 140097676709984, 27192672, 140097512343296, -1422840606975082562, -1422294471635779650}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev
= 0x0, cleanup = 0x0, canceltype = 0}}}</div>
<div> not_first_call = <optimized out></div>
<div> pagesize_m1 = <optimized out></div>
<div> sp = <optimized out></div>
<div> freesize = <optimized out></div>
<div> __PRETTY_FUNCTION__ = "start_thread"</div>
<div>#12 0x00007f6b0602c62d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111</div>
<div>No locals.<br>
</div>
<div><br>
</div>
<div>
<div>Essentially it failed on 'assert(*nh->nh_prev == nh);' while executing this function in 'nua_stack.c'.</div>
<div>###############</div>
<div>/** @internal Remove a handle from list of handles */</div>
<div>static</div>
<div>void nh_remove(nua_t *nua, nua_handle_t *nh)</div>
<div>{</div>
<div> assert(nh_is_inserted(nh)); assert(*nh->nh_prev == nh);</div>
<div><br>
</div>
<div> if (nh->nh_next)</div>
<div> nh->nh_next->nh_prev = nh->nh_prev;</div>
<div> else</div>
<div> nua->nua_handles_tail = nh->nh_prev;</div>
<div><br>
</div>
<div> *nh->nh_prev = nh->nh_next;</div>
<div><br>
</div>
<div> nh->nh_prev = NULL;</div>
<div> nh->nh_next = NULL;</div>
<div>}</div>
<div>###############<br>
</div>
<div><br>
</div>
<div><br>
</div>
It's difficult for us to understand the exact cause with-out a copy of the logs, if anyone has seem something similar or might be able to point us in the right direction we would be greatful.<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>S<br>
</div>
<div><br>
</div>
<div><br>
</div>
<p><br>
</p>
<br clear="both">
______________________________________________________________________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________________________________________________<br>
<br clear="both">
______________________________________________________________________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________________________________________________<br>
</div>
</div>
<br clear="both">
______________________________________________________________________<BR>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<BR>
______________________________________________________________________<BR>
</body>
</html>