From owner-freebsd-scsi@FreeBSD.ORG Sun May 8 20:45:18 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A476A106564A for ; Sun, 8 May 2011 20:45:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 177D98FC08 for ; Sun, 8 May 2011 20:45:17 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p48KjDuk088708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 8 May 2011 23:45:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p48KjDTg070536; Sun, 8 May 2011 23:45:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p48KjDjJ070535; Sun, 8 May 2011 23:45:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 8 May 2011 23:45:13 +0300 From: Kostik Belousov To: Joerg Wunsch Message-ID: <20110508204513.GC48734@deviant.kiev.zoral.com.ua> References: <20110508085314.GA5364@uriah.heep.sax.de> <20110508094509.GT48734@deviant.kiev.zoral.com.ua> <20110508104543.GB5364@uriah.heep.sax.de> <20110508113332.GX48734@deviant.kiev.zoral.com.ua> <20110508203634.GE5364@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OKDvWbuR4VtOam1v" Content-Disposition: inline In-Reply-To: <20110508203634.GE5364@uriah.heep.sax.de> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-scsi@freebsd.org Subject: Re: Panic when removing a SCSI device entry X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 20:45:18 -0000 --OKDvWbuR4VtOam1v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 08, 2011 at 10:36:34PM +0200, Joerg Wunsch wrote: > As Kostik Belousov wrote: >=20 > > > I could perhaps setup a serial console, so to get at least DDB > > > functioning if you'd like to see more details. ... >=20 > > Serial console is fine, I do want to see a backtrace. > > There is also "show cdev" command in ddb, that might provide some > > useful information. >=20 > OK, I'm setting up a DDB kernel right now, and attached an old laptop > as the console terminal. I also applied your suggested patch. Great. >=20 > > INVARIANTS may be also useful, since the kernel might catch the > > corruption earlier. >=20 > As INVARIANTS has a performance impact, I'd like to avoid that by now. > Let's see first whether an analysis is possible without that. If not, > would it suffice to just compile kern_conf.c with INVARIANTS? No, it is not enough to compile only kern_conf.c with INVARIANTS. Performance impact is not that huge, and definitely pays it cost for such problems. --OKDvWbuR4VtOam1v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3HANkACgkQC3+MBN1Mb4jztgCgmPIRvRmk3YbPcWxk+yPsrcCO CC4AoL8TOj7Lj1QAN/BXf1cLnOoxNEcW =KPuP -----END PGP SIGNATURE----- --OKDvWbuR4VtOam1v--