[Users] avp_db_load() generates core dump

Daniel-Constantin Mierla daniel at voice-system.ro
Thu Apr 13 16:49:41 CEST 2006



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

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
>   




More information about the Users mailing list