From owner-freebsd-questions Thu Sep 30 18:41:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from calico.dreamhaven.net (calico.dreamhaven.net [216.55.145.2]) by hub.freebsd.org (Postfix) with ESMTP id BCAEA14EA9 for ; Thu, 30 Sep 1999 18:40:16 -0700 (PDT) (envelope-from data@dreamhaven.net) Received: from data (helo=localhost) by calico.dreamhaven.net with local-esmtp (Exim 2.12 #4) id 11Wrg5-000Lwd-00; Thu, 30 Sep 1999 18:40:05 -0700 Date: Thu, 30 Sep 1999 18:40:05 -0700 (PDT) From: Bryce Newall To: Sheldon Hearn Cc: FreeBSD Questions List Subject: Re: segfaults on updatedb and /etc/security In-Reply-To: <23864.938696271@axl.noc.iafrica.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 30 Sep 1999, Sheldon Hearn wrote: > It doesn't help much to know that a shell script is segfaulting. We need > to know what exactly is happening in there. You can produce more useful > info by doing this: > > sh -x /usr/libexec/locate.updatedb Sure thing. :) Here's the result of running the script: + : /etc/locate.rc + [ -f /etc/locate.rc -a -r /etc/locate.rc ] + . /etc/locate.rc + : /usr/libexec + export LIBEXECDIR + : /tmp + export TMPDIR + mktemp -d /tmp/locateXXXXXX + TMPDIR=/tmp/locatej99085 + PATH=/usr/libexec:/bin:/usr/bin:/root/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/games:/root/bin:/bin:/usr/bin:/usr/local/bin:. + export PATH + : locate.mklocatedb + : /var/db/locate.database + : / + : /tmp /usr/tmp /var/tmp + : ufs + : find + excludes=! ( or= + excludes=! ( -fstype ufs + or=-or + excludes=! ( -fstype ufs ) -prune + excludes=! ( -fstype ufs ) -prune -or -path /tmp -prune + excludes=! ( -fstype ufs ) -prune -or -path /tmp -prune -or -path /usr/tmp -prune + excludes=! ( -fstype ufs ) -prune -or -path /tmp -prune -or -path /usr/tmp -prune -or -path /var/tmp -prune + tmp=/tmp/locatej99085/_updatedb99083 + trap rm -f $tmp; rmdir $TMPDIR 0 1 2 3 5 10 15 + find -s / ! ( -fstype ufs ) -prune -or -path /tmp -prune -or -path /usr/tmp -prune -or -path /var/tmp -prune -or -print + locate.mklocatedb -presort Segmentation fault [Is that locate.mklocatedb another script? That's what appears to be segfaulting.] + find /tmp/locatej99085/_updatedb99083 -size -257c -print + cat /tmp/locatej99085/_updatedb99083 + rm -f /tmp/locatej99085/_updatedb99083 + rmdir /tmp/locatej99085 ********************************************************************** * Bryce Newall * Email: data@dreamhaven.net * * WWW: http://www.dreamhaven.net/~data * ICQ: 461599 * * "Insanity takes its toll. Please have exact change." * ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message