[OpenSIPS-Users] Opensips 3.0 segfault on opensips-cli -x mi reload_routes

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jun 25 11:57:01 EDT 2019


OK, I see. And again, any useful backtrace during the crashes ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/25/2019 06:48 PM, Kirill Galinurov wrote:
> It's crashes exactly when reloading It's my test instance with no 
> traffic at all yet. I rewrite my old 2.4 config to new syntax I paste 
> block of code. Then change it. And it's crash. But if I restart 
> opensips everything looks OK.
>
> вт, 25 июн. 2019 г. в 18:36, Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>>:
>
>     Do you have any idea if OpenSIPS crashes exactly when reloading or
>     does it crash when handling traffic after the reload ? Again, any
>     chances to get a valid backtrace ?
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com
>     OpenSIPS Summit 2019
>        https://www.opensips.org/events/Summit-2019Amsterdam/
>
>     On 06/25/2019 06:28 PM, Kirill Galinurov wrote:
>>     Hi Bogan,
>>     Yes my opensips predictably crashes, when I do  routes
>>     reload. Even when I do not change anythihg. But I think.. It' s
>>     probably crashes when I use
>>     return statement like:
>>     if (is_method("INVITE")) {
>>                     route(get_account_code);
>>                     route(check_callerid);
>>                     route(number_normalize);
>>     }
>>
>>     route[check_callerid]{
>>         xlog("L_INFO","Check callerid to path for operators\n");
>>         if(! dp_translate(999,$fU,$avp(FromNum))){
>>             send_reply(404,"Bad From User");
>>             exit;
>>         } else {
>>             return;
>>                 }
>>     }
>>     When Opensips run as systemd service It restarts and core was not
>>     generated.
>>
>>
>>
>>     вт, 25 июн. 2019 г. в 18:06, Bogdan-Andrei Iancu
>>     <bogdan at opensips.org <mailto:bogdan at opensips.org>>:
>>
>>         Hi Kirill,
>>
>>         Does your opensips predictably crashes each time you do the
>>         routes reload ? if yes, do you get each time an invalid
>>         corefile ?
>>
>>         Best regards,
>>
>>         Bogdan-Andrei Iancu
>>
>>         OpenSIPS Founder and Developer
>>            https://www.opensips-solutions.com
>>         OpenSIPS Summit 2019
>>            https://www.opensips.org/events/Summit-2019Amsterdam/
>>
>>         On 06/25/2019 11:47 AM, Kirill Galinurov wrote:
>>>         One more information
>>>         I run opensips in debug mode with command:
>>>         opensips -f /etc/opensips/opensips.cfg.j2 -p "python3
>>>         /etc/opensips/opensips-preproc.py" a Q_MALLOC_DBG -m 16832
>>>         -M 512
>>>
>>>         After opensips-cli -x mi reload_routes
>>>         ERROR: communication exception for 'reload_routes' returned:
>>>         ERROR: Is OpenSIPS running?
>>>
>>>         Logs:
>>>
>>>         Jun 25 04:37:33 [21481] DBG:core:fix_actions: fixing
>>>         t_was_cancelled, /etc/opensips/opensips_routes.cfg:346
>>>         Jun 25 04:37:33 [21481] INFO:core:routes_reload_per_proc:
>>>         process successfully parsed new cfg (seq 1)
>>>         Jun 25 04:37:55 [21460] DBG:core:reload_routing_script: done
>>>         with waiting after 20001 miliseconds
>>>         Jun 25 04:38:13 [21457] DBG:core:handle_sigs: unknown child
>>>         process 21458 ended. Ignoring
>>>         Jun 25 04:38:13 [21457] DBG:core:handle_sigs: OpenSIPS exit
>>>         status = 139
>>>         Jun 25 04:38:13 [21457] INFO:core:handle_sigs: child process
>>>         21463 exited by a signal 11
>>>         Jun 25 04:38:13 [21457] INFO:core:handle_sigs: core was
>>>         generated
>>>         Jun 25 04:38:13 [21457] INFO:core:handle_sigs: terminating
>>>         due to SIGCHLD
>>>
>>>         (gdb) bt full:
>>>         #0  0x00000000004652b0 in ?? ()
>>>         No symbol table info available.
>>>         #1  0x0000000000000044 in ?? ()
>>>         No symbol table info available.
>>>         #2  0x000053d70577fc74 in ?? ()
>>>         No symbol table info available.
>>>         #3  0x0000000000000000 in ?? ()
>>>         No symbol table info available.
>>>
>>>
>>>
>>>         _______________________________________________
>>>         Users mailing list
>>>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190625/2c6ca18f/attachment-0001.html>


More information about the Users mailing list