- 論壇徽章:
- 0
|
本帖最后由 himrpei 于 2012-05-04 16:52 編輯
目標(biāo)機(jī):
目標(biāo)機(jī)等待連接.png (15.37 KB, 下載次數(shù): 42)
下載附件
目標(biāo)機(jī)等待連接
2012-05-04 16:43 上傳
開發(fā)機(jī):
- [root@bogon linux-2.6.38.2]# gdb vmlinux
- GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
- Copyright (C) 2010 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-redhat-linux-gnu".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>...
- Reading symbols from /root/work/linux-2.6.38.2/vmlinux...done.
- (gdb) set remotebaud 115200
- (gdb) target remote /dev/ttyS1
- Remote debugging using /dev/ttyS1
- kgdb_breakpoint (new_dbg_io_ops=0xc0a182c0) at kernel/debug/debug_core.c:960
- 960 wmb(); /* Sync point after breakpoint */
- (gdb) continue
- Continuing.
- [New Thread 22]
- Program received signal SIGSEGV, Segmentation fault.
- [Switching to Thread 22]
- 0xc0805799 in __ticket_spin_lock (lock=<value optimized out>)
- at /root/work/linux-2.6.38.2/arch/x86/include/asm/spinlock.h:65
- 65 asm volatile (
- (gdb)
- Continuing.
- KGDB only knows signal 9 (pass) and 15 (pass and disconnect)
- Executing a continue without signal passing
- Program received signal SIGSEGV, Segmentation fault.
- 0x0000000b in ?? ()
- (gdb)
復(fù)制代碼 目標(biāo)機(jī)響應(yīng):
目標(biāo)機(jī)響應(yīng).png (12.91 KB, 下載次數(shù): 44)
下載附件
2012-05-04 16:48 上傳
我知道這是因?yàn)閮?nèi)核有bug,但是如果重新配置目標(biāo)機(jī)的grub,去掉"kgdbwait",不讓目標(biāo)機(jī)等待開發(fā)機(jī)連接。 目標(biāo)機(jī)的內(nèi)核就可以正常啟動,并不會遇到類似"kernel panic"的問題,沒有什么段錯(cuò)誤。 這種情況作何解釋? |
|