From owner-freebsd-current@FreeBSD.ORG Wed Sep 14 09:25:49 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2680616A41F for ; Wed, 14 Sep 2005 09:25:49 +0000 (GMT) (envelope-from ruben@bzerk.org) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52EC343D4C for ; Wed, 14 Sep 2005 09:25:45 +0000 (GMT) (envelope-from ruben@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.3/8.13.3) with ESMTP id j8E9TXP2003316 for ; Wed, 14 Sep 2005 11:29:34 +0200 (CEST) (envelope-from ruben@ei.bzerk.org) Received: (from ruben@localhost) by ei.bzerk.org (8.13.3/8.13.3/Submit) id j8E9TXXO003315 for freebsd-current@freebsd.org; Wed, 14 Sep 2005 11:29:33 +0200 (CEST) (envelope-from ruben) Date: Wed, 14 Sep 2005 11:29:33 +0200 From: Ruben de Groot To: freebsd-current@freebsd.org Message-ID: <20050914092933.GA3222@ei.bzerk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=failed version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on ei.bzerk.org Subject: 6.0-BETA4 (amd64): Fatal trap 18 on boot in ataraid X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 09:25:49 -0000 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 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@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 Features2=0x1 AMD Features=0xe2500800,LM,3DNow+,3DNow> real memory = 536805376 (511 MB) avail memory = 506015744 (482 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard acpi0: 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: irq 12 on acpi0 pci_link1: on acpi0 pci_link2: irq 5 on acpi0 pci_link3: on acpi0 pci_link4: on acpi0 pci_link5: irq 12 on acpi0 pci_link6: on acpi0 pci_link7: on acpi0 pci_link8: irq 11 on acpi0 pci_link9: on acpi0 pci_link10: irq 5 on acpi0 pci_link11: irq 10 on acpi0 pci_link12: on acpi0 pci_link13: irq 11 on acpi0 pci_link14: irq 10 on acpi0 pci_link15: on acpi0 pci_link16: irq 0 on acpi0 pci_link17: irq 0 on acpi0 pci_link18: irq 0 on acpi0 pci_link19: irq 0 on acpi0 pci_link20: irq 16 on acpi0 pci_link21: irq 0 on acpi0 pci_link22: irq 0 on acpi0 pci_link23: irq 0 on acpi0 pci_link24: irq 0 on acpi0 pci_link25: irq 0 on acpi0 pci_link26: irq 0 on acpi0 pci_link27: irq 0 on acpi0 pci_link28: irq 0 on acpi0 pci_link29: irq 0 on acpi0 pci_link30: irq 0 on acpi0 pci_link31: 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: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xec102000-0xec102fff irq 21 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: 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: 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: 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: at device 4.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xc400-0xc40f mem 0xec100000-0xec100fff irq 21 at device 7.0 on pci0 ata2: on atapci1 ata3: on atapci1 atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xd800-0xd80f mem 0xec101000-0xec101fff irq 22 at device 8.0 on pci0 ata4: on atapci2 ata5: on atapci2 pcib1: 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: on pcib1 fxp0: port 0x8000-0x801f mem 0xec000000-0xec000fff,0xeb000000-0xeb0fffff irq 16 at device 8.0 on pci1 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:a0:c9:b7:88:53 fwohci0: 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: on fwohci0 fwe0: 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: 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: at device 11.0 on pci0 pci2: on pcib2 pcib3: at device 12.0 on pci0 pci3: on pcib3 pcib4: at device 13.0 on pci0 pci4: on pcib4 pcib5: at device 14.0 on pci0 pci5: on pcib5 pci5: at device 0.0 (no driver attached) pci5: at device 0.1 (no driver attached) fdc0: 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: port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xc0000-0xccfff on isa0 atkbdc0: at port 0x60,0x64 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1809281126 Hz quality 800 Timecounters tick every 1.000 msec ad0: 28620MB 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