(gdb) core core
[New Thread 18567]
Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio/kamailio.pid -m 64 -u root -g roo'.
Program terminated with signal 6, Aborted.
#0 0x0040a422 in __kernel_vsyscall ()
.
.
.
(gdb) bt full
#0 0x0040a422 in __kernel_vsyscall ()
No symbol table info available.
#1 0x0056a651 in ?? ()
No symbol table info available.
#2 0x00695ff4 in ?? ()
No symbol table info available.
#3 0x0056da82 in ?? ()
No symbol table info available.
#4 0x00000006 in ?? ()
No symbol table info available.
#5 0xbff91960 in ?? ()
No symbol table info available.
#6 0x0816d529 in ?? ()
No symbol table info available.
#7 0xb37a7000 in ?? ()
No symbol table info available.
#8 0x0816de85 in ?? ()
No symbol table info available.
#9 0x00000000 in ?? ()
No symbol table info available.
.
.
.
(gdb) info reg
eax 0x0 0
ecx 0x4887 18567
edx 0x6 6
ebx 0x4887 18567
esp 0xbff918b4 0xbff918b4
ebp 0xbff918c0 0xbff918c0
esi 0x203a7364 540701540
edi 0x695ff4 6905844
eip 0x40a422 0x40a422 <__kernel_vsyscall+2>
eflags 0x206 [ PF IF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
I hope this helps.
Thanks again
Phillip
On Wed, Sep 14, 2011 at 5:34 PM, marius zbihlei
<marius.zbihlei@1and1.ro> wrote:
On 09/14/2011 05:01 PM, Phillman25 Kyriacou wrote:
Dear Marius
Thank you for your prompt reply.
I apologise, As i am a newbie could you please explain how to produce the below output that you require?
if you can reproduce the crash, in a shell write
ulimit -c unlimited #to allow unlimited size of coredump
kamailio -f ../path/to/cfg #any other options you give to kamailio
<here the crash happens - make it happen>
In the directory that you lunch the commands you will find several core.kamailio.<pid> (or simply just core) file, that are called coredumps (they should be fairly large so don't worry)
After that :
gdb /path/to/kamailio core.kamailo.<pid> #or how the core was called
>bt full
>info reg
(these commands are in gdb prompt)
Paste the output of the gdb commands and lets see what happens. It would really help if kamailio already has debug symbols when compilling (should be enabled by default).
Cheers
Marius
Thanking you in advance for your help!
Regards
Phillip