From owner-freebsd-current Mon Jan 27 14: 0:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6571637B401 for ; Mon, 27 Jan 2003 14:00:49 -0800 (PST) Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id D317243F13 for ; Mon, 27 Jan 2003 14:00:48 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 32724 invoked from network); 27 Jan 2003 22:00:56 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 27 Jan 2003 22:00:56 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h0RM0jUT058353; Mon, 27 Jan 2003 17:00:46 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030127203644.GA58135@slurp.rodal.no> Date: Mon, 27 Jan 2003 17:00:51 -0500 (EST) From: John Baldwin To: Morten Rodal Subject: Re: panic in fork() on SMP 5.0-RELEASE Cc: current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 27-Jan-2003 Morten Rodal wrote: > On Mon, Jan 27, 2003 at 03:27:00PM -0500, John Baldwin wrote: >> Do you still have the kernel.debug from this kernel lying around? >> Can you pop gdb up on it and do 'l *0xc01bdb48' please? That is >> the instruction pointer from the fault and will give the line that >> the actual panic occurred at. >> > > (kgdb) l *0xc01bdb48 > 0xc01bdb48 is in fork1 (/usr/src/sys/kern/kern_fork.c:388). > 383 */ > 384 p2 = LIST_FIRST(&allproc); > 385 again: > 386 for (; p2 != NULL; p2 = LIST_NEXT(p2, p_list)) { > 387 PROC_LOCK(p2); > 388 while (p2->p_pid == trypid || > 389 p2->p_pgrp->pg_id == trypid || > 390 p2->p_session->s_sid == trypid) { > 391 trypid++; > 392 if (trypid >= pidchecked) { Well, that's gross. I have no idea how that could happen. Somehow p2 is NULL. But we shouldn't even be in the loop if p2 is NULL. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message