Hello,
When i try with module siptrace.so
This is 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 "uri_db.so" loadmodule "siputils.so" loadmodule "xlog.so" loadmodule "sanity.so" loadmodule "ctl.so" loadmodule "mi_rpc.so" loadmodule "acc.so" loadmodule "dialog.so"
#!ifdef WITH_CALLCONTROL loadmodule "call_control.so" #!endif
#!ifdef WITH_MEDIAPROXY loadmodule "mediaproxy.so" #!endif #!ifdef WITH_SIPTRACE loadmodule "siptrace.so" #!endif ....
and with
# ----- sip trace ------- #!ifdef WITH_SIPTRACE modparam("siptrace", "traced_user_avp", "$avp(s:traced_user)") modparam("siptrace", "db_url", "mysql://openser:openserrw@localhost/openser") modparam("siptrace", "trace_on", 1) modparam("siptrace", "trace_flag", 2)
#!endif
and this is error log
8(7163) DEBUG: tm [t_lookup.c:764]: DEBUG: t_lookupOriginalT: searching on hash entry 60285 8(7163) DEBUG: tm [t_lookup.c:485]: DEBUG: RFC3261 transaction matching failed 8(7163) DEBUG: tm [t_lookup.c:854]: DEBUG: t_lookupOriginalT: no CANCEL matching found! 8(7163) DEBUG: tm [t_lookup.c:856]: DEBUG: t_lookupOriginalT completed 8(7163) DEBUG: tm [tm.c:952]: lookup_original: t_lookupOriginalT returned: (nil) 8(7163) DEBUG: <core> [usr_avp.c:629]: DEBUG:destroy_avp_list: destroying list (nil) 8(7163) DEBUG: <core> [usr_avp.c:629]: DEBUG:destroy_avp_list: destroying list (nil) 8(7163) DEBUG: <core> [usr_avp.c:629]: DEBUG:destroy_avp_list: destroying list (nil) 8(7163) DEBUG: <core> [usr_avp.c:629]: DEBUG:destroy_avp_list: destroying list (nil) 8(7163) DEBUG: <core> [usr_avp.c:629]: DEBUG:destroy_avp_list: destroying list (nil) 8(7163) DEBUG: <core> [usr_avp.c:629]: DEBUG:destroy_avp_list: destroying list (nil) 8(7163) DEBUG: <core> [receive.c:280]: receive_msg: cleaning up *17(7186) : <core> [pass_fd.c:283]: ERROR: receive_fd: EOF on 14* 17(7186) DEBUG: <core> [tcp_main.c:3038]: DBG: handle_ser_child: dead child 5, pid 7160 (shutting down?) 17(7186) DEBUG: <core> [io_wait.h:588]: DBG: io_watch_del (0x81ede80, 14, -1, 0x0) fd_no=22 called 0(7151) ALERT: <core> [main.c:722]: child process 7160 exited by a signal 11 0(7151) ALERT: <core> [main.c:725]: core was generated 0(7151) INFO: <core> [main.c:737]: INFO: terminating due to SIGCHLD 6(7161) INFO: <core> [main.c:788]: INFO: signal 15 received 7(7162) INFO: <core> [main.c:788]: INFO: signal 15 received 16(7185) INFO: <core> [main.c:788]: INFO: signal 15 received 15(7183) INFO: <core> [main.c:788]: INFO: signal 15 received 8(7163) INFO: <core> [main.c:788]: INFO: signal 15 received 14(7179) INFO: <core> [main.c:788]: INFO: signal 15 received 9(7164) INFO: <core> [main.c:788]: INFO: signal 15 received 10(7165) INFO: <core> [main.c:788]: INFO: signal 15 received 13(7176) INFO: <core> [main.c:788]: INFO: signal 15 received 1(7155) INFO: <core> [main.c:788]: INFO: signal 15 received 17(7186) INFO: <core> [main.c:788]: INFO: signal 15 received 2(7156) INFO: <core> [main.c:788]: INFO: signal 15 received 3(7158) INFO: <core> [main.c:788]: INFO: signal 15 received 4(7159) INFO: <core> [main.c:788]: INFO: signal 15 received 11(7171) INFO: <core> [main.c:788]: INFO: signal 15 received 12(7174) INFO: <core> [main.c:788]: INFO: signal 15 received 0(7151) DEBUG: tm [t_funcs.c:122]: DEBUG: tm_shutdown : start 0(7151) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : emptying hash table 0(7151) DEBUG: tm [t_funcs.c:127]: DEBUG: tm_shutdown : removing semaphores 0(7151) DEBUG: tm [t_funcs.c:129]: DEBUG: tm_shutdown : destroying tmcb lists 0(7151) DEBUG: tm [t_funcs.c:132]: DEBUG: tm_shutdown : done 0(7151) DEBUG: <core> [mem/shm_mem.c:236]: shm_mem_destroy 0(7151) DEBUG: <core> [mem/shm_mem.c:239]: destroying the shared memory lock 0(7151) DEBUG: <core> [main.c:741]: terminating due to SIGCHLD
How can fix it. Thank you.
hello, it crashed when i try call to kamailio.
Hello,
On 1/17/10 12:30 PM, Quang Tri wrote:
hello, it crashed when i try call to kamailio.
it seems you got a core dump, locate the core file, either in working directory or root folder /
Then get the backtrace and send it here:
gdb /path/to/kamailio /path/to/core
bt
Cheers, Daniel
I did some tests and sip trace worked ok, maybe the issue is with other module you have loaded, the backtrace would be very helpful. Also, if you still have the full debug messages, sent them to include the latest lines printed by pid 7160.
Thanks, Daniel
On 1/17/10 1:46 PM, Daniel-Constantin Mierla wrote:
Hello,
On 1/17/10 12:30 PM, Quang Tri wrote:
hello, it crashed when i try call to kamailio.
it seems you got a core dump, locate the core file, either in working directory or root folder /
Then get the backtrace and send it here:
gdb /path/to/kamailio /path/to/core
bt
Cheers, Daniel
On 1/18/2010 12:31 AM, Daniel-Constantin Mierla wrote:
I did some tests and sip trace worked ok, maybe the issue is with other module you have loaded, the backtrace would be very helpful. Also, if you still have the full debug messages, sent them to include the latest lines printed by pid 7160.
Thanks, Daniel
On 1/17/10 1:46 PM, Daniel-Constantin Mierla wrote:
Hello,
On 1/17/10 12:30 PM, Quang Tri wrote:
hello, it crashed when i try call to kamailio.
it seems you got a core dump, locate the core file, either in working directory or root folder /
Then get the backtrace and send it here:
gdb /path/to/kamailio /path/to/core
bt
Cheers, Daniel
Hello, i dont' know, where core . i dont use gdb before. This is my file
ls /
rwxr-xr-x 28 root root 4096 Jan 18 00:46 . drwxr-xr-x 28 root root 4096 Jan 18 00:46 .. -rw-r--r-- 1 root root 0 Dec 29 22:47 .autofsck drwxr-xr-x 3 root root 4096 Dec 9 09:42 bin drwxr-xr-x 4 root root 1024 Apr 13 2009 boot -rw------- 1 root root 41455616 Jan 12 11:47 core.17380 -rw------- 1 root root 39710720 Jan 12 11:48 core.17538 -rw------- 1 root root 39612416 Jan 12 13:53 core.29158 -rw------- 1 root root 39964672 Jan 12 13:54 core.29298 -rw------- 1 root root 39911424 Jan 12 13:58 core.29660 -rw------- 1 root root 39690240 Jan 12 14:01 core.30001 -rw------- 1 root root 39714816 Jan 17 17:18 core.3835 -rw------- 1 root root 39714816 Jan 17 17:18 core.3847 -rw------- 1 root root 40927232 Jan 12 11:22 core.5337 -rw------- 1 root root 39612416 Jan 12 11:22 core.6242 -rw------- 1 root root 39796736 Jan 12 11:23 core.6310 -rw------- 1 root root 40038400 Jan 12 11:24 core.6484 -rw------- 1 root root 40472576 Jan 12 11:25 core.6614 -rw------- 1 root root 41410560 Jan 12 11:26 core.6745 -rw------- 1 root root 41414656 Jan 17 17:32 core.6770 -rw------- 1 root root 41119744 Jan 12 11:27 core.6892 -rw------- 1 root root 39698432 Jan 17 17:33 core.6931 -rw------- 1 root root 40574976 Jan 12 11:28 core.6950 -rw------- 1 root root 40402944 Jan 17 17:34 core.7041 -rw------- 1 root root 39911427 Jan 18 00:46 core.7160 drwxr-xr-x 9 root root 5760 Jan 14 16:21 dev drwxr-xr-x 94 root root 12288 Jan 17 04:02 etc drwxr-xr-x 8 root root 4096 Jan 8 11:06 home drwxr-xr-x 2 root root 4096 Feb 22 2005 initrd drwxr-xr-x 3 root root 4096 May 29 2009 install drwxr-xr-x 13 root root 4096 Jan 9 04:02 lib drwx------ 2 root root 16384 Apr 13 2009 lost+found drwxr-xr-x 3 root root 4096 Apr 13 2009 media drwxr-xr-x 2 root root 4096 May 3 2007 misc drwxr-xr-x 2 root root 4096 Feb 22 2005 mnt drwxr-xr-x 6 root root 4096 Dec 29 15:42 opt drwxr-xr-x 3 root root 4096 Nov 25 17:13 oradiag_root drwxr-xr-t 25 root root 4096 May 31 2009 package dr-xr-xr-x 188 root root 0 Dec 30 05:46 proc drwxr-x--- 21 root root 4096 Jan 15 11:54 root drwxr-xr-x 2 root root 12288 Oct 14 04:02 sbin drwxr-xr-x 2 root root 4096 Apr 13 2009 selinux drwxr-xr-x 2 root root 4096 May 29 2009 service drwxr-xr-x 11 root root 4096 Jan 8 10:51 soft drwxr-xr-x 2 root root 4096 Feb 22 2005 srv drwxr-xr-x 9 root root 0 Dec 30 05:46 sys drwxrwxrwt 5 root root 16384 Jan 17 20:43 tmp drwxr-xr-x 15 root root 4096 Apr 13 2009 usr drwxr-xr-x 24 root root 4096 Oct 28 12:59 var
When i run [root@Server /]# gdb /usr/local/sbin/kamailio /core.7160
i get message "GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
"/core.7160" is not a core dump: File format not recognized"
how i can debug kamailio ?Sorry, i am newbie :|. Thank you.
On 1/18/2010 12:31 AM, Daniel-Constantin Mierla wrote:
I did some tests and sip trace worked ok, maybe the issue is with other module you have loaded, the backtrace would be very helpful. Also, if you still have the full debug messages, sent them to include the latest lines printed by pid 7160.
Thanks, Daniel
On 1/17/10 1:46 PM, Daniel-Constantin Mierla wrote:
Hello,
On 1/17/10 12:30 PM, Quang Tri wrote:
hello, it crashed when i try call to kamailio.
it seems you got a core dump, locate the core file, either in working directory or root folder /
Then get the backtrace and send it here:
gdb /path/to/kamailio /path/to/core
bt
Cheers, Daniel
Hello i try with ,
[root@Server /]# gdb /usr/local/sbin/kamailio /core.7457
GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `kamailio'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/local/lib/kamailio/modules/db_mysql.so...done. Loaded symbols for /usr/local/lib/kamailio/modules/db_mysql.so Reading symbols from /usr/lib/libmysqlclient.so.15...done. Loaded symbols for /usr/lib/libmysqlclient.so.15 Reading symbols from /usr/local/lib/kamailio/libsrdb2.so.1...done. Loaded symbols for /usr/local/lib/kamailio/libsrdb2.so.1 Reading symbols from /usr/local/lib/kamailio/libsrdb1.so.1...done. Loaded symbols for /usr/local/lib/kamailio/libsrdb1.so.1 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/local/lib/kamailio/modules_k/mi_fifo.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/mi_fifo.so Reading symbols from /usr/local/lib/kamailio/libkmi.so.1...done. Loaded symbols for /usr/local/lib/kamailio/libkmi.so.1 Reading symbols from /usr/local/lib/kamailio/modules_k/kex.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/kex.so Reading symbols from /usr/local/lib/kamailio/libkcore.so.1...done. Loaded symbols for /usr/local/lib/kamailio/libkcore.so.1 Reading symbols from /usr/local/lib/kamailio/modules/tm.so...done. Loaded symbols for /usr/local/lib/kamailio/modules/tm.so Reading symbols from /usr/local/lib/kamailio/modules_k/tmx.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/tmx.so Reading symbols from /usr/local/lib/kamailio/modules_k/sl.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/sl.so Reading symbols from /usr/local/lib/kamailio/modules_k/rr.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/rr.so Reading symbols from /usr/local/lib/kamailio/modules_k/pv.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/pv.so Reading symbols from /usr/local/lib/kamailio/modules_k/maxfwd.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/maxfwd.so Reading symbols from /usr/local/lib/kamailio/modules_k/usrloc.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/usrloc.so Reading symbols from /usr/local/lib/kamailio/modules_k/registrar.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/registrar.so Reading symbols from /usr/local/lib/kamailio/modules_k/textops.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/textops.so Reading symbols from /usr/local/lib/kamailio/modules_k/uri_db.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/uri_db.so Reading symbols from /usr/local/lib/kamailio/modules_k/siputils.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/siputils.so Reading symbols from /usr/local/lib/kamailio/modules_k/xlog.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/xlog.so Reading symbols from /usr/local/lib/kamailio/modules/sanity.so...done. Loaded symbols for /usr/local/lib/kamailio/modules/sanity.so Reading symbols from /usr/local/lib/kamailio/modules/ctl.so...done. Loaded symbols for /usr/local/lib/kamailio/modules/ctl.so Reading symbols from /usr/local/lib/kamailio/modules/mi_rpc.so...done. Loaded symbols for /usr/local/lib/kamailio/modules/mi_rpc.so Reading symbols from /usr/local/lib/kamailio/modules_k/acc.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/acc.so Reading symbols from /usr/local/lib/libradiusclient-ng.so.2...done. Loaded symbols for /usr/local/lib/libradiusclient-ng.so.2 Reading symbols from /usr/local/lib/kamailio/modules_k/dialog.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/dialog.so Reading symbols from /usr/local/lib/kamailio/modules_k/call_control.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/call_control.so Reading symbols from /usr/local/lib/kamailio/modules_k/siptrace.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/siptrace.so Reading symbols from /usr/local/lib/kamailio/modules_k/auth.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/auth.so Reading symbols from /usr/local/lib/kamailio/modules_k/auth_db.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/auth_db.so Reading symbols from /usr/local/lib/kamailio/modules_k/domain.so...done. Loaded symbols for /usr/local/lib/kamailio/modules_k/domain.so Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 #0 ip_addr2sbuf (ip=0x118, buff=0x7d7a40 "xx.xx.xx.195", len=39) at ../../parser/../ip_addr.h:645 645 switch(ip->af){ (gdb) bt #0 ip_addr2sbuf (ip=0x118, buff=0x7d7a40 "xx.xx.xxx.195", len=39) at ../../parser/../ip_addr.h:645 #1 0x007d3456 in trace_onreply_out (t=0xb60d1b20, type=1048576, ps=0xbffb97d0) at ../../parser/../ip_addr.h:676 #2 0x006d355a in run_trans_callbacks_internal (cb_lst=0xb60d1b60, type=1048576, trans=0xb60d1b20, params=0xbffb97d0) at t_hooks.c:261 #3 0x006d37f8 in run_onsend_callbacks2 (type=1048576, trans=0x7d7a40, p=0xbffb97d0) at t_hooks.c:318 #4 0x006f3e42 in _reply_light (trans=0xb60d1b20, buf=0x8270bc0 "SIP/2.0 100 trying -- your call is important to us\r\nVia: SIP/2.0/UDP 192.168.1.222:57230;branch=z9hG4bK-d8754z-270a5f51a261bc1f-1---d8754z-;rport=57230;received=xx.xx.xxx.195\r\nTo: "12537xxxxx"<sip:1"..., len=642, code=100, text=0xb60cd430 "trying -- your call is important to us", to_tag=0x0, to_tag_len=0, lock=1, bm=0xbffb9850) at t_reply.c:610 #5 0x006f418c in _reply (trans=0xb60d1b20, p_msg=Variable "p_msg" is not available. ) at t_reply.c:679 #6 0x006c7901 in t_relay_to (p_msg=0x825cd90, proxy=0x0, proto=0, replicate=0) at t_funcs.c:352 #7 0x006e3e22 in w_t_relay (p_msg=0x825cd90, _foo=0x0, _bar=0x0) at tm.c:1293 #8 0x08056d51 in do_action (h=0xbffba940, a=0x825d668, msg=0x825cd90) at action.c:860 #9 0x08055cec in run_actions (h=0xbffba940, a=0x825d668, msg=0x825cd90) at action.c:1293 #10 0x080d1b69 in rval_get_int (h=0x2c, msg=0x825cd90, i=0xbffb9f7c, rv=0x825d6ec, cache=0x0) at rvalue.c:897 #11 0x080d4f87 in rval_expr_eval_int (h=0xbffba940, msg=0x825cd90, res=0xbffb9f7c, rve=0x825d6e8) at rvalue.c:1837 #12 0x080d5052 in rval_expr_eval_int (h=0xbffba940, msg=0x825cd90, res=0xbffba0e4, rve=0x825da78) at rvalue.c:1844 #13 0x08056614 in do_action (h=0xbffba940, a=0x825e1a8, msg=0x825cd90) at action.c:834 #14 0x08055cec in run_actions (h=0xbffba940, a=0x825d560, msg=0x825cd90) at action.c:1293 #15 0x0805667b in do_action (h=0xbffba940, a=0x825e4c0, msg=0x825cd90) at action.c:853 #16 0x08055cec in run_actions (h=0xbffba940, a=0x825a3e8, msg=0x825cd90) at action.c:1293 #17 0x0805667b in do_action (h=0xbffba940, a=0x825e540, msg=0x825cd90) at action.c:853 #18 0x08055cec in run_actions (h=0xbffba940, a=0x8254780, msg=0x825cd90) at action.c:1293 #19 0x0805a5d4 in run_top_route (a=0x118, msg=0x118, c=0x0) at action.c:1341 #20 0x080baaad in receive_msg ( buf=0x82323c0 "INVITE sip:1253xxxxxxx@xxxxxxx.biz:5065 SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.1.222:57230;branch=z9hG4bK-d8754z-270a5f51a261bc1f-1---d8754z-;rport\r\nMax-Forwards: 69\r\nContact: <sip:1004@xxx.xxxxx.1"..., len=1187, rcv_info=0xbffbab60) at receive.c:196 #21 0x081344f1 in udp_rcv_loop () at udp_server.c:520 #22 0x08094c9b in main_loop () at main.c:1447 #23 0x08097696 in main (argc=1, argv=0xbffbade4) at main.c:2251
Hello,
On 1/18/10 4:29 AM, Nguyen Quang Tri wrote:
On 1/18/2010 12:31 AM, Daniel-Constantin Mierla wrote:
I did some tests and sip trace worked ok, maybe the issue is with other module you have loaded, the backtrace would be very helpful. Also, if you still have the full debug messages, sent them to include the latest lines printed by pid 7160.
Thanks, Daniel
On 1/17/10 1:46 PM, Daniel-Constantin Mierla wrote:
Hello,
On 1/17/10 12:30 PM, Quang Tri wrote:
hello, it crashed when i try call to kamailio.
it seems you got a core dump, locate the core file, either in working directory or root folder /
Then get the backtrace and send it here:
gdb /path/to/kamailio /path/to/core
bt
Cheers, Daniel
Hello i try with ,
backtrace helped and hopefully I got it -- for some reasons some parameters in tm callback were not set. Please take it from git and try to see if works fine now:
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.0.x-from-git#ge...
I guess I didn't catch it with my test as I am setting the parameter trace_local_ip.
Thanks, Daniel