From owner-freebsd-current@FreeBSD.ORG Tue Nov 27 15:14:24 2007 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 5DD9916A41B for ; Tue, 27 Nov 2007 15:14:24 +0000 (UTC) (envelope-from schmidtm@mathematik.uni-marburg.de) Received: from alpha.staatsfeind.org (staatsfeind.org [217.20.114.241]) by mx1.freebsd.org (Postfix) with ESMTP id F119E13C455 for ; Tue, 27 Nov 2007 15:14:23 +0000 (UTC) (envelope-from schmidtm@mathematik.uni-marburg.de) Received: by alpha.staatsfeind.org (Postfix, from userid 1002) id 2DD8D6246; Tue, 27 Nov 2007 16:14:22 +0100 (CET) Date: Tue, 27 Nov 2007 16:14:22 +0100 From: Matthias Schmidt To: Attilio Rao Message-ID: <20071127151421.GF51762@staatsfeind.org> References: <3bbf2fe10711270659gbfbdde5m5acb0ea38351607a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bbf2fe10711270659gbfbdde5m5acb0ea38351607a@mail.gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: 7.0-BETA3 kernel panic when unplugging USB stick 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: Tue, 27 Nov 2007 15:14:24 -0000 Hi, * Attilio Rao wrote: > > This seems a race in the sim with the lock field (it switches just > before to assert so that it get unconsistent when asserting). > Something is unclear to me (sorry if I missed the information): you > use SMP and PREEMPTION but I don't see any other core started in the > dmesg, what kind of hw is this? This box is a UP machine. IIRC SMP and PREEMPTION are enabled by default under 7.0-BETA?! A dmesg is attached. pciconf etc under: http://www.mathematik.uni-marburg.de/~schmidtm/usbcrash/ Regards Matthias --- snap ---- Copyright (c) 1992-2007 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 7.0-BETA3 #0: Sun Nov 25 14:11:30 CET 2007 root@node008.lab.ds:/usr/src/sys/i386/compile/NODE008 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. WITNESS: spin lock scrlock not in order list Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.56-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febfbff real memory = 536608768 (511 MB) avail memory = 510873600 (487 MB) ACPI APIC Table: WITNESS: spin lock intrcnt not in order list ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 p4tcc0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xfd000000-0xfdffffff,0xe8000000-0xefffffff irq 16 at device 0.0 on pci1 pcib2: at device 30.0 on pci0 pci2: on pcib2 fxp0: port 0xdf00-0xdf3f mem 0xfeaff000-0xfeafffff irq 20 at device 8.0 on pci2 miibus0: on fxp0 inphy0: PHY 1 on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:03:47:ec:9e:e5 fxp0: [ITHREAD] isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] uhci0: port 0xef40-0xef5f irq 19 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered pci0: at device 31.3 (no driver attached) uhci1: port 0xef80-0xef9f irq 23 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered pci0: at device 31.5 (no driver attached) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] fdc0: port 0x3f0-0x3f1,0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] pmtimer0 on isa0 orm0: at iomem 0xcc000-0xccfff,0xcd000-0xcdfff pnpid ORM0000 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 uhub2: on uhub1 uhub2: 4 ports with 4 removable, self powered Timecounter "TSC" frequency 1794559108 Hz quality 800 Timecounters tick every 1.000 msec ad0: 58644MB at ata0-master UDMA100 acd0: DVDROM at ata1-master UDMA33 acd1: CDRW at ata1-slave UDMA33 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. GEOM_LABEL: Label for provider ad0s1 is ntfs/C_SYSTEM. Trying to mount root from ufs:/dev/ad0s2a