From nobody@FreeBSD.org  Sun Oct 10 18:37:39 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B9C2616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Oct 2004 18:37:39 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 953E143D31
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Oct 2004 18:37:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9AIbdiG033164
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Oct 2004 18:37:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9AIbcHM033163;
	Sun, 10 Oct 2004 18:37:38 GMT
	(envelope-from nobody)
Message-Id: <200410101837.i9AIbcHM033163@www.freebsd.org>
Date: Sun, 10 Oct 2004 18:37:38 GMT
From: Claudio Destro <o1b6@tiscali.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Panic mounting cdrom with RWCombo <SAMSUNG CDRW/DVD SM-308B/BS01>
X-Send-Pr-Version: www-2.3

>Number:         72490
>Category:       kern
>Synopsis:       Panic mounting cdrom with RWCombo <SAMSUNG CDRW/DVD SM-308B/BS01>
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 10 18:40:23 GMT 2004
>Closed-Date:    Fri Jan 18 08:14:51 UTC 2008
>Last-Modified:  Fri Jan 18 08:14:51 UTC 2008
>Originator:     Claudio Destro
>Release:        5.3-BETA7
>Organization:
>Environment:
FreeBSD vulcan 5.3-BETA7 FreeBSD 5.3-BETA7 #9: Sun Oct 10 18:04:32 CEST 2004     root@:/mnt/AC26400R/usr.obj/usr/src/sys/VULCAN  i386
>Description:
I recompiled and installed world + kernel this morning (Sun Oct 10 CEST 2004).

I mounted a data cd, unzipped one 200 Mb file, umount'd that cd, and then mounted it again getting a kernel panic.

/sbin/mount and /sbin/umount are owned by root:wheel and 'chmod +s', but I use these commands with my normal user vyger:vyger,wheel

Immediately after the "acd0: WARNING - removed from configuration" message, the kernel panics.

that's my /var/log/messages:

Oct 10 18:28:41 vulcan syslogd: kernel boot file is /boot/kernel/kernel
Oct 10 18:28:41 vulcan kernel: Copyright (c) 1992-2004 The FreeBSD Project.
Oct 10 18:28:41 vulcan kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Oct 10 18:28:41 vulcan kernel: The Regents of the University of California. All rights reserved.
Oct 10 18:28:41 vulcan kernel: FreeBSD 5.3-BETA7 #9: Sun Oct 10 18:04:32 CEST 2004
Oct 10 18:28:41 vulcan kernel: root@:/mnt/AC26400R/usr.obj/usr/src/sys/VULCAN
Oct 10 18:28:41 vulcan kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
Oct 10 18:28:41 vulcan kernel: CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU)
Oct 10 18:28:41 vulcan kernel: Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
Oct 10 18:28:41 vulcan kernel: Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
Oct 10 18:28:41 vulcan kernel: real memory  = 268419072 (255 MB)
Oct 10 18:28:41 vulcan kernel: avail memory = 253014016 (241 MB)
Oct 10 18:28:41 vulcan kernel: npx0: [FAST]
Oct 10 18:28:41 vulcan kernel: npx0: <math processor> on motherboard
Oct 10 18:28:41 vulcan kernel: npx0: INT 16 interface
Oct 10 18:28:41 vulcan kernel: acpi0: <ASUS P3B_F> on motherboard
Oct 10 18:28:41 vulcan kernel: acpi0: Power Button (fixed)
Oct 10 18:28:41 vulcan kernel: Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
Oct 10 18:28:41 vulcan kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
Oct 10 18:28:41 vulcan kernel: cpu0: <ACPI CPU (3 Cx states)> on acpi0
Oct 10 18:28:41 vulcan kernel: acpi_button0: <Power Button> on acpi0
Oct 10 18:28:41 vulcan kernel: pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
Oct 10 18:28:41 vulcan kernel: pci0: <ACPI PCI bus> on pcib0
Oct 10 18:28:41 vulcan kernel: agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe7800000-0xe7ffffff at device 0.0 on pci0
Oct 10 18:28:41 vulcan kernel: pcib1: <PCI-PCI bridge> at device 1.0 on pci0
Oct 10 18:28:41 vulcan kernel: pci1: <PCI bus> on pcib1
Oct 10 18:28:41 vulcan kernel: pci1: <display, VGA> at device 0.0 (no driver attached)
Oct 10 18:28:41 vulcan kernel: isab0: <PCI-ISA bridge> at device 4.0 on pci0
Oct 10 18:28:41 vulcan kernel: isa0: <ISA bus> on isab0
Oct 10 18:28:41 vulcan kernel: atapci0: <Intel PIIX4 UDMA33 controller> port 0xb800-0xb80f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 4.1 on pci0
Oct 10 18:28:41 vulcan kernel: ata0: channel #0 on atapci0
Oct 10 18:28:41 vulcan kernel: ata1: channel #1 on atapci0
Oct 10 18:28:41 vulcan kernel: uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xb400-0xb41f at device 4.2 on pci0
Oct 10 18:28:41 vulcan kernel: uhci0: [GIANT-LOCKED]
Oct 10 18:28:41 vulcan kernel: usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
Oct 10 18:28:41 vulcan kernel: usb0: USB revision 1.0
Oct 10 18:28:41 vulcan kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
Oct 10 18:28:41 vulcan kernel: uhub0: 2 ports with 2 removable, self powered
Oct 10 18:28:41 vulcan kernel: ums0: Microsoft Microsoft Wheel Mouse Optical, rev 1.10/1.21, addr 2, iclass 3/1
Oct 10 18:28:41 vulcan kernel: ums0: 3 buttons and Z dir.
Oct 10 18:28:41 vulcan kernel: pci0: <bridge, PCI-unknown> at device 4.3 (no driver attached)
Oct 10 18:28:41 vulcan kernel: ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0xb000-0xb0ff mem 0xde800000-0xde800fff irq 12 at device 10.0 on pci0
Oct 10 18:28:41 vulcan kernel: ahc0: [GIANT-LOCKED]
Oct 10 18:28:41 vulcan kernel: aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
Oct 10 18:28:41 vulcan kernel: fdc0: <floppy drive controller> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
Oct 10 18:28:41 vulcan kernel: fdc0: [FAST]
Oct 10 18:28:41 vulcan kernel: ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
Oct 10 18:28:41 vulcan kernel: ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
Oct 10 18:28:41 vulcan kernel: ppc0: FIFO with 16/16/9 bytes threshold
Oct 10 18:28:41 vulcan kernel: ppbus0: <Parallel port bus> on ppc0
Oct 10 18:28:41 vulcan kernel: plip0: <PLIP network interface> on ppbus0
Oct 10 18:28:41 vulcan kernel: lpt0: <Printer> on ppbus0
Oct 10 18:28:41 vulcan kernel: lpt0: Interrupt-driven port
Oct 10 18:28:41 vulcan kernel: ppi0: <Parallel I/O> on ppbus0
Oct 10 18:28:41 vulcan kernel: sio0 port 0x3f8-0x3ff irq 4 on acpi0
Oct 10 18:28:41 vulcan kernel: sio0: type 16550A
Oct 10 18:28:41 vulcan kernel: sio1 port 0x2f8-0x2ff irq 3 on acpi0
Oct 10 18:28:41 vulcan kernel: sio1: type 16550A
Oct 10 18:28:41 vulcan kernel: atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
Oct 10 18:28:41 vulcan kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Oct 10 18:28:41 vulcan kernel: kbd0 at atkbd0
Oct 10 18:28:41 vulcan kernel: atkbd0: [GIANT-LOCKED]
Oct 10 18:28:41 vulcan kernel: orm0: <ISA Option ROMs> at iomem 0xc8000-0xcc7ff,0xc0000-0xc7fff on isa0
Oct 10 18:28:41 vulcan kernel: pmtimer0 on isa0
Oct 10 18:28:41 vulcan kernel: sc0: <System console> at flags 0x100 on isa0
Oct 10 18:28:41 vulcan kernel: sc0: VGA <16 virtual consoles, flags=0x300>
Oct 10 18:28:41 vulcan kernel: vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Oct 10 18:28:41 vulcan kernel: ata2: <Generic ESDI/IDE/ATA controller> at port 0x3ee-0x3ef,0x1e8-0x1ef irq 11 on isa0
Oct 10 18:28:41 vulcan kernel: Timecounter "TSC" frequency 501138758 Hz quality 800
Oct 10 18:28:41 vulcan kernel: Timecounters tick every 10.000 msec
Oct 10 18:28:41 vulcan kernel: ipfw2 initialized, divert enabled, rule-based forwarding disabled, default to deny, logging disabled
Oct 10 18:28:41 vulcan kernel: acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
Oct 10 18:28:41 vulcan kernel: ad0: 6149MB <WDC AC26400R/15.01J55> [13328/15/63] at ata0-master UDMA33
Oct 10 18:28:41 vulcan kernel: acd0: CDRW <SAMSUNG CDRW/DVD SM-308B/BS01> at ata0-slave PIO4
Oct 10 18:28:41 vulcan kernel: ad2: 2446MB <ST52520A/840133> [4970/16/63] at ata1-master WDMA2
Oct 10 18:28:41 vulcan kernel: da0 at ahc0 bus 0 target 0 lun 0
Oct 10 18:28:41 vulcan kernel: da0: <FUJITSU MAB3045SP 0109> Fixed Direct Access SCSI-2 device
Oct 10 18:28:41 vulcan kernel: da0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled
Oct 10 18:28:41 vulcan kernel: da0: 4343MB (8895370 512 byte sectors: 255H 63S/T 553C)
Oct 10 18:28:41 vulcan kernel: Mounting root from ufs:/dev/da0s1a
Oct 10 18:29:39 vulcan kernel: cd9660: Joliet Extension (Level 3)
Oct 10 18:34:31 vulcan kernel: acd0: TIMEOUT - READ_BIG retrying (2 retries left)
Oct 10 18:34:31 vulcan kernel: acd0: unknown transfer phase
Oct 10 18:34:51 vulcan kernel: acd0: FAILURE - ATAPI_IDENTIFY timed out
Oct 10 18:34:51 vulcan kernel: acd0: timeout sending command=a1
Oct 10 18:34:51 vulcan kernel: acd0: error issueing ATAPI_IDENTIFY command
Oct 10 18:34:51 vulcan kernel: ad0: timeout sending command=ec
Oct 10 18:34:51 vulcan kernel: ad0: error issueing ATA_IDENTIFY command
Oct 10 18:34:51 vulcan kernel: ad0: timeout sending command=ec
Oct 10 18:34:51 vulcan kernel: ad0: error issueing ATA_IDENTIFY command
Oct 10 18:34:51 vulcan kernel: ad0: WARNING - removed from configuration
Oct 10 18:34:51 vulcan kernel: acd0: WARNING - removed from configuration
>How-To-Repeat:
However, I think TIMEOUTs and FAILUREs are hardware-related problem.
I was not able to reproduce the bug due to the fact that after this error I always received an I/O error mounting the same cd (I also think that the cd is not burned correctly, or - better - the rwcombo is not high quality).

hope this helps!
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Claudio Destro <o1b6@tiscali.it>
To: freebsd-gnats-submit@freebsd.org, o1b6@tiscali.it
Cc:  
Subject: Re: kern/72490: Panic mounting cdrom with RWCombo <SAMSUNG CDRW/DVD SM-308B/BS01>
Date: Mon, 11 Oct 2004 14:39:33 +0200

 the exact error returned by the kernel is ENXIO "Device not configured"
 
 I tried to "ls /cdrom" after a successful re-mount (cacheing?), and then I 
 received:
 ...
 ac0: WARNING - removed from configuration
 acd0: WARNING - removed from configuration
 ls: /cdrom: Device not configured
 $
 
 after this message the kernel panics inside g_event:
 
 Fatal trap 12: page fault while in kernel mode
 fault virtual address   = 0x0
 fault code              = supervisor read, page not present
 instruction pointer     = 0x8:0xc04cd919
 stack pointer           = 0x10:0xcbd3cb7c
 frame pointer           = 0x10:0xcbd3cb94
 code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, def32 1, gran 1
 processor eflags        = interrupt enabled, resume, IOPL = 0
 current process         = 2 (g_event)
 trap number             = 12
 
 (sorry for the mess about info)
 
 -- 
 Claudio Destro

From: Claudio Destro <o1b6@tiscali.it>
To: freebsd-gnats-submit@freebsd.org, o1b6@tiscali.it
Cc:  
Subject: Re: kern/72490: Panic mounting cdrom with RWCombo <SAMSUNG CDRW/DVD SM-308B/BS01>
Date: Fri, 15 Oct 2004 09:57:13 +0200

 Now the kernel does not panic, but "mount" does not return.
 That's the on-screen log with "boot_verbose=yes":
 
 $ mount /cdrom
 acd0: TIMEOUT - READ_BIG retrying (2 retries left)
 acd0: unknown transfer phase
 ata0: reiniting channel ..
 ata0: reset tp1 mask=03 ostat0=d0 ostat1=d0
 ad0: stat=0x50 err=0x01 lsb=0x00 msb=0x00
 acd0:  stat=0x00 err=0x01 lsb=0x14 msb=0xeb
 ata0: reset tp2 stat0=50 stat1=00 devices=0x9<ATAPI_SLAVE,ATA_MASTER>
 ata0: resetting done ..
 ata0: reiniting channel ..
 acd0: FAILURE - ATAPI_IDENTIFY timed out
 acd0: timeout sending command=a1
 acd0: error issueing ATAPI_IDENTIFY command
 ad0: timeout sending command=ec
 ad0: error issueing ATA_IDENTIFY command
 ad0: timeout sending command=ec
 ad0: error issueing ATA_IDENTIFY command
 ad0: WARNING - removed from configuration
 
 after the "ad0: WARNING - removed from configuration" message, I do not get 
 the shell prompt.
 However, pressing ^C seems to unblock "mount", but then I cannot eject the cd 
 (combo seems locked).
 Successive mounts blocks indefinitely.
 
 PS: I recompiled only the kernel with sources downloaded yesterday night 
 (CEST), and I think I do not need to recompile also the "world" (it tooks 4 
 hours...), correct? let me know otherwise.
 
 -- 
 Claudio Destro
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sun Dec 9 14:03:48 UTC 2007 
State-Changed-Why:  
Hello can you please check whether this is still the case under 
7.0-BETA4? which can be obtained through the website 
(www.freebsd.org/where.html from my head) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72490 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Fri Jan 18 08:14:49 UTC 2008 
State-Changed-Why:  
feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72490 
>Unformatted:
