Re: panic with devclass_get_name (dc=0xdeadc0dedeadc0de)

From: Andriy Gapon <avg_at_freebsd.org>
Date: Mon, 22 Nov 2010 20:35:04 +0200
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 <ithread_loop>, 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 <return> to continue, or q <return> 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_at_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<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+,FFXSR,LM,3DNow!+,3DNow!>
>   AMD Features2=0x1<LAHF>
> real memory  = 2147483648 (2048 MB)
> avail memory = 2050400256 (1955 MB)
> Event timer "LAPIC" quality 400
> ACPI APIC Table: <A M I  OEMAPIC >
> 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 <Version 1.1> irqs 0-15 on motherboard
> ioapic1 <Version 1.1> irqs 16-31 on motherboard
> ioapic2 <Version 1.1> irqs 32-47 on motherboard
> kbd1 at kbdmux0
> acpi0: <A M I OEMXSDT> 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: <ACPI CPU> on acpi0
> cpu1: <ACPI CPU> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pcib2: <ACPI PCI-PCI bridge> at device 13.0 on pci1
> pci2: <ACPI PCI bus> on pcib2
> atapci0: <ServerWorks HT1000 SATA150 controller> port 0xbc00-0xbc07,0xb880-0xb883,0xb800-0xb807,0xb480-0xb483,0xb400-0xb41f mem 0xfc9fe000-0xfc9fffff irq 11 at device 14.0 on pci1
> ata2: <ATA channel 0> on atapci0
> ata3: <ATA channel 1> on atapci0
> ata4: <ATA channel 2> on atapci0
> ata5: <ATA channel 3> on atapci0
> atapci1: <ServerWorks HT1000 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 2.1 on pci0
> ata0: <ATA channel 0> on atapci1
> ata1: <ATA channel 1> on atapci1
> isab0: <PCI-ISA bridge> at device 2.2 on pci0
> isa0: <ISA bus> on isab0
> ohci0: <OHCI (generic) USB controller> port 0xe800-0xe8ff mem 0xfebfa000-0xfebfafff irq 10 at device 3.0 on pci0
> usbus0: <OHCI (generic) USB controller> on ohci0
> ohci1: <OHCI (generic) USB controller> port 0xd800-0xd8ff mem 0xfebf9000-0xfebf9fff irq 10 at device 3.1 on pci0
> usbus1: <OHCI (generic) USB controller> on ohci1
> ehci0: <EHCI (generic) USB 2.0 controller> port 0xd400-0xd4ff mem 0xfebf8000-0xfebf8fff irq 10 at device 3.2 on pci0
> usbus2: EHCI version 1.0
> usbus2: <EHCI (generic) USB 2.0 controller> on ehci0
> vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xfd000000-0xfdffffff,0xfebff000-0xfebfffff irq 28 at device 5.0 on pci0
> pcib3: <ACPI PCI-PCI bridge> at device 8.0 on pci0
> pci3: <ACPI PCI bus> on pcib3
> pcib4: <ACPI PCI-PCI bridge> at device 9.0 on pci0
> pci4: <ACPI PCI bus> on pcib4
> bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x008003> 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: <MII bus> on bge0
> brgphy0: <BCM5780 10/100/1000baseTX PHY> 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: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x008003> 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: <MII bus> on bge1
> brgphy1: <BCM5780 10/100/1000baseTX PHY> 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: <ACPI PCI-PCI bridge> at device 10.0 on pci0
> pci5: <ACPI PCI bus> on pcib5
> pcib6: <ACPI PCI-PCI bridge> at device 11.0 on pci0
> pci6: <ACPI PCI bus> on pcib6
> pcib7: <ACPI PCI-PCI bridge> at device 12.0 on pci0
> pci7: <ACPI PCI bus> on pcib7
> pcib8: <ACPI PCI-PCI bridge> at device 13.0 on pci0
> pci8: <ACPI PCI bus> on pcib8
> acpi_button0: <Power Button> on acpi0
> acpi_button1: <Sleep Button> on acpi0
> attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
> Timecounter "i8254" frequency 1193182 Hz quality 0
> Event timer "i8254" frequency 1193182 Hz quality 100
> atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
> Event timer "RTC" frequency 32768 Hz quality 0
> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> fdc0: <floppy drive controller (FDE)> 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: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff 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
> ppc0: cannot reserve I/O port range
> powernow0: <Cool`n'Quiet K8> on cpu0
> device_attach: powernow0 attach returned 6
> powernow1: <Cool`n'Quiet K8> 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 <MATSHITADVD-ROM SR-8178/PZ16> at ata0-slave UDMA33
> ad4: 190782MB <Seagate ST3200826AS 3.02> 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 <Seagate ST3200826AS 3.02> at ata3-master UDMA100 SATA 1.5Gb/s
> ad8: 143089MB <WDC WD1500ADFD-00NLR1 20.07P20> at ata4-master UDMA100 SATA 1.5Gb/s
> ad10: 190782MB <Seagate ST3200826AS 3.02> 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
Received on Mon Nov 22 2010 - 17:35:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC