Hi,

Finally I am able to get the vmcore on kernel-26.20 using kexec tools.
But, While anlysing it through gdb, not getting the proper info.

[EMAIL PROTECTED] gdb /usr/u/seetharam/bin/vmlinux-dir/vmlinux-Primary-kernel 
vmcore/vmcore.3

GNU gdb Red Hat Linux (6.3.0.0-1.21.agamirh)
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 "x86_64-redhat-linux-gnu"...Using host libthread_db 
library "/lib64/tls/libthread_db.so.1".

#0  0xffffffff8025399c in crash_kexec (regs=0x0) at include/asm/kexec.h:85
85                      newregs->rip = (unsigned long)current_text_addr();

(gdb) bt
#0  0xffffffff8025399c in crash_kexec (regs=0x0) at include/asm/kexec.h:85
#1  0xffffffff8022fc72 in panic (
    fmt=0xffffffff8808f350 <Address 0xffffffff8808f350 out of bounds>)
    at kernel/panic.c:88
#2  0xffffffff8808f023 in ?? ()
#3  0xffff8100ec323ea8 in ?? ()
#4  0xffffffff8808f051 in ?? ()
#5  0xffff8100ec323eb8 in ?? ()
#6  0xffffffff8808f081 in ?? ()
#7  0xffff8100ec323ec8 in ?? ()
#8  0xffffffff8808f0b1 in ?? ()
#9  0xffff8100ec323ed8 in ?? ()
#10 0xffffffff8808f0e1 in ?? ()
#11 0xffff8100ec323ee8 in ?? ()
#12 0xffffffff8808f111 in ?? ()
#13 0xffff8100ec323ef8 in ?? ()
#14 0xffffffff8808f141 in ?? ()
#15 0xffff8100ec323f08 in ?? ()
#16 0xffffffff8808f171 in ?? ()
#17 0xffff8100ec323f18 in ?? ()
#18 0xffffffff8808f1a1 in ?? ()
#19 0xffff8100ec323f28 in ?? ()
#20 0xffffffff8808f1d1 in ?? ()
---Type <return> to continue, or q <return> to quit---
#21 0xffff8100ec323f38 in ?? ()
#22 0xffffffff8808f201 in ?? ()
#23 0xffff8100ec323f48 in ?? ()
#24 0xffffffff8809201e in ?? ()
#25 0xffff8100ec323f78 in ?? ()
#26 0xffffffff80250b02 in sys_init_module (umod=0x535030, len=106308,
    uargs=0xffffffff8808fa00 <Address 0xffffffff8808fa00 out of bounds>)
    at kernel/module.c:1991
Previous frame inner to this frame (corrupt stack?)
(gdb)

info threads also not giving prroper result.


I am able to get useful data using the crash tool.


crash> bt
PID: 4340   TASK: ffff81000564d790  CPU: 0   COMMAND: "insmod"
 #0 [ffff8100ec323cd0] crash_kexec at ffffffff802539b4
 #1 [ffff8100ec323d50] do_unblank_screen at ffffffff803b1e70
 #2 [ffff8100ec323d58] crash_kexec at ffffffff8025399c
 #3 [ffff8100ec323d80] bust_spinlocks at ffffffff8021d357
 #4 [ffff8100ec323d90] cleanup_module at ffffffff8808f350
 #5 [ffff8100ec323da0] panic at ffffffff8022fc72
 #6 [ffff8100ec323e90] function11 at ffffffff8808f023
 #7 [ffff8100ec323ea0] function10 at ffffffff8808f051
 #8 [ffff8100ec323eb0] function9 at ffffffff8808f081
 #9 [ffff8100ec323ec0] function8 at ffffffff8808f0b1
#10 [ffff8100ec323ed0] function7 at ffffffff8808f0e1
#11 [ffff8100ec323ee0] function6 at ffffffff8808f111
#12 [ffff8100ec323ef0] function5 at ffffffff8808f141
#13 [ffff8100ec323f00] function4 at ffffffff8808f171
#14 [ffff8100ec323f10] function3 at ffffffff8808f1a1
#15 [ffff8100ec323f20] function2 at ffffffff8808f1d1
#16 [ffff8100ec323f30] function1 at ffffffff8808f201
#17 [ffff8100ec323f50] sys_init_module at ffffffff80250b02
#18 [ffff8100ec323f80] system_call at ffffffff80209dee
    RIP: 00002acb5608544c  RSP: 00007fff54c0b5e8  RFLAGS: 00010206
    RAX: 00000000000000af  RBX: ffffffff80209dee  RCX: 00002acb560790a2
    RDX: 0000000000535010  RSI: 0000000000019f44  RDI: 0000000000535030
    RBP: 0000000000000002   R8: 0000000000020010   R9: 0000000000010fd0
    R10: 00002acb560790a2  R11: 0000000000000206  R12: 00007fff54c10c42
    R13: 0000000000535010  R14: 00007fff54c0e1d0  R15: 0000000000000002
    ORIG_RAX: 00000000000000af  CS: 0033  SS: 002b
crash>



Can you please give me some hints regarding gdb?

I am thinking the current gdb with kernel-2.6.20 is not good.

or 

I have missed something to produce correct result?



Thanks and Regards
Dharmosoth Seetharam


_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to