<div dir="ltr"><div dir="ltr">To add a bit more, I've enabled core dumps but I've not been able to see anything useful:<div><br></div><div><div>(gdb) core-file /var/log/opensips/core.12152</div><div>[New LWP 12152]</div><div>Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -M 4 -u opens'.</div><div>Program terminated with signal SIGSEGV, Segmentation fault.</div><div>#0 0x00007f266e894646 in ?? ()</div><div>(gdb) bt full</div><div>#0 0x00007f266e894646 in ?? ()</div><div>No symbol table info available.</div><div>#1 0x0000562dc721ae56 in ?? ()</div><div>No symbol table info available.</div><div>#2 0x000000006dc3d9f7 in ?? ()</div><div>No symbol table info available.</div><div>#3 0x0000000000706475 in ?? ()</div><div>No symbol table info available.</div><div>#4 0x0000000000000000 in ?? ()</div><div>No symbol table info available.</div></div><div><br></div><div>I also 'upgraded' to a git clone so now running latest code.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 25 Sep 2019 at 13:33, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all<div><br></div><div>I've seen reports of this elsewhere but didn't find a solution. When I use opensips-cli to do a 'mi reload_routes' OpenSIPS segfaults.</div><div><br></div><div>I did a git pull and install clean yesterday on opensips-cli.</div><div><br></div><div><div>opensips -V</div><div>version: opensips 3.0.0 (x86_64/linux)</div><div>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535</div><div>poll method support: poll, epoll, sigio_rt, select.</div><div>git revision: 435890a06</div><div>main.c compiled on 13:19:25 Jun 21 2019 with gcc 7</div></div><div><br></div><div>Oddly, it doesn't seem to matter what is in the last line, it errors regardless but this is the part of the route that seems to trigger it:</div><div><br></div><div><div>else if (isflagset(Voicemail)) {</div><div> $var(rtpflags) ="replace-session-connection replace-origin trust-address force symmetric in-face=external out-face=internal";</div><div> xlog("CUSTOM_LOG: Call goes to Voicemail service - Route to Asterisk.");</div><div> xlog("CUSTOM_LOG: Engaging rtpengine_offer with flags: $var(rtpflags)");</div><div> rtpengine_offer($var(rtpflags));</div></div><div> xlog("CUSTOM_LOG: Rewriting host:port");</div><div> rewritehostport("<a href="http://10.150.50.53:5060" target="_blank">10.150.50.53:5060</a>");</div><div> force_send_socket(udp:10.150.50.51);</div><div> return(1);</div><div><br></div><div><div>opensips-cli -d -x mi reload_routes</div><div>DEBUG: using config file /etc/opensips-cli.cfg</div><div>DEBUG: Loaded module 'database'</div><div>DEBUG: Loaded module 'diagnose'</div><div>DEBUG: Loaded module 'instance'</div><div>DEBUG: Loaded module 'mi'</div><div>DEBUG: sent command ':opensips_fifo_reply_23259:{"jsonrpc": "2.0", "id": "16512", "method": "which", "params": []}'</div><div>DEBUG: Loaded module 'tls'</div><div>DEBUG: Loaded module 'trace'</div><div>DEBUG: Skipping module 'trap' - excluded on purpose</div><div>DEBUG: Loaded module 'user'</div><div>DEBUG: running in non-interactive mode '['mi', 'reload_routes']'</div><div>DEBUG: running command 'reload_routes' '[]'</div><div>DEBUG: named parameters are used</div><div>DEBUG: running command 'reload_routes' '{}'</div><div>DEBUG: sent command ':opensips_fifo_reply_20789:{"jsonrpc": "2.0", "id": "10120", "method": "reload_routes", "params": {}}'</div><div>ERROR: communication exception for 'reload_routes' returned:</div><div>ERROR: Is OpenSIPS running?</div></div><div><br></div><div><div>DBG:core:decode_mime_type: Decoding MIME type for:[application/sdp]</div><div>DBG:core:fix_actions: fixing t_on_reply, /usr/local/etc/opensips/opensips.cfg:735</div><div>DBG:core:fix_actions: fixing is_registered, /usr/local/etc/opensips/opensips.cfg:749</div><div>DBG:core:fix_actions: fixing is_registered, /usr/local/etc/opensips/opensips.cfg:749</div><div>DBG:core:fix_actions: fixing insert_hf, /usr/local/etc/opensips/opensips.cfg:751</div><div>DBG:core:fix_actions: fixing lookup, /usr/local/etc/opensips/opensips.cfg:753</div><div>DBG:core:fix_actions: fixing is_from_gw, /usr/local/etc/opensips/opensips.cfg:753</div><div>DBG:core:fix_actions: fixing rtpengine_offer, /usr/local/etc/opensips/opensips.cfg:768</div><div>DBG:core:fix_actions: fixing do_routing, /usr/local/etc/opensips/opensips.cfg:769</div><div>DBG:core:fix_actions: fixing rtpengine_offer, /usr/local/etc/opensips/opensips.cfg:774</div><div>DBG:core:fix_actions: fixing do_routing, /usr/local/etc/opensips/opensips.cfg:775</div><div>DBG:core:fix_actions: fixing rtpengine_offer, /usr/local/etc/opensips/opensips.cfg:780</div><div>CRITICAL:core:sig_usr: segfault in process pid: 30907, id: 2</div><div>DBG:core:restore_segv_handler: restoring SIGSEGV handler...</div><div>DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler</div><div>DBG:core:handle_sigs: OpenSIPS exit status = 139</div><div>INFO:core:handle_sigs: child process 30907 exited by a signal 11</div><div>INFO:core:handle_sigs: core was generated</div><div>INFO:core:handle_sigs: terminating due to SIGCHLD</div><div><br></div></div><div><br></div><div>Thanks and regards</div><div>Mark.</div><div><br></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>