From owner-freebsd-current@FreeBSD.ORG Mon Nov 22 18:35:09 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 982DB1065672; Mon, 22 Nov 2010 18:35:09 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 473448FC13; Mon, 22 Nov 2010 18:35:08 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA03294; Mon, 22 Nov 2010 20:35:04 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4CEAB7D8.9080408@freebsd.org> Date: Mon, 22 Nov 2010 20:35:04 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Roger Hammerstein References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: panic with devclass_get_name (dc=0xdeadc0dedeadc0de) 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: Mon, 22 Nov 2010 18:35:09 -0000 on 22/11/2010 19:00 Roger Hammerstein said the following: > > > > I can routinely panic a machine with > > dd if=/dev/zero of=/dev/ad8 bs=64k count=1000000 > > > this part doesn't look good: devclass_get_name (dc=0xdeadc0dedeadc0de) > > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x20:0xffffffff805f9f61 > stack pointer = 0x28:0xffffff8000057970 > frame pointer = 0x28:0xffffff80000579a0 > 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 = 12 (swi6: task queue) > panic: from debugger > cpuid = 0 > Uptime: 3m6s > Physical memory: 2031 MB > Dumping 129 MB: 114 98 82 66 50 34 18 2 > > #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:250 > 250 if (textdump_pending) > (kgdb) bt > #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:250 > #1 0xffffffff805cf2d7 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 > #2 0xffffffff805cf761 in panic (fmt=Variable "fmt" is not available. > ) at /usr/src/sys/kern/kern_shutdown.c:591 > #3 0xffffffff801e5147 in db_panic (addr=Variable "addr" is not available. > ) at /usr/src/sys/ddb/db_command.c:478 > #4 0xffffffff801e55f1 in db_command (last_cmdp=0xffffffff80c90fc0, cmd_table=Variable "cmd_table" is not available. > ) at /usr/src/sys/ddb/db_command.c:445 > #5 0xffffffff801e5840 in db_command_loop () at /usr/src/sys/ddb/db_command.c:498 > #6 0xffffffff801e78a9 in db_trap (type=Variable "type" is not available. > ) at /usr/src/sys/ddb/db_main.c:229 > #7 0xffffffff806037de in kdb_trap (type=9, code=0, tf=0xffffff80000578c0) at /usr/src/sys/kern/subr_kdb.c:546 > #8 0xffffffff808c9c5d in trap_fatal (frame=0xffffff80000578c0, eva=Variable "eva" is not available. > ) at /usr/src/sys/amd64/amd64/trap.c:828 > #9 0xffffffff808ca225 in trap (frame=0xffffff80000578c0) at /usr/src/sys/amd64/amd64/trap.c:644 > #10 0xffffffff808b4804 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228 > #11 0xffffffff805f9f61 in devclass_get_name (dc=0xdeadc0dedeadc0de) at /usr/src/sys/kern/subr_bus.c:1291 > #12 0xffffffff805fa4f9 in device_print_prettyname (dev=0xffffff0002635b00) at /usr/src/sys/kern/subr_bus.c:2235 > #13 0xffffffff805fcc32 in device_printf (dev=Variable "dev" is not available. > ) at /usr/src/sys/kern/subr_bus.c:2255 > #14 0xffffffff8027fe9e in ata_completed (context=Variable "context" is not available. > ) at /usr/src/sys/dev/ata/ata-queue.c:298 > #15 0xffffffff806105b3 in taskqueue_run_locked (queue=0xffffff000278d280) at /usr/src/sys/kern/subr_taskqueue.c:245 > #16 0xffffffff806106fd in taskqueue_run (queue=0xffffff000278d280) at /usr/src/sys/kern/subr_taskqueue.c:259 > #17 0xffffffff805a8116 in intr_event_execute_handlers (p=Variable "p" is not available. > ) at /usr/src/sys/kern/kern_intr.c:1220 > #18 0xffffffff805a8e92 in ithread_loop (arg=0xffffff0002526800) at /usr/src/sys/kern/kern_intr.c:1233 > #19 0xffffffff805a60da in fork_exit (callout=0xffffffff805a8de0 , arg=0xffffff0002526800, frame=0xffffff8000057c40) > at /usr/src/sys/kern/kern_fork.c:835 > #20 0xffffffff808b4cde in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:570 > #21 0x0000000000000000 in ?? () > #22 0x0000000000000000 in ?? () > #23 0x0000000000000001 in ?? () > #24 0x0000000000000000 in ?? () > #25 0x0000000000000000 in ?? () > #26 0x0000000000000000 in ?? () > #27 0x0000000000000000 in ?? () > #28 0x0000000000000000 in ?? () > #29 0x0000000000000000 in ?? () > #30 0x0000000000000000 in ?? () > #31 0x0000000000000000 in ?? () > #32 0x0000000000000000 in ?? () > #33 0x0000000000000000 in ?? () > #34 0x0000000000000000 in ?? () > #35 0x0000000000000000 in ?? () > #36 0x0000000000000000 in ?? () > #37 0x0000000000000000 in ?? () > #38 0x0000000000000000 in ?? () > #39 0x0000000000000000 in ?? () > #40 0x0000000000000000 in ?? () > #41 0x0000000000000000 in ?? () > #42 0x0000000000000000 in ?? () > #43 0x0000000000000000 in ?? () > #44 0x0000000000000000 in ?? () > #45 0x0000000000000000 in ?? () > #46 0xffffffff80ccd480 in tdq_cpu () > #47 0xffffffff80ccd440 in affinity () > #48 0xffffff0002627000 in ?? () > #49 0xffffff8000057830 in ?? () > #50 0xffffff80000577d8 in ?? () > #51 0xffffff0002631450 in ?? () > ---Type to continue, or q to quit--- > > > > > > > Updated to latest -current yesterday. > > > Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-CURRENT #0: Mon Nov 22 10:30:08 EST 2010 > root@butter.local:/usr/obj/usr/src/sys/GENERIC amd64 > WARNING: WITNESS option enabled, expect reduced performance. > SRAT: No memory region found for 10fb000 - 7ffe0000 > CPU: AMD Opteron(tm) Processor 250 (2394.06-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x20f51 Family = f Model = 25 Stepping = 1 > Features=0x78bfbff > Features2=0x1 > AMD Features=0xe2500800 > AMD Features2=0x1 > real memory = 2147483648 (2048 MB) > avail memory = 2050400256 (1955 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 2 package(s) x 1 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > MADT: Forcing active-low polarity and level trigger for SCI > ioapic0 irqs 0-15 on motherboard > ioapic1 irqs 16-31 on motherboard > ioapic2 irqs 32-47 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > acpi0: Power Button (fixed) > acpi0: Sleep Button (fixed) > acpi0: reservation of 540, 20 (4) failed > acpi0: reservation of 500, 20 (4) failed > acpi0: reservation of 560, 20 (4) failed > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7ff00000 (3) failed > Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0 > cpu0: on acpi0 > cpu1: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pcib2: at device 13.0 on pci1 > pci2: on pcib2 > atapci0: port 0xbc00-0xbc07,0xb880-0xb883,0xb800-0xb807,0xb480-0xb483,0xb400-0xb41f mem 0xfc9fe000-0xfc9fffff irq 11 at device 14.0 on pci1 > ata2: on atapci0 > ata3: on atapci0 > ata4: on atapci0 > ata5: on atapci0 > atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 2.1 on pci0 > ata0: on atapci1 > ata1: on atapci1 > isab0: at device 2.2 on pci0 > isa0: on isab0 > ohci0: port 0xe800-0xe8ff mem 0xfebfa000-0xfebfafff irq 10 at device 3.0 on pci0 > usbus0: on ohci0 > ohci1: port 0xd800-0xd8ff mem 0xfebf9000-0xfebf9fff irq 10 at device 3.1 on pci0 > usbus1: on ohci1 > ehci0: port 0xd400-0xd4ff mem 0xfebf8000-0xfebf8fff irq 10 at device 3.2 on pci0 > usbus2: EHCI version 1.0 > usbus2: on ehci0 > vgapci0: port 0xe000-0xe0ff mem 0xfd000000-0xfdffffff,0xfebff000-0xfebfffff irq 28 at device 5.0 on pci0 > pcib3: at device 8.0 on pci0 > pci3: on pcib3 > pcib4: at device 9.0 on pci0 > pci4: on pcib4 > bge0: mem 0xfcaf0000-0xfcafffff,0xfcae0000-0xfcaeffff irq 17 at device 4.0 on pci4 > bge0: CHIP ID 0x00008003; ASIC REV 0x08; CHIP REV 0x80; PCI-X > miibus0: on bge0 > brgphy0: PHY 1 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge0: Ethernet address: 00:xx:xx:xx:xx:xx > bge1: mem 0xfcad0000-0xfcadffff,0xfcac0000-0xfcacffff irq 19 at device 4.1 on pci4 > bge1: CHIP ID 0x00008003; ASIC REV 0x08; CHIP REV 0x80; PCI-X > miibus1: on bge1 > brgphy1: PHY 1 on miibus1 > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge1: Ethernet address: 00:xx:xx:xx:xx:xx > pcib5: at device 10.0 on pci0 > pci5: on pcib5 > pcib6: at device 11.0 on pci0 > pci6: on pcib6 > pcib7: at device 12.0 on pci0 > pci7: on pcib7 > pcib8: at device 13.0 on pci0 > pci8: on pcib8 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > attimer0: port 0x40-0x43 irq 0 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > atrtc0: port 0x70-0x71 irq 8 on acpi0 > Event timer "RTC" frequency 32768 Hz quality 0 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 > orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff 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 > ppc0: cannot reserve I/O port range > powernow0: on cpu0 > device_attach: powernow0 attach returned 6 > powernow1: on cpu1 > device_attach: powernow1 attach returned 6 > Timecounters tick every 1.000 msec > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 12Mbps Full Speed USB v1.0 > usbus2: 480Mbps High Speed USB v2.0 > acd0: DMA limited to UDMA33, device found non-ATA66 cable > acd0: DVDROM at ata0-slave UDMA33 > ad4: 190782MB at ata2-master UDMA100 SATA 1.5Gb/s > ugen0.1: <0x1166> at usbus0 > uhub0: <0x1166 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 > ugen1.1: <0x1166> at usbus1 > uhub1: <0x1166 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 > ugen2.1: <0x1166> at usbus2 > uhub2: <0x1166 EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2 > ad6: 190782MB at ata3-master UDMA100 SATA 1.5Gb/s > ad8: 143089MB at ata4-master UDMA100 SATA 1.5Gb/s > ad10: 190782MB at ata5-master UDMA100 SATA 1.5Gb/s > SMP: AP CPU #1 Launched! > WARNING: WITNESS option enabled, expect reduced performance. > uhub0: 2 ports with 2 removable, self powered > uhub1: 2 ports with 2 removable, self powered > Root mount waiting for: usbus2 > uhub2: 4 ports with 4 removable, self powered > Trying to mount root from ufs:/dev/ad4s1a [rw]... > WARNING: / was not properly dismounted > bge1: link state changed to UP > > > > It only seems to be the ad8 WDC sata raptor disk. The other disks, seagates, are fine; multiple rsyncs/lots of data written. > > The bios has SATA settings of IDE, MMIO, and RAID, and they're currently set for MMIO. > > Thank you. Could this be a case of triggering a hardware problem which wrecks further havoc? -- Andriy Gapon