From owner-cvs-all@FreeBSD.ORG Wed Apr 7 23:37:01 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8339E16A4D0; Wed, 7 Apr 2004 23:37:01 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5874C43D4C; Wed, 7 Apr 2004 23:37:01 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i386b1Ge069788; Wed, 7 Apr 2004 23:37:01 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i386b0ge069787; Wed, 7 Apr 2004 23:37:00 -0700 (PDT) (envelope-from marcel) Message-Id: <200404080637.i386b0ge069787@repoman.freebsd.org> From: Marcel Moolenaar Date: Wed, 7 Apr 2004 23:37:00 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern imgact_elf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 06:37:01 -0000 marcel 2004/04/07 23:37:00 PDT FreeBSD src repository Modified files: sys/kern imgact_elf.c Log: Do not assume that the initial thread (i.e. the thread with the ID equal to the process ID) is still present when we dump a core. It already may have been destroyed. In that case we would end up dereferencing a NULL pointer, so specifically test for that as well. Reported & tested by: Dan Nelson Revision Changes Path 1.147 +9 -6 src/sys/kern/imgact_elf.c