On 4/20/11 5:07 PM, Roman Yeryomin wrote:
On 20 April 2011 15:24, Daniel-Constantin Mierla<mico...@gmail.com>  wrote:
On 4/20/11 1:54 PM, Roman Yeryomin wrote:
On 19 April 2011 13:12, Roman Yeryomin<leroi.li...@gmail.com>    wrote:
ok, here is the backtrace:

# gdb kamailio core
...
Reading symbols from /usr/local/lib/kamailio/modules_k/perlvdb.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/perlvdb.so
...
Core was generated by `kamailio -dddd'.
Program terminated with signal 11, Segmentation fault.
[New process 13773]
#0  0xb7228e3a in parseurl (url=0xb7213230 "T�0\b#") at perlvdbfunc.c:60
60              if (strlen(cn)>    0)


If I understand this correctly error refers to row 60 in perlvdbfunc.c
strlen expects const char* instead of char* ?

So, any thoughts?
Send the output of 'bt full'. You haven't sent the backtrace, just the
initial output from the gdb command loading kamailio and the core. Once it
is loaded, run the command I mentioned and send the output.

ah, sorry, don't have much experience with gdb
this must be it:

(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

What is your OS? Also, provide the list of loaded modules and the values for all db_url parameters in the config.

Cheers,
Daniel
bounds>) at perlvdbfunc.c:121
         res =<value optimized out>
         cn =<value optimized out>
         obj =<value optimized out>
         __FUNCTION__ = "perlvdb_db_init"
#2  0xb720df85 in child_init (rank=0) at authdb_mod.c:166
No locals.
#3  0x08123d34 in init_mod_child (m=0x830d540, rank=11) at sr_module.c:829
No locals.
#4  0x08123d0c in init_mod_child (m=0x830d820, rank=11) at sr_module.c:826
No locals.
#5  0x080cff21 in fork_tcp_process (child_id=11, desc=0x821b546 "tcp
receiver", r=2, reader_fd_1=0xbf8d4a8c) at pt.c:478
         pid = 0
         sockfd = {26, 28}
         reader_fd = {29, 30}
         ret =<value optimized out>
         i = 2
#6  0x0812ef0f in tcp_init_children () at tcp_main.c:4808
         r = 2
         reader_fd_1 = 30
         pid =<value optimized out>
         si =<value optimized out>
         __FUNCTION__ = "tcp_init_children"
#7  0x080b0f15 in main_loop () at main.c:1632
         i = 4
         pid =<value optimized out>
         si = (struct socket_info *) 0x0
         si_desc = "udp receiver child=3
sock=192.168.1.103:5060\000\220!\bb: \bT��\001�\224
�\207\000\000\000\001\000\000\000|\0373�\v\020\000\000`\0373�hK\215�\000\026y\b\000\000\000\000{\000\000\000\000\026y\b\002\023�M\000\000\000\000@Q%\b\000\000\000\000hK\215��Wk�\207\000\000"
#8  0x080b3368 in main (argc=2, argv=0xbf8d4cf4) at main.c:2398
         cfg_stream = (FILE *) 0x86cf008
         c =<value optimized out>
         r = 1
         tmp = 0x8254b2c
"HJ%\bh�v�p+v��<d��\222\005\b@\211_��\222\005\b�\222\005\b\220\na�\020\213j�\032\223\005\b*\223\005\b�Zk��\212g�Z\223\005\bPHd�z\223\005\b�Ih�\232\223\005\b�Wk�"
         tmp_len = -1217212428
         port = 134582928
         proto = -1081258936
         ret =<value optimized out>
         seed = 748194738
         rfd = 5
         debug_save =<value optimized out>
         debug_flag = 1
         dont_fork_cnt = 0
         n_lst =<value optimized out>
         p = 0x0

--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to