From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 11 12:00:19 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F2FE10656EB for ; Wed, 11 Aug 2010 12:00:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 612CB8FC1A for ; Wed, 11 Aug 2010 12:00:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7BC0JKb006080 for ; Wed, 11 Aug 2010 12:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7BC0JJW006079; Wed, 11 Aug 2010 12:00:19 GMT (envelope-from gnats) Resent-Date: Wed, 11 Aug 2010 12:00:19 GMT Resent-Message-Id: <201008111200.o7BC0JJW006079@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bengt Ahlgren Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC835106566B for ; Wed, 11 Aug 2010 11:58:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 9A8848FC15 for ; Wed, 11 Aug 2010 11:58:45 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7BBwjTe050972 for ; Wed, 11 Aug 2010 11:58:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7BBwjdL050971; Wed, 11 Aug 2010 11:58:45 GMT (envelope-from nobody) Message-Id: <201008111158.o7BBwjdL050971@www.freebsd.org> Date: Wed, 11 Aug 2010 11:58:45 GMT From: Bengt Ahlgren To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/149523: [geom] label tasting hangs during boot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 12:00:19 -0000 >Number: 149523 >Category: kern >Synopsis: [geom] label tasting hangs during boot >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 11 12:00:18 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Bengt Ahlgren >Release: 8.1-RELEASE >Organization: >Environment: N/A (can't boot install dvd) >Description: When trying to install 8.1-RELEASE using the dvd install media, the boot hangs when geom label is tasting the disk. See this screenshot when booting with kern.geom.label.debug=2 and kern.geom.debugflags=7: http://www.sics.se/~bengta/FBSD/IMG_1703.JPG The dmesg from a 7.3-REL boot which works fine is attached. The disk contains a factory-installed Windows XP and a recovery partition (which I intend to wipe out). The mbr partitioning looks like this: ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 63, size 69536817 (33953 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 239/ sector 63 The data for partition 2 is: sysid 18 (0x12),(Compaq diagnostics) start 69536880, size 8603280 (4200 Meg), flag 0 beg: cyl 1023/ head 0/ sector 1; end: cyl 1023/ head 239/ sector 63 The data for partition 3 is: The data for partition 4 is: >How-To-Repeat: Just boot the install media with this disk. >Fix: I guess that wiping the mbr will fix this, but I will wait with doing that for further debugging. Is there anything more I can do in order to find the bug? It is possible to get a crash dump? Patch attached with submission follows: 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 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1200MHz (1196.12-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x695 Stepping = 5 Features=0xa7e1fbbf Features2=0x180 real memory = 527302656 (502 MB) avail memory = 497786880 (474 MB) ACPI APIC Table: ACPI Warning (tbfadt-0505): Optional field "Gpe1Block" has zero address or length: 0 102C/0 [20070320] ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1ee0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pci0: at device 0.3 (no driver attached) vgapci0: port 0x1800-0x1807 mem 0xe0000000-0xe7ffffff,0xd0000000-0xd007ffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 8060k stolen memory agp0: aperture size is 128M vgapci1: mem 0xe8000000-0xefffffff,0xd0080000-0xd00fffff at device 2.1 on pci0 uhci0: port 0x1820-0x183f irq 16 at device 29.0 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 uhci1: port 0x1840-0x185f irq 19 at device 29.1 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 uhci2: port 0x1860-0x187f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xd0100000-0xd01003ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered umass0: on uhub3 pcib1: at device 30.0 on pci0 pci2: on pcib1 cbb0: mem 0xb0000000-0xb0000fff irq 16 at device 0.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] pci2: at device 0.1 (no driver attached) em0: port 0x7000-0x703f mem 0xd0200000-0xd021ffff irq 20 at device 1.0 on pci2 em0: [FILTER] em0: Ethernet address: 00:0a:e4:25:c9:5c pci2: at device 2.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) pci0: at device 31.5 (no driver attached) pci0: at device 31.6 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled battery0: on acpi0 acpi_acad0: on acpi0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcc7ff,0xcc800-0xcd7ff,0xcd800-0xce7ff,0xdc000-0xdffff,0xe0000-0xeffff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1196122882 Hz quality 800 Timecounters tick every 1.000 msec md0: Preloaded image 4423680 bytes at 0xc0e2208c GEOM_LABEL[2]: Tasting md0. GEOM_LABEL[1]: UFS1 file system detected on md0. GEOM_LABEL[1]: Label for provider md0 is ufsid/4ba5bb23d8647b8d. GEOM_LABEL[1]: UFS1 file system detected on md0. GEOM_LABEL[1]: MSDOSFS: md0: FAT32 volume not valid. GEOM_LABEL[2]: Tasting md0a. GEOM_LABEL[1]: UFS1 file system detected on md0a. GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (md0a). GEOM_LABEL[1]: UFS1 file system detected on md0a. GEOM_LABEL[1]: MSDOSFS: md0a: FAT32 volume not valid. GEOM_LABEL[2]: Tasting md0c. GEOM_LABEL[1]: UFS1 file system detected on md0c. GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (md0c). GEOM_LABEL[1]: UFS1 file system detected on md0c. GEOM_LABEL[1]: MSDOSFS: md0c: FAT32 volume not valid. GEOM_LABEL[2]: Tasting ufsid/4ba5bb23d8647b8d. GEOM_LABEL[2]: Tasting ufsid/4ba5bb23d8647b8da. GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8da. GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (ufsid/4ba5bb23d8647b8da). GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8da. GEOM_LABEL[1]: MSDOSFS: ufsid/4ba5bb23d8647b8da: FAT32 volume not valid. GEOM_LABEL[2]: Tasting ufsid/4ba5bb23d8647b8dc. GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8dc. GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (ufsid/4ba5bb23d8647b8dc). GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8dc. GEOM_LABEL[1]: MSDOSFS: ufsid/4ba5bb23d8647b8dc: FAT32 volume not valid. ad0: 38154MB at ata0-master UDMA100 GEOM_LABEL[2]: Tasting ad0. GEOM_LABEL[1]: MSDOSFS: ad0: FAT12/16 volume not valid. GEOM_LABEL[2]: Tasting ad0s1. GEOM_LABEL[1]: MSDOSFS: ad0s1: FAT32 volume detected. GEOM_LABEL[1]: Label for provider ad0s1 is msdosfs/IBM_PRELOAD. GEOM_LABEL[2]: Tasting ad0s2. GEOM_LABEL[1]: MSDOSFS: ad0s2: FAT32 volume detected. GEOM_LABEL[1]: Label for provider ad0s2 is msdosfs/IBM_SERVICE. GEOM_LABEL[2]: Tasting msdosfs/IBM_PRELOAD. GEOM_LABEL[2]: Tasting msdosfs/IBM_SERVICE. cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 40.000MB/s transfers cd0: cd present [1162560 x 2048 byte records] GEOM_LABEL[2]: Tasting cd0. GEOM_LABEL[1]: ISO9660 file system detected on cd0. GEOM_LABEL[1]: Label for provider cd0 is iso9660/FreeBSD_Install. GEOM_LABEL[1]: MSDOSFS: cd0: no FAT signature found. GEOM_LABEL[2]: Tasting iso9660/FreeBSD_Install. Trying to mount root from ufs:/dev/md0 GEOM_LABEL[1]: Label ufsid/4ba5bb23d8647b8d removed. umass1: on uhub3 da0 at umass-sim1 bus 1 target 0 lun 0 da0: < Flash Disk 5.00> Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 2010MB (4116480 512 byte sectors: 255H 63S/T 256C) GEOM_LABEL[2]: Tasting da0. GEOM_LABEL[1]: MSDOSFS: da0: FAT12/16 volume not valid. GEOM_LABEL[2]: Tasting da0s1. GEOM_LABEL[1]: MSDOSFS: da0s1: FAT12/FAT16 volume detected. GEOM_LABEL[1]: Label for provider da0s1 is msdosfs/DISK_IMG. GEOM_LABEL[2]: Tasting msdosfs/DISK_IMG. GEOM_LABEL[2]: Tasting msdosfs/DISK_IMGs4. GEOM_LABEL[1]: Label msdosfs/DISK_IMG removed. >Release-Note: >Audit-Trail: >Unformatted: