Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2006 22:17:40 +0200
From:      Benjamin Lutz <mail@maxlor.com>
To:        freebsd-stable@freebsd.org
Subject:   Kernel panic on boot (how to debug?)
Message-ID:  <200609192217.44712.mail@maxlor.com>

next in thread | raw e-mail | index | archive | help
--nextPart1324833.slhOfsJRSJ
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello,

Since I added a new P-ATA disk to my computer, FreeBSD 6.1/amd64 panics whi=
le=20
booting:

[...]
acd0: DVDROM <PHEHDER DVD A/ 2> at ata0-master UDMA33
acd1: DVDR <PLEXTOR DVDR PX-708A/1.07> at ata0-slave UDMA33
ad2: 78533MB <HDS722580VLAT20 V32OA60A> at ata1-master UDMA100


=46atal trap 18: integer divide fault while in kernel mode
instruction pointer     =3D 0x8:0xffffffff801bd9a5
stack pointer           =3D 0x10:0xffffffff80845a90
frame pointer           =3D 0x10:0xffffffff80845ae0
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 0 (swapper)
trap number             =3D 18
panic: integer divide fault
Uptime: 1s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds - press a key on the console to abort

If I just disable the second IDE channel, the system boots fine. FreeBSD=20
5.5/i386, which is also installed on this computer, boots fine with or=20
without that disk.

I've been trying to get into the kernel debugger to get a backtrace, but=20
without luck. I've hooked up a serial console, but I just can't get into DD=
B.=20
I've tried various option (adding debug.debugger_on_panic=3D"1"=20
to /boot/loader.conf, the BREAK_TO_DEBUGGER and KDB_UNATTENDED kernel optio=
ns=20
as well as specifying "boot -d" at the boot loader - without any effect.=20
Since the panic happens before init is started, my dump device configuratio=
n=20
in /etc/rc.conf isn't read either.

How can I get meaningful debugging data out of this system?

Oh, btw, notice the weird device name string for acd0. It's supposed to say=
=20
<Pioneer DVD-ROM ATAPIModel DVD-106S 0122/E1.22>, and in the BIOS as well a=
s=20
under FreeBSD 5.5/i386 it does. The erroneous strings shows up on FreeBSD 6=
=2E1=20
with or without the second IDE channel being enabled.

Any idea what might cause this?

The full boot log follows bellow.

Cheers
Benjamin


KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
=46reeBSD 6.1-RELEASE-p7 #4: Tue Sep 19 21:56:53 CEST 2006
    root@merlin.intranet:/usr/obj/usr/src/sys/MERLIN64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3500+ (2210.09-MHz K8-class CPU)
  Origin =3D "AuthenticAMD"  Id =3D 0xff0  Stepping =3D 0
 =20
=46eatures=3D0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=3D0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
real memory  =3D 1073676288 (1023 MB)
avail memory =3D 1026371584 (978 MB)
ACPI APIC Table: <Nvidia AWRDACPI>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <Nvidia AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
powernow0: <Cool`n'Quiet K8> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0xcf0-0xcf3 on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <NVIDIA nForce3-250 AGP Controller> mem 0xf0000000-0xf7ffffff at devi=
ce=20
0.0 on pci0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff irq 21 at=
=20
device 2.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xfe02e000-0xfe02efff irq 22 at=
=20
device 2.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0: <NVIDIA nForce3 250 USB 2.0 controller> mem 0xfe02d000-0xfe02d0ff ir=
q=20
23 at device 2.2 on pci0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2: <NVIDIA nForce3 250 USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
uhub3: vendor 0x0409 product 0x013e, class 9/0, rev 2.00/0.07, addr 2
uhub3: multiple transaction translators
uhub3: 4 ports with 4 removable, self powered
pci0: <multimedia, audio> at device 6.0 (no driver attached)
atapci0: <nVidia nForce3 Pro UDMA133 controller> port=20
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 8.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <nVidia nForce3 Pro SATA150 controller> port=20
0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xcc00-0xcc0f,0xc800-0xc87f=
=20
irq 22 at device 9.0 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
atapci2: <nVidia nForce3 Pro SATA150 controller> port=20
0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xb400-0xb40f,0xb000-0xb07f=
=20
irq 23 at device 10.0 on pci0
ata4: <ATA channel 0> on atapci2
ata5: <ATA channel 1> on atapci2
pcib1: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcm0: <Creative EMU10K1> port 0x9c00-0x9c1f irq 18 at device 8.0 on pci2
pcm0: <SigmaTel STAC9708/11 AC97 Codec>
pci2: <multimedia, video> at device 9.0 (no driver attached)
pci2: <multimedia> at device 9.1 (no driver attached)
fwohci0: <VIA Fire II (VT6306)> port 0x9400-0x947f mem 0xfdfff000-0xfdfff7f=
f=20
irq 19 at device 12.0 on pci2
fwohci0: OHCI version 1.0 (ROM=3D1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:10:dc:00:00:7a:42:db
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:10:dc:7a:42:db
fwe0: Ethernet address: 02:10:dc:7a:42:db
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me)
firewire0: bus manager 0 (me)
re0: <RealTek 8169S Single-chip Gigabit Ethernet> port 0x9000-0x90ff mem=20
0xfdffe000-0xfdffe0ff irq 16 at device 13.0 on pci2
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S media interface> on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,=20
1000baseTX-FDX, auto
re0: Ethernet address: 00:11:09:65:fc:0e
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acp=
i0
sio0: type 16550A, console
ppc0: <Standard parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7 o=
n=20
acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROMs> at iomem 0xc0000-0xce7ff,0xd0000-0xd3fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 2210091822 Hz quality 800
Timecounters tick every 1.000 msec
acd0: DVDROM <PHEHDER DVD A/ 2> at ata0-master UDMA33
acd1: DVDR <PLEXTOR DVDR PX-708A/1.07> at ata0-slave UDMA33
ad2: 78533MB <HDS722580VLAT20 V32OA60A> at ata1-master UDMA100


=46atal trap 18: integer divide fault while in kernel mode
instruction pointer     =3D 0x8:0xffffffff801bd9a5
stack pointer           =3D 0x10:0xffffffff80845a90
frame pointer           =3D 0x10:0xffffffff80845ae0
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 0 (swapper)
trap number             =3D 18
panic: integer divide fault
Uptime: 1s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...

--nextPart1324833.slhOfsJRSJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFEFBozZEjpyKHuQwRAt2WAJ45u2x7aoWOmOf1P6l+1VyfuQqQpACeNvUO
jh7w9wENeZsD7QMrPhymvY4=
=dQg6
-----END PGP SIGNATURE-----

--nextPart1324833.slhOfsJRSJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609192217.44712.mail>