[Users] avp_db_load() generates core dump
Christian Schlatter
cs at unc.edu
Thu Apr 13 22:03:41 CEST 2006
Daniel-Constantin Mierla wrote:
>
>
> On 04/13/06 16:49, Christian Schlatter wrote:
>> Using the (g)lobal flag together with avp_db_load() crashes my OpenSER
>> in a reproducible manner.
> actually the avp_pushto() was crashing. The fix is now in CVS. However,
> since the anonymous cvs is not synchronized with the development
> version, you can use the snapshot from:
> http://www.openser.org/downloads/tmp/openser-1.1.0-dev17-tls-060413a_src.tar.gz
This version doesn't crash anymore.
thanks
Christian
>
>
> Thanks,
> Daniel
>
>> The config works if I don't use the g flag and I tested it on CVS
>> current. I try to give as much information as possible here:
>>
>> from openser.cfg:
>> ...
>> # check for Call Forwarding Unconditional (CFU)
>> if (avp_db_load("$ruri/username", "$avp(s:cfu)")) {
>> avp_print();
>> # replace R-URI with CFU URI, g will fetch all CFU URIs -->
>> request will fork
>> avp_pushto("$ru", "$avp(s:cfu)/g");
>> # avp_pushto("$ru", "$avp(s:cfu)"); --> this works
>> sl_send_reply("181", "Call is being forwarded (CFU)");
>> route(ROUTE_DEFAULT_RELAY);
>> exit;
>> }
>> ...
>>
>> from openser.log:
>> ...
>> openser[31411]: INFO:avpops:print_avp: p=0xb5770dc8, flags=103
>> openser[31411]: INFO: name=<cfu>
>> openser[31411]: INFO:
>> val_str=<sip:vm-admin at xx.xx.xx.xx / 25>
>> openser[31411]: INFO:avpops:print_avp: p=0xb5770d98, flags=2
>> openser[31411]: INFO: id=<34>
>> openser[31411]: INFO: val_str=<sip:cschlatt at unc.edu /
>> 20>
>> openser[31403]: child process 31411 exited by a signal 11
>> ...
>>
>> from core dump:
>> #0 ops_pushto_avp (msg=0x8123bb0, dst=0x8123130, src=0x8123160) at
>> avpops_impl.c:1111
>> 1111 flags = avp->flags;
>>
>>
>> Thanks
>> Christian
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1951 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060413/cb0fa90d/attachment.bin>
More information about the sr-users
mailing list