kgdb problem

Dmitry Pryanishnikov dmitry at atlantis.dp.ua
Wed Jul 27 09:35:59 GMT 2005


Hello!

   I'm trying to use kgdb in 6.0-BETA1 (on i386). It seems that either I'm 
doing something wrong, or kgdb is broken. I've got valid crashdump (at least
info.0 file says so, and 'file vmcore.0' says that it's an ELF file), but
'core-file' command fails:

root at homelynx# kgdb
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: 
Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd".
(no debugging symbols found)...#0  0x00000000 in ?? ()
(kgdb) exec-file /boot/kernel/kernel.debug
(kgdb) symbol-file /boot/kernel/kernel.debug
Reading symbols from /boot/kernel/kernel.debug...done.
(kgdb) core vmcore.0
warning: "/usr/var/crash/vmcore.0": no core file handler recognizes format,
  using default
warning: you won't be able to access this core file until you terminate
  your kernel core files.; do ``info files''
(kgdb) info files
Symbols from "/boot/kernel/kernel.debug".
kernel core files.:
Segmentation fault: 11
root at homelynx#

How can I analyze vmcore file?

Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE


More information about the freebsd-current mailing list