Kernel panic after (gdb) attach to threaded process...

Krok krok at void.ru
Wed Jan 26 04:08:39 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

I've noticed process with state (ps) TL and was unable to kill it even
with kill -9. When I've tried to gdb this process (or simple truss -p
<pid>) I've got kernel panic.

Here is kernel dump :

# uname -a
FreeBSD alloy.ru 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #10: Mon Jan 24
12:08:52 MSK 2005     root at alloy.ru:/usr/obj/usr/src/sys/HITECH  i386
# cat /var/crash/info.0
Good dump found on device /dev/da0s1b
~  Architecture: i386
~  Architecture version: 1
~  Dump length: 1073676288B (1023 MB)
~  Blocksize: 512
~  Dumptime: Wed Jan 26 14:18:42 2005
~  Hostname: alloy.ru
~  Versionstring: FreeBSD 5.3-RELEASE-p5 #10: Mon Jan 24 12:08:52 MSK 2005
~    root at alloy.ru:/usr/obj/usr/src/sys/HITECH
~  Panicstring: page fault
~  Bounds: 0
# kgdb /usr/obj/usr/src/sys/HITECH/kernel.debug /var/crash/vmcore.0
[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".
doadump () at pcpu.h:159
(kgdb) back
#0  doadump () at pcpu.h:159
#1  0xc04cfbbb in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:397
#2  0xc04cfee1 in panic (fmt=0xc060aac0 "%s") at
/usr/src/sys/kern/kern_shutdown.c:553
#3  0xc05e60e0 in trap_fatal (frame=0xec97ab80, eva=68) at
/usr/src/sys/i386/i386/trap.c:809
#4  0xc05e589d in trap (frame=
~      {tf_fs = -325648360, tf_es = -1068761072, tf_ds = 16, tf_edi =
- -1022643772, tf_esi = -1023478608, tf_ebp = -325604332, tf_isp =
- -325604436, tf_ebx = -1007141360, tf_edx = -1023478608, tf_ecx = 4,
tf_eax = 0, tf_trapno = 12, tf_err = 2, tf_eip = -1068543065, tf_cs = 8,
tf_eflags = 65683, tf_esp = 52402, tf_ss = -1068387925}) at
/usr/src/sys/i386/i386/trap.c:247
#5  0xc05d46fa in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#6  0xec970018 in ?? ()
#7  0xc04c0010 in thread_export_context (td=0xc2fef4b0, willexit=10) at
/usr/src/sys/kern/kern_kse.c:852
#8  0xc04f48da in ptrace (td=0xc2fef4b0, uap=0xec97ad14) at
/usr/src/sys/kern/sys_process.c:339
#9  0xc05e63c7 in syscall (frame=
~      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 136630285, tf_esi =
52402, tf_ebp = -1077943064, tf_isp = -325603980, tf_ebx = 52402,tf_edx
= 674995596, tf_ecx = 674911724, tf_eax = 26, tf_trapno = 22, tf_err =
2, tf_eip = 674263299, tf_cs = 31, tf_eflags = 514, tf_esp =
- -1077943092, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1001
#10 0xc05d474f in Xint0x80_syscall () at
/usr/src/sys/i386/i386/exception.s:201
#11 0x0000002f in ?? ()
#12 0x0000002f in ?? ()
#13 0x0000002f in ?? ()
#14 0x0824d00d in ?? ()
#15 0x0000ccb2 in ?? ()
#16 0xbfbfe4e8 in ?? ()
#17 0xec97ad74 in ?? ()
#18 0x0000ccb2 in ?? ()
#19 0x283b9d8c in ?? ()
#20 0x283a55ec in ?? ()
#21 0x0000001a in ?? ()
#22 0x00000016 in ?? ()
#23 0x00000002 in ?? ()
#24 0x28307103 in ?? ()
#25 0x0000001f in ?? ()
#26 0x00000202 in ?? ()
#27 0xbfbfe4cc in ?? ()
#28 0x0000002f in ?? ()
#29 0x0000096e in ?? ()
#30 0x0000057f in ?? ()
#31 0x00000689 in ?? ()
#32 0x000002be in ?? ()
#33 0x08bb8000 in ?? ()
#34 0xc30bb8d4 in ?? ()
#35 0xc2fef4b0 in ?? ()
#36 0xec97a96c in ?? ()
#37 0xec97a954 in ?? ()
#38 0xc3b627d0 in ?? ()
#39 0xc04e00db in sched_switch (td=0xccb2, newtd=0xccb2, flags=Cannot
access memory at address 0xbfbfe4f8
) at /usr/src/sys/kern/sched_4bsd.c:865
Previous frame inner to this frame (corrupt stack?)
(kgdb) up 4
No stack.
(kgdb)

Can anybody help with this ?

- --
With best regards,
Krok


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFB94g6sXuomovtlAARAn9IAJ4oOPSCfKml+k8TNt08L5kWRtXBvgCfRKp+
X+I2n6scP0W2jM0e3Po6BWQ=
=8XEr
-----END PGP SIGNATURE-----


More information about the freebsd-bugs mailing list