Re: [SR-Users] perlvdb error
On 5/19/11 9:45 AM, Daniel-Constantin Mierla wrote: On 5/18/11 8:29 AM, Roman Yeryomin wrote: On 2 May 2011 15:47, Daniel-Constantin Mierlamico...@gmail.com wrote: On 5/1/11 11:51 PM, Roman Yeryomin wrote: On 27 April 2011 20:19, Roman Yeryominleroi.li...@gmail.com wrote: On 27 April 2011 17:26, Daniel-Constantin Mierlamico...@gmail.com wrote: Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. it segfaults anyway - see new log in attachment so.. any thoughts? I am out of the office for a while, I had not time to look anymore to it so far and probably unable to troubleshoot more during this time - I have no testing environment setup for this module. Maybe someone else can jump in, otherwise I will resume later. Sorry for disturbing... is there any chance? it is, but I cannot promise a date yet -- too many things to catch up, while testing this is very inconvenient not having a way to troubleshoot. Not to forget about this one, is it possible to provide me access to a test machine where you have such configuration already set? Then I could just login and troubleshoot, far more faster than it will take to make myself such a testbed. Cheers, Daniel -- Daniel-Constantin Mierla -- http://www.asipto.com http://linkedin.com/in/miconda -- http://twitter.com/miconda ___ 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
Re: [SR-Users] perlvdb error
On 3 June 2011 10:16, Daniel-Constantin Mierla mico...@gmail.com wrote: Sorry for disturbing... is there any chance? it is, but I cannot promise a date yet -- too many things to catch up, while testing this is very inconvenient not having a way to troubleshoot. Not to forget about this one, is it possible to provide me access to a test machine where you have such configuration already set? Then I could just login and troubleshoot, far more faster than it will take to make myself such a testbed. I'm afraid not. At least in the form it is now. As it's not real machine, it's under virtualbox on my development box in local network. I can give you the image for sure. Also I will think maybe I can set it up somewhere to give you an access. And thanks for remembering about this! Regards, Roman ___ 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
Re: [SR-Users] perlvdb error
On 5/18/11 8:29 AM, Roman Yeryomin wrote: On 2 May 2011 15:47, Daniel-Constantin Mierlamico...@gmail.com wrote: On 5/1/11 11:51 PM, Roman Yeryomin wrote: On 27 April 2011 20:19, Roman Yeryominleroi.li...@gmail.comwrote: On 27 April 2011 17:26, Daniel-Constantin Mierlamico...@gmail.com wrote: Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. it segfaults anyway - see new log in attachment so.. any thoughts? I am out of the office for a while, I had not time to look anymore to it so far and probably unable to troubleshoot more during this time - I have no testing environment setup for this module. Maybe someone else can jump in, otherwise I will resume later. Sorry for disturbing... is there any chance? it is, but I cannot promise a date yet -- too many things to catch up, while testing this is very inconvenient not having a way to troubleshoot. Cheers, Daniel -- Daniel-Constantin Mierla http://www.asipto.com http://linkedin.com/in/miconda http://twitter.com/miconda ___ 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
Re: [SR-Users] perlvdb error
On 2 May 2011 17:01, Roman Yeryomin leroi.li...@gmail.com wrote: On 2 May 2011 15:47, Daniel-Constantin Mierla mico...@gmail.com wrote: On 5/1/11 11:51 PM, Roman Yeryomin wrote: On 27 April 2011 20:19, Roman Yeryominleroi.li...@gmail.com wrote: On 27 April 2011 17:26, Daniel-Constantin Mierlamico...@gmail.com wrote: Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. it segfaults anyway - see new log in attachment so.. any thoughts? I am out of the office for a while, I had not time to look anymore to it so far and probably unable to troubleshoot more during this time - I have no testing environment setup for this module. Maybe someone else can jump in, otherwise I will resume later. Thanks for the answer! Anyone want to jump in? :) really nobody? Regards, Roman ___ 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
Re: [SR-Users] perlvdb error
On 5/1/11 11:51 PM, Roman Yeryomin wrote: On 27 April 2011 20:19, Roman Yeryominleroi.li...@gmail.com wrote: On 27 April 2011 17:26, Daniel-Constantin Mierlamico...@gmail.com wrote: Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. it segfaults anyway - see new log in attachment so.. any thoughts? I am out of the office for a while, I had not time to look anymore to it so far and probably unable to troubleshoot more during this time - I have no testing environment setup for this module. Maybe someone else can jump in, otherwise I will resume later. Cheers, Daniel -- 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
Re: [SR-Users] perlvdb error
On 2 May 2011 15:47, Daniel-Constantin Mierla mico...@gmail.com wrote: On 5/1/11 11:51 PM, Roman Yeryomin wrote: On 27 April 2011 20:19, Roman Yeryominleroi.li...@gmail.com wrote: On 27 April 2011 17:26, Daniel-Constantin Mierlamico...@gmail.com wrote: Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. it segfaults anyway - see new log in attachment so.. any thoughts? I am out of the office for a while, I had not time to look anymore to it so far and probably unable to troubleshoot more during this time - I have no testing environment setup for this module. Maybe someone else can jump in, otherwise I will resume later. Thanks for the answer! Anyone want to jump in? :) Regards, Roman ___ 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
Re: [SR-Users] perlvdb error
On 27 April 2011 20:19, Roman Yeryomin leroi.li...@gmail.com wrote: On 27 April 2011 17:26, Daniel-Constantin Mierla mico...@gmail.com wrote: Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. it segfaults anyway - see new log in attachment so.. any thoughts? Regards, Roman ___ 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
Re: [SR-Users] perlvdb error
Can you try with tcp disabled? i.e., disable_tcp=yes in your config file. Might be the way the module is initialized for tcp handling. Cheers, Daniel On 4/26/11 4:05 PM, Roman Yeryomin wrote: On 26 April 2011 11:58, Daniel-Constantin Mierlamico...@gmail.com wrote: On 4/21/11 2:21 PM, Roman Yeryomin wrote: On 21 April 2011 12:16, Daniel-Constantin Mierlamico...@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=0x1Address 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 sure, see kam.log in attachment and this is from syslog: ... -- 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
Re: [SR-Users] perlvdb error
On 4/21/11 2:21 PM, Roman Yeryomin wrote: On 21 April 2011 12:16, Daniel-Constantin Mierlamico...@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=0x1Address 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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- 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
Re: [SR-Users] perlvdb error
On 4/20/11 5:07 PM, Roman Yeryomin wrote: On 20 April 2011 15:24, Daniel-Constantin Mierlamico...@gmail.com wrote: On 4/20/11 1:54 PM, Roman Yeryomin wrote: On 19 April 2011 13:12, Roman Yeryominleroi.li...@gmail.comwrote: 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 -'. 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=0x1Address 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
Re: [SR-Users] perlvdb error
On 21 April 2011 12:16, Daniel-Constantin Mierla mico...@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=0x1Address 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} 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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] perlvdb error
On 4/20/11 1:54 PM, Roman Yeryomin wrote: On 19 April 2011 13:12, Roman Yeryominleroi.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 -'. 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. Cheers, Daniel -- 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
Re: [SR-Users] perlvdb error
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 Yeryominleroi.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 -'. 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 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 ___ 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
Re: [SR-Users] perlvdb error
On Monday 18 April 2011, Roman Yeryomin wrote: coredump? easy :) you can pick core file itself here (it's pretty heavy to send to the list): http://83.99.159.113/core.kamailio.20110418-1331 What do you mean by backtrace? log output or strace output? Hi Roman, he refers to a gdb backtrace, gdb bt. More informations e.g. here: http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:corefiles Cheers, Henning ___ 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