[SR-Users] perlvdb error

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 26 10:58:06 CEST 2011



On 4/21/11 2:21 PM, Roman Yeryomin wrote:
> On 21 April 2011 12:16, Daniel-Constantin Mierla<miconda at gmail.com>  wrote:
>>> (gdb) bt full
>>> #0  0xb7228e3a in parseurl (url=0xb7213230 "T�0\b#") at perlvdbfunc.c:60
>>> No locals.
>>> #1  0xb7228e7d in perlvdb_db_init (url=0x1<Address 0x1 out of
>> Seems that the db url is not passed properly.
>>
>> While you are in gdb, do:
>>
>> frame 2
>> p db_url
> (gdb) frame 2
> #2  0xb720df85 in child_init (rank=0) at authdb_mod.c:166
> 166             auth_db_handle = auth_dbf.init(&db_url);
> (gdb) p db_url
> $1 = {s = 0x830f554 "perlvdb:OpenSER::VDB::Adapter::Auth", len = 35}

the url value looks ok here, but what t gets to perlvdb_db_init() is 
corrupted ...

Can you send also the log messages, i.e., output of:

kamailio -E -ddd

Cheers,
Daniel

>> What is your OS? Also, provide the list of loaded modules and the values for
>> all db_url parameters in the config.
> OS is Ubuntu server 8.04 with all updates and kernel 2.6.38.3 running
> in virtual machine (virtualbox).
>
> $ cat /usr/local/etc/kamailio/kamailio.cfg | grep loadmodule
> loadmodule "db_mysql.so"
> loadmodule "mi_fifo.so"
> loadmodule "kex.so"
> loadmodule "tm.so"
> loadmodule "tmx.so"
> loadmodule "sl.so"
> loadmodule "rr.so"
> loadmodule "pv.so"
> loadmodule "maxfwd.so"
> loadmodule "usrloc.so"
> loadmodule "registrar.so"
> loadmodule "textops.so"
> loadmodule "siputils.so"
> loadmodule "xlog.so"
> loadmodule "sanity.so"
> loadmodule "ctl.so"
> loadmodule "mi_rpc.so"
> loadmodule "acc.so"
> loadmodule "perl.so"
> loadmodule "perlvdb.so"
> loadmodule "auth.so"
> loadmodule "auth_db.so"
> loadmodule "app_lua.so"
>
> $ cat /usr/local/etc/kamailio/kamailio.cfg | grep db_url
> modparam("auth_db", "db_url", "perlvdb:OpenSER::VDB::Adapter::Auth")
> modparam("alias_db", "db_url", "perlvdb:OpenSER::VDB::Adapter::Alias")
>
>
> Regards,
> Roman
>
> _______________________________________________
> 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://www.asipto.com




More information about the sr-users mailing list