6.0-BETA4 (amd64): Fatal trap 18 on boot in ataraid

From: Ruben de Groot <mail25_at_bzerk.org>
Date: Wed, 14 Sep 2005 11:29:33 +0200
I'm still seeing a "fatal trap 18" in BETA4 on amd64. When I compile a
custom kernel without device ataraid (otherwise same as GENERIC) that
kernel boots fine.

I'm including a trace, show reg, as well as the dmesg. What
else can I do to track this down?


ad0: 28620MB <ExcelStor Technology ES3230 ES7CA24G> at ata0-master
UDMA66


Fatal trap 18: integer divide fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x8:0xffffffff802307da
stack pointer           = 0x10:0xffffffff809e8940
frame pointer           = 0x10:0xffffffff809e89a0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (swapper)
[thread pid 0 tid 0 ]
Stopped at      ata_raid_promise_read_meta+0x9a:        divq
%rsi,%eax
db> tr
Tracing pid 0 tid 0 td 0xffffffff8081ec00
ata_raid_promise_read_meta() at ata_raid_promise_read_meta+0x9a
ata_raid_read_metadata() at ata_raid_read_metadata+0x29b
ata_raid_subdisk_attach() at ata_raid_subdisk_attach+0x27
device_attach() at device_attach+0x292
bus_generic_attach() at bus_generic_attach+0x18
ad_attach() at ad_attach+0x37e
device_attach() at device_attach+0x292
bus_generic_attach() at bus_generic_attach+0x18
ata_identify() at ata_identify+0xe6
ata_boot_attach() at ata_boot_attach+0x42
run_interrupt_driven_config_hooks() at
run_interrupt_driven_config_hooks+0x2a
mi_startup() at mi_startup+0xd3
btext() at btext+0x2c
db> show reg
cs                 0x8
ss                0x10
rax          0x37e65da
rcx              0x267
rdx                  0
rbx                  0
rsp         0xffffffff809e8940
rbp         0xffffffff809e89a0
rsi                  0
rdi         0xffffff001e40ac00
r8                   0
r9                   0
r10                0x4
r11                0x1
r12         0xffffff001d532520
r13         0xffffff001e677800
r14         0xffffff001e40ac00
r15         0xffffffff80805440  ata_raid_arrays
rip         0xffffffff802307da  ata_raid_promise_read_meta+0x9a
rflags         0x10246
dr0                  0
dr1                  0
dr2                  0
dr3                  0
dr4         0xffff0ff0
dr5              0x400
dr6         0xffff0ff0
dr7              0x400
ata_raid_promise_read_meta+0x9a:        divq    %rsi,%eax
db>


dmesg:


OK boot kernel.GENERIC
/boot/kernel.GENERIC/kernel text=0x553188 data=0xad050+0xdd480
syms=[0x8+0x8e7b8+0x8+0x76856]
\GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2005 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.
FreeBSD 6.0-BETA4 #0: Tue Sep  6 20:00:59 UTC 2005
    root_at_rat.samsco.home:/usr/obj/usr/src/sys/GENERIC
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3000+ (1809.28-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20ff0  Stepping = 0

Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,<b25>,LM,3DNow+,3DNow>
real memory  = 536805376 (511 MB)
avail memory = 506015744 (482 MB)
ACPI APIC Table: <Nvidia AWRDACPI>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
acpi0: <Nvidia AWRDACPI> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
pci_link0: <ACPI PCI Link LNK1> irq 12 on acpi0
pci_link1: <ACPI PCI Link LNK2> on acpi0
pci_link2: <ACPI PCI Link LNK3> irq 5 on acpi0
pci_link3: <ACPI PCI Link LNK4> on acpi0
pci_link4: <ACPI PCI Link LNK5> on acpi0
pci_link5: <ACPI PCI Link LUBA> irq 12 on acpi0
pci_link6: <ACPI PCI Link LUBB> on acpi0
pci_link7: <ACPI PCI Link LMAC> on acpi0
pci_link8: <ACPI PCI Link LACI> irq 11 on acpi0
pci_link9: <ACPI PCI Link LMCI> on acpi0
pci_link10: <ACPI PCI Link LSMB> irq 5 on acpi0
pci_link11: <ACPI PCI Link LUB2> irq 10 on acpi0
pci_link12: <ACPI PCI Link LIDE> on acpi0
pci_link13: <ACPI PCI Link LSID> irq 11 on acpi0
pci_link14: <ACPI PCI Link LFID> irq 10 on acpi0
pci_link15: <ACPI PCI Link LPCA> on acpi0
pci_link16: <ACPI PCI Link APC1> irq 0 on acpi0
pci_link17: <ACPI PCI Link APC2> irq 0 on acpi0
pci_link18: <ACPI PCI Link APC3> irq 0 on acpi0
pci_link19: <ACPI PCI Link APC4> irq 0 on acpi0
pci_link20: <ACPI PCI Link APC5> irq 16 on acpi0
pci_link21: <ACPI PCI Link APCF> irq 0 on acpi0
pci_link22: <ACPI PCI Link APCG> irq 0 on acpi0
pci_link23: <ACPI PCI Link APCH> irq 0 on acpi0
pci_link24: <ACPI PCI Link APCJ> irq 0 on acpi0
pci_link25: <ACPI PCI Link APCK> irq 0 on acpi0
pci_link26: <ACPI PCI Link APCS> irq 0 on acpi0
pci_link27: <ACPI PCI Link APCL> irq 0 on acpi0
pci_link28: <ACPI PCI Link APCZ> irq 0 on acpi0
pci_link29: <ACPI PCI Link APSI> irq 0 on acpi0
pci_link30: <ACPI PCI Link APSJ> irq 0 on acpi0
pci_link31: <ACPI PCI Link APCP> irq 0 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory> at device 0.0 (no driver attached)
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 0xec102000-0xec102fff irq 21
at device 2.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
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: 10 ports with 10 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xec103000-0xec1030ff irq
22 at device 2.1 on pci0
ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
pci0: <multimedia, audio> at device 4.0 (no driver attached)
atapci0: <nVidia nForce4 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <nVidia nForce4 SATA150 controller> port
0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xc400-0xc40f mem
0xec100000-0xec100fff irq 21 at device 7.0 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
atapci2: <nVidia nForce4 SATA150 controller> port
0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xd800-0xd80f mem
0xec101000-0xec101fff irq 22 at device 8.0 on pci0
ata4: <ATA channel 0> on atapci2
ata5: <ATA channel 1> on atapci2
pcib1: <ACPI PCI-PCI bridge> at device 9.0 on pci0
pci_link19: BIOS IRQ 21 for 0.7.INTA is invalid
pci_link16: BIOS IRQ 22 for 0.8.INTA is invalid
pci1: <ACPI PCI bus> on pcib1
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x8000-0x801f mem
0xec000000-0xec000fff,0xeb000000-0xeb0fffff irq 16 at device 8.0 on pci1
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:a0:c9:b7:88:53
fwohci0: <Texas Instruments TSB82AA2> mem
0xeb104000-0xeb1047ff,0xeb100000-0xeb103fff irq 18 at device 10.0 on
pci1
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:0f:ea:56:00:d7:5f:e8
fwohci0: invalid speed 7 (fixed to 3).
fwohci0: Phy 1394a available S800, 3 ports.
fwohci0: Link S800, max_rec 4096 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:0f:ea:d7:5f:e8
fwe0: Ethernet address: 02:0f:ea:d7:5f:e8
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
fwohci0: phy int
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 13.0 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci5: <ACPI PCI bus> on pcib5
pci5: <display, VGA> at device 0.0 (no driver attached)
pci5: <display> at device 0.1 (no driver attached)
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A, console
sio1: <Generic IRDA-compatible device> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <ISA Option ROM> at iomem 0xc0000-0xccfff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 1809281126 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 28620MB <ExcelStor Technology ES3230 ES7CA24G> at ata0-master
UDMA66


Fatal trap 18: integer divide fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x8:0xffffffff802307da
stack pointer           = 0x10:0xffffffff809e8940
frame pointer           = 0x10:0xffffffff809e89a0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (swapper)
[thread pid 0 tid 0 ]
Stopped at      ata_raid_promise_read_meta+0x9a:        divq
%rsi,%eax
db>

Ruben
Received on Wed Sep 14 2005 - 07:25:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC