From owner-freebsd-stable Thu Nov 15 14:11:23 2001 Delivered-To: freebsd-stable@freebsd.org Received: from emmi.physik.TU-Berlin.DE (emmi.physik.TU-Berlin.DE [130.149.160.103]) by hub.freebsd.org (Postfix) with ESMTP id 34CC837B405; Thu, 15 Nov 2001 14:11:20 -0800 (PST) Received: (from ibex@localhost) by emmi.physik.TU-Berlin.DE (8.11.6/8.11.6) id fAFMBGZ85942; Thu, 15 Nov 2001 23:11:16 +0100 (CET) (envelope-from ibex) Date: Thu, 15 Nov 2001 23:11:16 +0100 From: Dirk Froemberg To: "Kenneth D. Merry" Cc: stable@FreeBSD.ORG, phk@FreeBSD.ORG Subject: Re: kernel panic if using SCSI CDROM as root device Message-ID: <20011115231115.B84012@physik.TU-Berlin.DE> References: <20011115003027.A87962@physik.TU-Berlin.DE> <20011115120432.A18404@physik.TU-Berlin.DE> <20011115145615.A34719@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011115145615.A34719@panzer.kdm.org>; from ken@kdm.org on Thu, Nov 15, 2001 at 02:56:15PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Kenneth! On Thu, Nov 15, 2001 at 02:56:15PM -0700, Kenneth D. Merry wrote: > [...] > Can you find out what line of code in dsioctl is causing the problem? > > If you built a debug kernel, you can do the following: > > gdb -k kernel.debug > list *(dsioctl+0x42) > > That should indicate which line in dsioctl is blowing up. Yes, of course: % gdb -k kernel.debug GNU gdb 4.18 [...] (kgdb) list *(dsioctl+0x42) 0xc01b5216 is in dsioctl (/usr/src/sys/kern/subr_diskslice.c:357). 352 struct partition *pp; 353 354 slice = dkslice(dev); 355 ssp = *sspp; 356 sp = &ssp->dss_slices[slice]; 357 lp = sp->ds_label; 358 switch (cmd) { 359 360 case DIOCGDVIRGIN: 361 lp = (struct disklabel *)data; (kgdb) Regards Dirk -- Dirk Froemberg FreeBSD: The Power to Serve! http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message