[SR-Users] Kamailio crashes after Contact expires event route

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 12 19:18:01 CET 2020


Hello,

it looks like you can reproduce it, if yes, try to get it write the core
dump file. For that you may have to do:

ulimit -c unlimited

then run kamailio as user "root" (or a user with root privileges) with
-w parameter pointing to a folder where you want the core file to be
saved. Reproduce the issue and it should generate a core file. Grab the
output of "bt full" with gdb from the core file and send it here.

Cheers,
Daniel

On 12.02.20 18:25, Sergiu Pojoga wrote:
> Hi there,
>
> After below even route is triggered, Kamailio crashes with the
> following in logs:
>
> Feb 12 08:03:59 kamailio[24671]: INFO: <script>: Received HTTP/RPC
> request from IP=127.0.0.1
> Feb 12 08:03:59 kamailio[24671]: WARNING: <script>: Contact
> myusername at sip.mydomain.net <mailto:myusername at sip.mydomain.net> has
> expired
> Feb 12 08:03:59 kamailio[24671]: INFO: drouting [drouting.c:483]:
> rpc_reload(): RPC command received!
> Feb 12 08:03:59 kamailio[24675]: CRITICAL: <core>
> [core/pass_fd.c:277]: receive_fd(): EOF on 59
> Feb 12 08:03:59 kamailio[24614]: ALERT: <core> [main.c:745]:
> handle_sigs(): child process 24671 exited by a signal 11
> Feb 12 08:03:59 kamailio[24614]: ALERT: <core> [main.c:748]:
> handle_sigs(): core was not generated
> Feb 12 08:03:59 kamailio[24614]: INFO: <core> [main.c:770]:
> handle_sigs(): terminating due to SIGCHLD
> Feb 12 08:03:59 kamailio[24675]: INFO: <core> [main.c:825]: sig_usr():
> signal 15 received
>
> event_route[usrloc:contact-expired] {
>    xlog("L_WARN", "Contact $ulc(exp=>aor) has expired\n");
>
>    # Remove the sip: from the front of the Received URI
>    $var(exp_received) = $(ulc(exp=>received){s.substr,4,0});
>
>   sql_query("db", "UPDATE `dr_gateways` SET address = '127.0.0.1'
> WHERE address = '$var(exp_received)'", "rz");
>   sql_result_free("rz");
>
>   jsonrpc_exec('{"jsonrpc": "2.0", "method": "drouting.reload", "id":
> 1}');
> }
>
> If I comment out the sql and jsonrpc_exec lines above - crash does not
> happen.
>
> Let me know if core dump is needed.
>
> Thanks,
> --Sergiu
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200212/348cfe16/attachment.html>


More information about the sr-users mailing list