Date: Mon, 27 Jan 2003 17:00:51 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Morten Rodal <morten@rodal.no> Cc: current@FreeBSD.org Subject: Re: panic in fork() on SMP 5.0-RELEASE Message-ID: <XFMail.20030127170051.jhb@FreeBSD.org> In-Reply-To: <20030127203644.GA58135@slurp.rodal.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030127170051.jhb>