<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; } @font-face { font-family: "Cambria Math"; } @font-face { font-family: Calibri; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; } p.msonormal0, li.msonormal0, div.msonormal0 { margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } span.EmailStyle20 { font-family: Calibri, sans-serif; color: windowtext; } .MsoChpDefault { font-size: 10pt; } @page WordSection1 { margin: 1in; } div.WordSection1 { }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>​Raised a JIRA but as we don't yet know the exact cause we can't replicate this so hasn't been reproduced on master yet.<br>
</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p>S<br>
</p>
<div style="color: rgb(33, 33, 33);">
<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 Ken Rice <krice@freeswitch.org><br>
<b>Sent:</b> 13 December 2017 14:31<br>
<b>To:</b> 'FreeSWITCH Users Help'<br>
<b>Subject:</b> Re: [Freeswitch-users] FreeSWITCH crash due to Signal 6 Abort while executing assert in nua_stack.c</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Bug reports go to <a href="https://freeswitch.org/jira">https://freeswitch.org/jira</a> not the mailing list</p>
<p class="MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Shaun Stokes<br>
<b>Sent:</b> Wednesday, December 13, 2017 6:11 AM<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> Re: [Freeswitch-users] FreeSWITCH crash due to Signal 6 Abort while executing assert in nua_stack.c</p>
</div>
</div>
<p class="MsoNormal"> </p>
<p><span style="font-size:12.0pt; color:black">​FYI.</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">FreeSWITCH version 1.6.19</span></p>
<p><span style="font-size:12.0pt; color:black">Debian 8.9</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-size:12.0pt; color:black">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal" style="background:white"><b><span style="color:black">From:</span></b><span style="color:black"> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf
 of Shaun Stokes <<a href="mailto:shaun.stokes@itec-support.co.uk">shaun.stokes@itec-support.co.uk</a>><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</span><span style="font-size:12.0pt; color:black">
</span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
<div>
<p style="background:white"><span style="font-size:12.0pt; color:black">Hi,</span></p>
<p style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
<p style="background:white"><span style="font-size:12.0pt; color:black">Recently experienced a crash (Signal 6 Abort) on FreeSWITCH, daemon log as follows.</span></p>
<p style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">systemd[1]: freeswitch.service: main process exited, code=killed, status=6/ABRT</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">fs_cli[5866]: [ERROR] fs_cli.c:1659 main() Error Connecting [Socket Connection Error]</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">systemd[1]: freeswitch.service: control process exited, code=exited status=255</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">systemd[1]: Unit freeswitch.service entered failed state.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">systemd[1]: freeswitch.service holdoff time over, scheduling restart.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">systemd[1]: Stopping freeswitch...</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">systemd[1]: Starting freeswitch...</span></p>
</div>
<p style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
<p style="background:white"><span style="font-size:12.0pt; color:black">We don't have the FreeSWITCH logs for this particular incident, back-trace as follows.</span></p>
<p style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">================================================================================</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"># bt full</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">================================================================================</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#0  0x00007f6b05f79067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        resultvar = 0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        pid = 20383</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        selftid = 20402</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#1  0x00007f6b05f7a448 in __GI_abort () at abort.c:89</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        save_stage = 2</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        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>}</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        sigs = {__val = {32, 0 <repeats 15 times>}}</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#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</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        str = 0x7f67e44770f0 ""</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        total = 4096</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#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</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">No locals.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#4  0x00007f6afebf3a36 in nh_remove (nua=0x7f6aec019e70, nh=0x7f6adfb244a0) at nua_stack.c:959</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">No locals.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#5  nh_destroy (nua=0x7f6aec019e70, nh=0x7f6adfb244a0) at nua_stack.c:998</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        nh = 0x7f6adfb244a0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        nua = 0x7f6aec019e70</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#6  0x00007f6afebf4ba5 in nua_stack_destroy_handle (tags=<optimized out>, nh=<optimized out>, nua=<optimized out>) at nua_stack.c:660</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">No locals.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#7  nua_stack_signal (nua=0x7f6aec019e70, msg=0x31, ee=0x7f6ac401fba8) at nua_stack.c:661</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        nh = 0x7f6adfb244a0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        tags = 0x7f6ac401fbd0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        event = nua_r_destroy</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        error = 0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        __func__ = "nua_stack_signal"</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#8  0x00007f6afec276d2 in su_base_port_execute_msgs (queue=0x7f67ea5624b0) at su_base_port.c:280</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        root = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        f = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        msg = 0x0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        n = 12</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#9  0x00007f6afec27bcd in su_base_port_run (self=0x7f6adc0008c0) at su_base_port.c:335</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        tout = 15000</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        tout2 = 0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        __PRETTY_FUNCTION__ = "su_base_port_run"</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#10 0x00007f6afec2c900 in su_pthread_port_clone_main (varg=0x7f6afea2e750) at su_pthread_port.c:343</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        arg = 0x0</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        task = {{sut_port = 0x7f6adc0008c0, sut_root = 0x7f6adc001130}}</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        zap = 1</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#11 0x00007f6b062f7064 in start_thread (arg=0x7f6afe750700) at pthread_create.c:309</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        __res = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        pd = 0x7f6afe750700</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        now = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        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}}}</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        not_first_call = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        pagesize_m1 = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        sp = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        freesize = <optimized out></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">        __PRETTY_FUNCTION__ = "start_thread"</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">#12 0x00007f6b0602c62d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">No locals.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Essentially it failed on 'assert(*nh->nh_prev == nh);​' while executing this function in 'nua_stack.c'.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">###############</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">/** @internal Remove a handle from list of handles */</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">static</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">void nh_remove(nua_t *nua, nua_handle_t *nh)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">{</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">  assert(nh_is_inserted(nh)); assert(*nh->nh_prev == nh);</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">  if (nh->nh_next)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">    nh->nh_next->nh_prev = nh->nh_prev;</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">  else</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">    nua->nua_handles_tail = nh->nh_prev;</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">  *nh->nh_prev = nh->nh_next;</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">  nh->nh_prev = NULL;</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">  nh->nh_next = NULL;</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">}</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">###############</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">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.</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Thanks,</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">S</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"><br>
______________________________________________________________________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________________________________________________<br>
<br>
______________________________________________________________________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________________________________________________</span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; color:black"><br>
______________________________________________________________________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________________________________________________</span></p>
</div>
<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>