<p>I am seeing crashes with both 1.11.3 and 1.11.4 when the system is under load and we perform back to back fifo get_statistics all | grep udp commands (about 10 seconds apart). Opensips will segfault.</p>

<p>Children = 8<br>
pkgmem = 512<br>
Shmem = 2048</p>

<p>modules:<br>
couchbase<br>
maxfwd<br>
mysql<br>
sl<br>
signaling<br>
json<br>
rest_client<br>
avpops<br>
tm<br>
sipmsgops<br>
rr<br>
mi_fifo<br>
options<br>
drouting<br>
uri<br>
benchmark</p>

<p>Apr  7 20:29:14 osips03 /usr/local/sbin/opensips[28988]: CRITICAL:core:fm_status: different free frag. count: 2!=3 for hash 200</p>

<p>/usr/local/sbin/opensips[28988]: CRITICAL:core:fm_status: different free frag. count: 2!=3 for hash 200<br>
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff26795000<br>
Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 1024 -M 64 -u ope'.<br>
Program terminated with signal 11, Segmentation fault.<br>
#0  0x000000000051bde6 in fm_remove_free (n=0x7f0486fdde68, qm=0x7f0486fba010) at mem/f_malloc.c:172<br>
172             *pf=n-&gt;u.nxt_free;</p>

<p>(gdb) bt<br>
#0  0x000000000051bde6 in fm_remove_free (n=0x7f0486fdde68, qm=0x7f0486fba010) at mem/f_malloc.c:172<br>
<a href="https://github.com/OpenSIPS/opensips/issues/1" class="issue-link" title="Dummy ticket">#1</a>  fm_malloc (qm=0x7f0486fba010, size=72) at mem/f_malloc.c:386<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  0x00000000005227d7 in parse_headers (msg=0x7f0486fdb7c8, flags=512, next=0) at parser/msg_parser.c:315<br>
<a href="https://github.com/OpenSIPS/opensips/pull/3" class="issue-link" title="Compilation problem under CentOS 6">#3</a>  0x00007f04843af74c in find_first_route (_m=0x7f0486fdb7c8) at loose.c:120<br>
<a href="https://github.com/OpenSIPS/opensips/pull/4" class="issue-link" title="Compilation problem under CentOS 6">#4</a>  loose_route (_m=) at loose.c:894<br>
<a href="https://github.com/OpenSIPS/opensips/pull/5" class="issue-link" title="spec file update to CentOS 6">#5</a>  0x00000000004199af in do_action (a=0x7f0486fcad68, msg=0x7f0486fdb7c8) at action.c:1836<br>
<a href="https://github.com/OpenSIPS/opensips/issues/6" class="issue-link" title="Wrong password column used for authentication">#6</a>  0x0000000000420945 in run_action_list (a=, msg=0x7f0486fdb7c8) at action.c:172<br>
<a href="https://github.com/OpenSIPS/opensips/pull/7" class="issue-link" title="b2bua: Add AVP-based authentication">#7</a>  0x00000000004a8ab8 in eval_elem (e=0x7f0486fcae48, msg=0x7f0486fdb7c8, val=0x0) at route.c:1618<br>
<a href="https://github.com/OpenSIPS/opensips/issues/8" class="issue-link" title="Flag to set string to lower for RURI/From/To/Contact">#8</a>  0x00000000004a85c8 in eval_expr (e=0x7f0486fcae48, msg=0x7f0486fdb7c8, val=0x0) at route.c:1963<br>
<a href="https://github.com/OpenSIPS/opensips/issues/9" class="issue-link" title="segfault on fm_malloc">#9</a>  0x00000000004a85b5 in eval_expr (e=0x7f0486fcae98, msg=0x7f0486fdb7c8, val=0x0) at route.c:1984<br>
<a href="https://github.com/OpenSIPS/opensips/issues/10" class="issue-link" title="Set exchange and routing-key for event_rabbitmq module">#10</a> 0x0000000000419787 in do_action (a=0x7f0486fcb8f8, msg=0x7f0486fdb7c8) at action.c:1085<br>
<a href="https://github.com/OpenSIPS/opensips/issues/11" class="issue-link" title="Set exchange and routing-key for the event_rabbitmq module">#11</a> 0x0000000000420945 in run_action_list (a=, msg=0x7f0486fdb7c8) at action.c:172<br>
<a href="https://github.com/OpenSIPS/opensips/pull/12" class="issue-link" title="Install Notes">#12</a> 0x00000000004210c8 in run_actions (msg=0x7f0486fdb7c8, a=0x7f0486fc58f8) at action.c:137<br>
<a href="https://github.com/OpenSIPS/opensips/pull/13" class="issue-link" title="1.8">#13</a> run_actions (msg=0x7f0486fdb7c8, a=0x7f0486fc58f8) at action.c:191<br>
<a href="https://github.com/OpenSIPS/opensips/pull/14" class="issue-link" title="Added presence federation algorithm.">#14</a> run_top_route (a=0x7f0486fc58f8, msg=0x7f0486fdb7c8) at action.c:212<br>
<a href="https://github.com/OpenSIPS/opensips/pull/15" class="issue-link" title="Ds better pua dialoginfo">#15</a> 0x000000000049192f in receive_msg (buf=0x837c20 "INVITE sip:18608281122@10.1.0.180:5060 SIP/2.0\r\nRecord-Route: sip:10.1.0.56;lr;ftag=BS57jDtSF3H1p;did=d36.69b4aaa4\r\nVia: SIP/2.0/UDP 10.1.0.56:5060;branch=z9hG4bKae91.dc208921.0\r\nVia: SI"..., <br>
    len=, rcv_info=) at receive.c:172<br>
<a href="https://github.com/OpenSIPS/opensips/pull/16" class="issue-link" title="Fix PUA module so that it sends a final PUBLISH on expiration.">#16</a> 0x00000000005149f1 in udp_rcv_loop () at udp_server.c:422<br>
<a href="https://github.com/OpenSIPS/opensips/pull/17" class="issue-link" title="Revert commit 4b29352e.">#17</a> 0x0000000000415577 in main_loop () at main.c:929<br>
<a href="https://github.com/OpenSIPS/opensips/pull/18" class="issue-link" title="We now rely on libxml api instead of cut/paste.">#18</a> main (argc=, argv=) at main.c:1612</p>

<p>I've got a back trace, but would like to send it privately please.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/453">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciSMfOIDPGTOIyGzlr3iiJYLcX0zCks5n9GN-gaJpZM4D8Ckt.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/453"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>