<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">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>