From root@vaio.virtual-estates.net  Sun Dec 12 03:58:36 2004
Return-Path: <root@vaio.virtual-estates.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BCBA716A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Dec 2004 03:58:36 +0000 (GMT)
Received: from out011.verizon.net (out011pub.verizon.net [206.46.170.135])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2486C43D41
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Dec 2004 03:58:36 +0000 (GMT)
	(envelope-from root@vaio.virtual-estates.net)
Received: from corbulon.video-collage.com ([151.204.231.237])
          by out011.verizon.net
          (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP
          id <20041212035835.WCXV4717.out011.verizon.net@corbulon.video-collage.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sat, 11 Dec 2004 21:58:35 -0600
Received: from vaio.virtual-estates.net (aldan.algebra.com [216.254.65.224])
	by corbulon.video-collage.com (8.13.1/8.13.1) with ESMTP id iBC3wP03026293
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Dec 2004 22:58:26 -0500 (EST)
	(envelope-from root@vaio.virtual-estates.net)
Received: from vaio.virtual-estates.net (localhost [127.0.0.1])
	by vaio.virtual-estates.net (8.13.1/8.12.11) with ESMTP id iBC3u6xS000950
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Dec 2004 22:56:06 -0500 (EST)
	(envelope-from root@vaio.virtual-estates.net)
Received: (from root@localhost)
	by vaio.virtual-estates.net (8.13.1/8.12.11/Submit) id iBC3u6Xi000949;
	Sat, 11 Dec 2004 22:56:06 -0500 (EST)
	(envelope-from root)
Message-Id: <200412120356.iBC3u6Xi000949@vaio.virtual-estates.net>
Date: Sat, 11 Dec 2004 22:56:06 -0500 (EST)
From: Mikhail Teterin <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: cdparanoia torture wedges CD-drive and PANICS kernel
X-Send-Pr-Version: 3.113
X-GNATS-Notify: sos@FreeBSD.org

>Number:         74968
>Category:       kern
>Synopsis:       cdparanoia torture wedges CD-drive and PANICS kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 12 04:00:53 GMT 2004
>Closed-Date:    Mon Dec 25 11:38:08 GMT 2006
>Last-Modified:  Mon Dec 25 11:38:08 GMT 2006
>Originator:     Charlie &
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD 5.3-STABLE FreeBSD 5.3-STABLE #2: Sat Nov 13 12:01:22 EST 2004 i386

atapci0: <Intel ICH4 UDMA100 controller> port 0x1810-0x181f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0x1810
ata0: channel #0 on atapci0
atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0
atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6
ata0: reset tp1 mask=03 ostat0=50 ostat1=00
ata0-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00
ata0-slave:  stat=0x00 err=0x01 lsb=0x00 msb=0x00
ata0: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ata0: [MPSAFE]
ata1: channel #1 on atapci0
atapci0: Reserved 0x8 bytes for rid 0x18 type 4 at 0x170
atapci0: Reserved 0x1 bytes for rid 0x1c type 4 at 0x376
ata1: reset tp1 mask=03 ostat0=50 ostat1=00
ata1-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1-slave:  stat=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1: reset tp2 stat0=00 stat1=00 devices=0xc<ATAPI_SLAVE,ATAPI_MASTER>
ata1: [MPSAFE]
ata: ata0 already exists; skipping it
ata: ata1 already exists; skipping it
ata0-master: pio=0x0c wdma=0x22 udma=0x45 cable=80pin
ata0-master: setting PIO4 on Intel ICH4 chip
ata0-master: setting UDMA100 on Intel ICH4 chip
ad0: <HITACHI DK13FA-40/00MCA0A4> ATA-5 disk at ata0-master
ata1: reiniting channel ..
ata1: reset tp1 mask=03 ostat0=00 ostat1=00
ata1-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1-slave:  stat=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1: reset tp2 stat0=00 stat1=00 devices=0xc<ATAPI_SLAVE,ATAPI_MASTER>
ata1: resetting done ..
ata1: reiniting channel ..
ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
ata1: reiniting channel ..
ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
ata1-master: pio=0x0c wdma=0x22 udma=0x42 cable=40pin
ata1-master: setting PIO4 on Intel ICH4 chip
ata1-master: setting UDMA33 on Intel ICH4 chip
ata1: device config done ..
ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
ata1-master: pio=0x0c wdma=0x22 udma=0x42 cable=40pin
ata1-master: setting PIO4 on Intel ICH4 chip
ata1-master: setting UDMA33 on Intel ICH4 chip
acd0: <UJDA755 DVD/CDRW/1.00> CDRW drive at ata1 as master
acd0: read 4134KB/s (4134KB/s) write 4134KB/s (4134KB/s), 2048KB buffer, UDMA33
acd0: Reads: CDR, CDRW, CDDA stream, DVDROM, DVDR, DVDRAM, packet
acd0: Writes: CDR, CDRW, test write, burnproof
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray, unlocked
acd0: Medium: CD-ROM 120mm audio disc

>Description:
	I have an oldish CD, with a particularly bad last track.
	It takes cdparanoia many hours to move through it and it
	never finishes. Two thirds through the track something
	happens and the ata driver "loses" the CD. This is promptly
	followed by a panic with g_event being the "current process".

	I'm not blaming anybody for being unable to read a bad CD.
	But the panic is not the reaction :-(

>How-To-Repeat:
	This happened twice with the same track on the same CD
	already. Apparently, some aspect of device-losing is not
	safe.

>Fix:
>Release-Note:
>Audit-Trail:

From: "Simon L. Nielsen" <simon@FreeBSD.org>
To: Mikhail Teterin <mi@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/74968: cdparanoia torture wedges CD-drive and PANICS kernel
Date: Sun, 12 Dec 2004 12:21:09 +0100

 --1LKvkjL3sHcu1TtY
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2004.12.11 22:56:06 -0500, Mikhail Teterin wrote:
 
 > 	I have an oldish CD, with a particularly bad last track.
 > 	It takes cdparanoia many hours to move through it and it
 > 	never finishes. Two thirds through the track something
 > 	happens and the ata driver "loses" the CD. This is promptly
 > 	followed by a panic with g_event being the "current process".
 
 Could you please obtain a back trace of the panic as described in the
 Developers Handbook?  Otherwise it's more or less impossible for
 anyone to figure out what's going wrong.
 
 --=20
 Simon L. Nielsen
 
 --1LKvkjL3sHcu1TtY
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iD8DBQFBvCmkh9pcDSc1mlERAicsAKCltLIxrHZcLgg6RIpO75gcnNpk5QCeJAGr
 FxkCNbnoxy+b9fAk0MZxq7Y=
 =KvTj
 -----END PGP SIGNATURE-----
 
 --1LKvkjL3sHcu1TtY--

From: "Simon L. Nielsen" <simon@FreeBSD.org>
To: Mikhail Teterin <mi@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/74968: cdparanoia torture wedges CD-drive and PANICS kernel
Date: Sun, 12 Dec 2004 12:21:09 +0100

 --1LKvkjL3sHcu1TtY
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2004.12.11 22:56:06 -0500, Mikhail Teterin wrote:
 
 > 	I have an oldish CD, with a particularly bad last track.
 > 	It takes cdparanoia many hours to move through it and it
 > 	never finishes. Two thirds through the track something
 > 	happens and the ata driver "loses" the CD. This is promptly
 > 	followed by a panic with g_event being the "current process".
 
 Could you please obtain a back trace of the panic as described in the
 Developers Handbook?  Otherwise it's more or less impossible for
 anyone to figure out what's going wrong.
 
 --=20
 Simon L. Nielsen
 
 --1LKvkjL3sHcu1TtY
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iD8DBQFBvCmkh9pcDSc1mlERAicsAKCltLIxrHZcLgg6RIpO75gcnNpk5QCeJAGr
 FxkCNbnoxy+b9fAk0MZxq7Y=
 =KvTj
 -----END PGP SIGNATURE-----
 
 --1LKvkjL3sHcu1TtY--

From: Mikhail Teterin <mi@corbulon.video-collage.com>
To: simon@FreeBSD.org (Simon L. Nielsen)
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/74968: cdparanoia torture wedges CD-drive and PANICS kernel
Date: Sun, 12 Dec 2004 16:24:06 -0500 (EST)

 > On 2004.12.11 22:56:06 -0500, Mikhail Teterin wrote:
  
 > >  I have an oldish CD, with a particularly bad last track. It takes
 > >  cdparanoia many hours to move through it and it never finishes.
 > >  Two thirds through the track something happens and the ata driver
 > >  "loses" the CD. This is promptly followed by a panic with g_event
 > >  being the "current process".
 
 > Could you please obtain a back trace of the panic as described in the
 > Developers Handbook? Otherwise it's more or less impossible for anyone
 > to figure out what's going wrong.
 
 I've rebuilt the kernel with 5.x as of this morning and the problem
 appears gone. The track still generates plenty of errors, but the acd0
 devices no longer gets "lost" in the middle.
 
 I know, that backtraces are usually useful, but expected Soren to just
 figure it out by himself :-) There was, probably, a race there, which
 must've been closed since my previous kernel was built.
 
 If cdparanoia finishes chewing on this track without panicing the kernel
 again, I suppose, this PR can be closed. Yours,
 
 	-mi
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 11:38:06 UTC 2006 
State-Changed-Why:  
The submitter mentions that 5.x no longer has this problem. Thanks for 
the report ! 

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