- 论坛徽章:
- 0
|
关于kdump与crash调试信息求助,麻烦看看是不是这两个软件安装设置有问题?
利用vmlinux和vmcore以后:
[root@csc csc]# crash /usr/lib/debug/lib/modules/2.6.32-431.el6.i686/vmlinux /var/crash/127.0.0.1-2014-09-03-01:06:26/vmcore
crash 6.1.0-5.el6
Copyright (C) 2002-2012 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
This program 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. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for details.
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
KERNEL: /usr/lib/debug/lib/modules/2.6.32-431.el6.i686/vmlinux
DUMPFILE: /var/crash/127.0.0.1-2014-09-03-01:06:26/vmcore [PARTIAL DUMP]
CPUS: 8
DATE: Wed Sep 3 01:06:22 2014
UPTIME: 1 days, 00:34:06
LOAD AVERAGE: 0.05, 0.01, 0.00
TASKS: 350
NODENAME: csc
RELEASE: 2.6.32-431.el6.i686
VERSION: #1 SMP Fri Nov 22 00:26:36 UTC 2013
MACHINE: i686 (3392 Mhz)
MEMORY: 3.9 GB
PANIC: "Oops: 0000 [#1] SMP " (check log for details)
PID: 3219
COMMAND: "Xorg"
TASK: df021000 [THREAD_INFO: f1fa0000]
CPU: 0
STATE: TASK_RUNNING (PANIC)
然后我用crash>log命令以后发现如下(省略了前面部分):
......
hook_configAAAAAAAAAAAAAAAAAA----a = 2e
BUG: unable to handle kernel NULL pointer dereference at 00000001
IP: [<f81018e8>] FindInsrcPortHashTable+0x8/0x140 [hook_config1]
*pdpt = 0000000033be3001 *pde = 000000011dad8067
Oops: 0000 [#1] SMP
last sysfs file: /sys/devices/virtual/block/dm-2/dm/name
Modules linked in: hook_config1(U) hook_config_message1(U) vfat fat usb_storag
............
hook_configAAAAAAAAAAAAAAAAAA----a = 2b
60060002
hook_configAAAAAAAAAAAAAAAAAA----a = 2c
60060002
hook_configAAAAAAAAAAAAAAAAAA----a = 2d
60060002
hook_configAAAAAAAAAAAAAAAAAA----a = 2e
BUG: unable to handle kernel NULL pointer dereference at 00000001
IP: [<f81018e8>] FindInsrcPortHashTable+0x8/0x140 [hook_config1]
*pdpt = 0000000033be3001 *pde = 000000011dad8067
Oops: 0000 [#1] SMP
last sysfs file: /sys/devices/virtual/block/dm-2/dm/name
...............
[<c07b06ff>] ? napi_skb_finish+0x2f/0x40
[<c07b0bd5>] ? napi_gro_receive+0x25/0x40
[<f8c1d95f>] ? e1000_clean_rx_irq+0x31f/0x450 [e1000e]
[<f8c20058>] ? e1000e_poll+0x78/0x2b0 [e1000e]
[<c07b1e8e>] ? net_rx_action+0xde/0x280
[<c04625ca>] ? __do_softirq+0x8a/0x1a0
[<c04c1861>] ? move_native_irq+0x11/0x50
[<c04b9fbe>] ? audit_syscall_entry+0x1be/0x1e0
[<c046271d>] ? do_softirq+0x3d/0x50
[<c0462875>] ? irq_exit+0x65/0x70
[<c040c250>] ? do_IRQ+0x50/0xc0
[<c0409f10>] ? common_interrupt+0x30/0x38
Code: 0f 97 c1 89 ce 0f 92 c1 89 f2 38 ca 0f 84 9c fe ff ff 8b 40 0c 85 c0 75 c2 31 c0 e9 e7 fe ff ff 8d 76 00 55 57 56 89 d6 53 89 c3 <0f> b6 48 01 0f b6 00 ba 67 66 66 66 01 c1 89 c8 f7 ea c1 fa 02
EIP: [<f81018e8>] FindInsrcPortHashTable+0x8/0x140 [hook_config1] SS:ESP 0068:f1fa1b30
CR2: 0000000000000001
根据上面信息说BUG在0x000000001所以我就
crash> dis -l 00000001
dis: WARNING: 1: no associated kernel symbol found
0x1: Cannot access memory at address 0x1
但是没有发现
然后我在用了下面命令还是没有发现问题,请问可能是怎么回事呢?这个空指针引用到底会出现在哪里呢?(顺便说下我的是在透明桥上HOOK的,然后这个BUG只有在我把刚刚上网的机子端口连到透明桥一段才会出现)。
crash> l* FindInsrcPortHashTable+0x8
No symbol "FindInsrcPortHashTable" in current context.
gdb: gdb request failed: l* FindInsrcPortHashTable+0x8
|
|