[SR-Users] Kamailio crashing after comparing AVP with string

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 17 09:45:23 CET 2015


Hello,

reproduce the case with 'ulimit -c unlimited' executed in the terminal
before starting kamailio. You should get a corefile and then get the
output of 'bt full' in the gdb (gdb /path/to/kamailio
/path/to/corefile). Send the output here to investigate it.

Cheers,
Daniel

On 17/12/15 09:41, Jurijs Ivolga wrote:
> Hi,
>
> I have weird behavior, when I'm trying to compare AVP with string:
>
> if ($avp(AVP_ATTRS) != "bla") {
>                 ds_next_dst();
>         }
>
> $avp(AVP_ATTRS) contains Dispatcher attribute.
>
> Kamailio crashes:
>
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: CRITICAL: <core>
> [pass_fd.c:275]: receive_fd(): EOF on 15
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: <core>
> [main.c:728]: handle_sigs(): child process 4816 exited by a signal 11
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: <core>
> [main.c:731]: handle_sigs(): core was not generated
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: INFO: <core>
> [main.c:743]: handle_sigs(): terminating due to SIGCHLD
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4843]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4842]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4841]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4840]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4839]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4838]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4837]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4836]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4835]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4834]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4829]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4814]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4815]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4823]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4813]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4821]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4812]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4818]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4825]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4819]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4822]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4830]: INFO: <core>
> [main.c:798]: sig_usr(): signal 15 received
>
> Following code works fine:
>
> if ($avp(AVP_ATTRS) == "bla") {
>                 ds_next_dst();
>         }
>
> Kamailio version:
>
> version: kamailio 4.3.4 (x86_64/linux) a56227
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
> USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
> SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: a56227
> compiled on 03:29:23 Dec 17 2015 with gcc 4.4.7
>
> Thak you!
>
> With kind regards,
>
> Jurijs
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151217/537b814a/attachment.html>


More information about the sr-users mailing list