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.