Re: Fatal trap on RELENG_5_1 SMP

From: Bruno Van Den Bossche <bruno.van.den.bossche_at_pandora.be>
Date: Wed, 4 Jun 2003 20:46:28 +0200
On Sun, 1 Jun 2003 21:14:01 +0200 (CEST)
Magnus J <magnus_os_at_yahoo.se> wrote:

> Hello
> 
> 
> I've rebuilt the kernel with these debug-options, and now I'm
> having difficulty reproducing the problem. That was not an issue
> before. Everytime I did 'shutdown', it crashed.

(Un)fortunately(?) it still crashes on my box.  Dual p3 on an abit
motherboard.

I recompiled my kernel with the following options uncommented.  (Hope
that's enough)
makeoptions     DEBUG=-g
options         DDB

I managed to get a dump and this is what it says.  (pasted below)
If there's more feedback needed, I'll try to provide it.  Just point me
in the right direction on how to get the info you need :-)

Thx.


----Start of gdb output----

bomberboy_at_Noisy:/usr/obj/usr/src/sys/NOISY # gdb -k
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd".
(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /home/kernel
(kgdb) core-file /home/vmcore.0
panic: from debugger
panic messages:
---
Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 1; lapic.id = 01000000
instruction pointer     = 0x8:0xd68d1d0e
stack pointer           = 0x10:0xd68d1cec
frame pointer           = 0x10:0x8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 11 (idle: cpu1)

Fatal trap 12: page fault while in kernel mode
cpuid = 1; lapic.id = 01000000
fault virtual address   = 0xc
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc033ff00
stack pointer           = 0x10:0xd68d19f4
frame pointer           = 0x10:0xd68d19f8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 11 (idle: cpu1)
panic: from debugger
cpuid = 1; lapic.id = 01000000


Fatal trap 3: breakpoint instruction fault while in kernel mode
cpuid = 1; lapic.id = 01000000
instruction pointer     = 0x8:0xc03400a5
stack pointer           = 0x10:0xd68d1a98
frame pointer           = 0x10:0xd68d1aa4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = IOPL = 0
current process         = 11 (idle: cpu1)
panic: from debugger
cpuid = 1; lapic.id = 01000000
boot() called on cpu#1
Uptime: 1m5s
Dumping 511 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304
320 336 352 368 384 400 416 432 448 464 480 496
---
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/snd_emu10k1.ko...done.
Loaded symbols for /boot/kernel/snd_emu10k1.ko
Reading symbols from
/usr/obj/usr/src/sys/NOISY/modules/usr/src/sys/modules/acpi/acpi.ko.deb
ug...done.
Loaded symbols for
/usr/obj/usr/src/sys/NOISY/modules/usr/src/sys/modules/acpi/acpi.ko.deb
ug
Reading symbols from
/usr/obj/usr/src/sys/NOISY/modules/usr/src/sys/modules/linprocfs/linpro
cfs.ko.debug...done.
Loaded symbols for
/usr/obj/usr/src/sys/NOISY/modules/usr/src/sys/modules/linprocfs/linpro
cfs.ko.debug
Reading symbols from
/usr/obj/usr/src/sys/NOISY/modules/usr/src/sys/modules/linux/linux.ko.d
ebug...done.
Loaded symbols for
/usr/obj/usr/src/sys/NOISY/modules/usr/src/sys/modules/linux/linux.ko.d
ebug
Reading symbols from /boot/kernel/daemon_saver.ko...done.
Loaded symbols for /boot/kernel/daemon_saver.ko
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
238             dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
#1  0xc020b8d8 in boot (howto=260) at
#/usr/src/sys/kern/kern_shutdown.c:370 2  0xc020bc3f in panic () at
#/usr/src/sys/kern/kern_shutdown.c:543 3  0xc014a2b2 in db_panic () at
#/usr/src/sys/ddb/db_command.c:448 4  0xc014a232 in db_command
#(last_cmdp=0xc03bb5c0, cmd_table=0x0, aux_cmd_tablep=0xc03b4a38,
#aux_cmd_tablep_end=0xc03b4a3c) at /usr/src/sys/ddb/db_command.c:346 5 
#0xc014a346 in db_command_loop () at /usr/src/sys/ddb/db_command.c:470 6
# 0xc014d0ca in db_trap (type=1, code=0) at
# /usr/src/sys/ddb/db_trap.c:72
#7  0xc033fda4 in kdb_trap (type=1, code=0, regs=0xd68d1cac) at
#/usr/src/sys/i386/i386/db_interface.c:170 8  0xc03594e2 in trap_fatal
#(frame=0xd68d1cac, eva=0) at /usr/src/sys/i386/i386/trap.c:829 9 
#0xc0358fa2 in trap (frame=
      {tf_fs = -4194280, tf_es = 16, tf_ds = -1051590640, tf_edi = 0,
tf_esi = -1051588528, tf_ebp = 8, tf_isp = -695395112, tf_ebx =
-1051591872, tf_edx = -1069558912, tf_ecx = 0, tf_eax = 29, tf_trapno =
1, tf_err = 0, tf_eip = -695395058, tf_cs = 8, tf_eflags = 66054, tf_esp
= -1071673944, tf_ss = -1069569728}) at
/usr/src/sys/i386/i386/trap.c:631
#10 0xc0341758 in calltrap () at {standard input}:97
---Can't read userspace from dump, or kernel process---

(kgdb) quit


-- 
Bruno

Save energy: be apathetic.
Received on Wed Jun 04 2003 - 09:46:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:10 UTC