[SR-Users] segfault kamailio 3.01 avp_copy flag g
Jon Bonilla (Manwe)
manwe at aholab.ehu.es
Thu May 6 19:19:07 CEST 2010
Hi all
I have experienced segfaults when using avp_copy in Kamailio 3.01. This happens
when using the "g" flag and the avp is not null (no problem if it has no
content)
avp_copy("$avp(s:block_out_list)", "$avp(s:caller_block_out_list)/gd");
Removing the "g" flags works ok (but does not copy all the content of course):
avp_copy("$avp(s:block_out_list)", "$avp(s:caller_block_out_list)/d");
Directly copying the avp works fine:
$avp(s:caller_block_out_list) = $avp(s:block_out_list);
Logs:
kernel: [1503237.523015] kamailio[8156]: segfault at 1008eb91c ip 505344 sp
7fffffffad10 error 4 in kamailio[400000+1c9000]
WARNING: <core> [usr_avp.c:483]:AVP specified with index, but not used for search
ALERT: <core> [main.c:722]: child process 8156 exited by a signal 11
ALERT: <core> [main.c:725]: core was not generated
INFO: <core> [main.c:737]: INFO: terminating due to SIGCHLD
INFO: <core> [main.c:788]: INFO: signal 15 received
More information about the sr-users
mailing list