[OpenSIPS-Users] Segfault on mi reload_routes

Mark Farmer farmorg at gmail.com
Wed Sep 25 08:33:44 EDT 2019


Hi all

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.

I did a git pull and install clean yesterday on opensips-cli.

opensips -V
version: opensips 3.0.0 (x86_64/linux)
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
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 435890a06
main.c compiled on 13:19:25 Jun 21 2019 with gcc 7

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:

else if (isflagset(Voicemail)) {
                $var(rtpflags) ="replace-session-connection replace-origin
trust-address force symmetric in-face=external out-face=internal";
                xlog("CUSTOM_LOG: Call goes to Voicemail service - Route to
Asterisk.");
                xlog("CUSTOM_LOG: Engaging rtpengine_offer with flags:
$var(rtpflags)");
                rtpengine_offer($var(rtpflags));
                xlog("CUSTOM_LOG: Rewriting host:port");
                rewritehostport("10.150.50.53:5060");
                force_send_socket(udp:10.150.50.51);
                return(1);

opensips-cli -d -x mi reload_routes
DEBUG: using config file /etc/opensips-cli.cfg
DEBUG: Loaded module 'database'
DEBUG: Loaded module 'diagnose'
DEBUG: Loaded module 'instance'
DEBUG: Loaded module 'mi'
DEBUG: sent command ':opensips_fifo_reply_23259:{"jsonrpc": "2.0", "id":
"16512", "method": "which", "params": []}'
DEBUG: Loaded module 'tls'
DEBUG: Loaded module 'trace'
DEBUG: Skipping module 'trap' - excluded on purpose
DEBUG: Loaded module 'user'
DEBUG: running in non-interactive mode '['mi', 'reload_routes']'
DEBUG: running command 'reload_routes' '[]'
DEBUG: named parameters are used
DEBUG: running command 'reload_routes' '{}'
DEBUG: sent command ':opensips_fifo_reply_20789:{"jsonrpc": "2.0", "id":
"10120", "method": "reload_routes", "params": {}}'
ERROR: communication exception for 'reload_routes' returned:
ERROR: Is OpenSIPS running?

DBG:core:decode_mime_type: Decoding MIME type for:[application/sdp]
DBG:core:fix_actions: fixing t_on_reply,
/usr/local/etc/opensips/opensips.cfg:735
DBG:core:fix_actions: fixing is_registered,
/usr/local/etc/opensips/opensips.cfg:749
DBG:core:fix_actions: fixing is_registered,
/usr/local/etc/opensips/opensips.cfg:749
DBG:core:fix_actions: fixing insert_hf,
/usr/local/etc/opensips/opensips.cfg:751
DBG:core:fix_actions: fixing lookup,
/usr/local/etc/opensips/opensips.cfg:753
DBG:core:fix_actions: fixing is_from_gw,
/usr/local/etc/opensips/opensips.cfg:753
DBG:core:fix_actions: fixing rtpengine_offer,
/usr/local/etc/opensips/opensips.cfg:768
DBG:core:fix_actions: fixing do_routing,
/usr/local/etc/opensips/opensips.cfg:769
DBG:core:fix_actions: fixing rtpengine_offer,
/usr/local/etc/opensips/opensips.cfg:774
DBG:core:fix_actions: fixing do_routing,
/usr/local/etc/opensips/opensips.cfg:775
DBG:core:fix_actions: fixing rtpengine_offer,
/usr/local/etc/opensips/opensips.cfg:780
CRITICAL:core:sig_usr: segfault in process pid: 30907, id: 2
DBG:core:restore_segv_handler: restoring SIGSEGV handler...
DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler
DBG:core:handle_sigs: OpenSIPS exit status = 139
INFO:core:handle_sigs: child process 30907 exited by a signal 11
INFO:core:handle_sigs: core was generated
INFO:core:handle_sigs: terminating due to SIGCHLD


Thanks and regards
Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190925/37d1eebe/attachment.html>


More information about the Users mailing list