From owner-cvs-src@FreeBSD.ORG Mon Apr 21 07:02:47 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5358137B401; Mon, 21 Apr 2003 07:02:47 -0700 (PDT) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C77143FBD; Mon, 21 Apr 2003 07:02:44 -0700 (PDT) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.nectar.cc (Postfix) with ESMTP id E9B7650; Mon, 21 Apr 2003 09:02:43 -0500 (CDT) Received: by madman.celabo.org (Postfix, from userid 1001) id 3BDA278C66; Mon, 21 Apr 2003 09:02:43 -0500 (CDT) Date: Mon, 21 Apr 2003 09:02:43 -0500 From: "Jacques A. Vidrine" To: "Andrey A. Chernov" Message-ID: <20030421140243.GG61593@madman.celabo.org> References: <20030421135607.GA27185@nagual.pp.ru> <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> <20030421134426.GA27011@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030421135607.GA27185@nagual.pp.ru> <20030421134426.GA27011@nagual.pp.ru> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.3i-ja.1 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-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 14:02:47 -0000 On Mon, Apr 21, 2003 at 05:44:26PM +0400, Andrey A. Chernov wrote: > 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 () OK, now the question is, what happened to st->exclude? :-) Say, what is the output of `ldd /path/to/indexer' ? Could it be that mnogosearch is linked with some alternative DB implementation, and that is being invoked when dbopen() is called from libc? On Mon, Apr 21, 2003 at 05:56:07PM +0400, Andrey A. Chernov wrote: > BTW, by quick looking I not see any place where st->exclude initialized to > NULL, it means garbadge is there. The entire `struct compat_state st' structure is initialized to zeros when allocated via calloc, so that's not it. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se