From owner-freebsd-stable@FreeBSD.ORG Thu Feb 22 11:37:21 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F67616A402 for ; Thu, 22 Feb 2007 11:37:21 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mx1.freebsd.org (Postfix) with ESMTP id 2992313C442 for ; Thu, 22 Feb 2007 11:37:19 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 15274 invoked from network); 22 Feb 2007 11:10:39 -0000 Received: from unknown (HELO localhost) (775067@[217.50.167.15]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 22 Feb 2007 11:10:39 -0000 Date: Thu, 22 Feb 2007 12:10:33 +0100 From: Fabian Keil To: "Petr Holub" Message-ID: <20070222121033.2697861c@localhost> In-Reply-To: <008401c75543$7ee539b0$5317fb93@KLOBOUCEK> References: <008401c75543$7ee539b0$5317fb93@KLOBOUCEK> X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.9; i386-portbld-freebsd6.2) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_cWheQhVfW=9ZN.=/f==Dhkl"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: stable@freebsd.org Subject: Re: 6.2-RELEASE panic when blanking CD-RW media X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 11:37:21 -0000 --Sig_cWheQhVfW=9ZN.=/f==Dhkl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Petr Holub" wrote: > I've encountered a deterministic kernel panic when > blanking one specific CD-RW media using cdrecord. > The kernel panic details follow and dmesg is at the end of this > email. Though I understand there's something wrong with the media, > I think it shouldn't panic the kernel either. > # kgdb /boot/kernel/kernel vmcore.9 > (kgdb) bt > #0 0xc067262e in doadump () > #1 0xc0672afe in boot () > #2 0xc0672d94 in panic () > #3 0xc0885a04 in trap_fatal () > #4 0xc088576b in trap_pfault () > #5 0xc08853a9 in trap () > #6 0xc0873a7a in calltrap () > #7 0xc04e5e2e in acd_geom_detach () > #8 0xc06388f9 in one_event () > #9 0xc06389d1 in g_run_events () > #10 0xc0639de5 in g_event_procbody () > #11 0xc065cd34 in fork_exit () > #12 0xc0873adc in fork_trampoline () > (kgdb) x 0xc067262e > 0xc04e5e2e : 0x03b0b0ff > (kgdb) q You could give the following patch a try:=20 http://www.fabiankeil.de/sourcecode/freebsd/atapi-cd.c.patch It prevents a panic if a disc drive gets "lost" without FreeBSD noticing it (for example because the firmware is buggy). See: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/99017 for details. Note that the patch simply prevents the panic, your drive will probably still be "lost" until you reboot. Fabian --Sig_cWheQhVfW=9ZN.=/f==Dhkl Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF3XotBYqIVf93VJ0RAsi9AKC0+YqvdWiPrRf3VssKRv/9SYeWEQCeNoF0 CiOD6YjlgU41ydka5X0/UZ8= =XiSO -----END PGP SIGNATURE----- --Sig_cWheQhVfW=9ZN.=/f==Dhkl--