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

Jurijs Ivolga jurij.ivo at gmail.com
Thu Dec 17 09:41:52 CET 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151217/89a609b0/attachment.html>


More information about the sr-users mailing list