From owner-cvs-all@FreeBSD.ORG Mon Apr 21 06:44:28 2003 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 EA5E437B401; Mon, 21 Apr 2003 06:44:28 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58BF543FA3; Mon, 21 Apr 2003 06:44:27 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.9/8.12.9) with ESMTP id h3LDiQgI027050; Mon, 21 Apr 2003 17:44:26 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.9/8.12.9/Submit) id h3LDiQ6s027049; Mon, 21 Apr 2003 17:44:26 +0400 (MSD) Date: Mon, 21 Apr 2003 17:44:26 +0400 From: "Andrey A. Chernov" To: "Jacques A. Vidrine" Message-ID: <20030421134426.GA27011@nagual.pp.ru> References: <200304181411.h3IEBH07088819@repoman.freebsd.org> <20030420141848.K631@znfgre.tberna.bet> <20030420230000.GB32112@madman.celabo.org> <20030421081209.GA17060@nagual.pp.ru> <20030421094604.GA23809@nagual.pp.ru> <20030421131512.GA49677@madman.celabo.org> <20030421132821.GA26205@nagual.pp.ru> <20030421133907.GC61593@madman.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030421133907.GC61593@madman.celabo.org> User-Agent: Mutt/1.5.4i cc: cvs-src@FreeBSD.org cc: Doug Barton cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/include pwd.h src/lib/libc/gen getpwent.c src/usr.sbin/pwd_mkdb pwd_mkdb.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: Mon, 21 Apr 2003 13:44:29 -0000 On Mon, Apr 21, 2003 at 08:39:07 -0500, Jacques A. Vidrine wrote: > > I suspect that it would be something in getpwent.c:compat_endstate > (called when a thread which uses getpw* exits), but I don't see an > obvious problem and I cannot reproduce the crash. Thanks for helping > me track it down. Your guess is right. I try to compile getpwent.c as part of application with -g and got that: Indexer[26994]: [1] Done (57 seconds) Program received signal SIGSEGV, Segmentation fault. 0x0804a97e in compat_endstate (p=0x902fce0) at getpwent.c:1383 1383 st->exclude->close(st->exclude); (gdb) bt #0 0x0804a97e in compat_endstate (p=0x902fce0) at getpwent.c:1383 #1 0x080da582 in _thread_cleanupspecific () #2 0x080e2752 in pthread_exit () #3 0x080d9b06 in _thread_start ()