From owner-freebsd-questions Fri Oct 1 22:16: 5 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 81B0614CD1 for ; Fri, 1 Oct 1999 22:15:54 -0700 (PDT) (envelope-from data@dreamhaven.net) Received: from data (helo=localhost) by calico.dreamhaven.net with local-esmtp (Exim 2.12 #4) id 11XHWL-0009ae-00; Fri, 1 Oct 1999 22:15:45 -0700 Date: Fri, 1 Oct 1999 22:15:45 -0700 (PDT) From: Bryce Newall To: Sheldon Hearn Cc: FreeBSD Questions List Subject: Re: segfaults on updatedb and /etc/security In-Reply-To: <35190.938765814@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 Fri, 1 Oct 1999, Sheldon Hearn wrote: > > + locate.mklocatedb -presort > > Segmentation fault > > How about that, the segfault is happening in another shell script. :-) Good point. :) Here's another set of output, this time with the changed locate.updatedb script (the segfault is near the end): + : /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/locateq26778 + 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/locateq26778/_updatedb26776 + 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 + sh -x locate.mklocatedb -presort + : /usr/libexec + export LIBEXECDIR + PATH=/usr/libexec:/bin:/usr/bin:/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 + umask 077 + : /tmp/locateq26778 + export TMPDIR + test -d /tmp/locateq26778 + mktemp -d /tmp/locateq26778/mklocateXXXXXX + TMPDIR=/tmp/locateq26778/mklocateU26782 + : locate.bigram + : locate.code + : sort + sortopt=-u -T /tmp/locateq26778/mklocateU26782 + sortcmd=sort + bigrams=/tmp/locateq26778/mklocateU26782/_mklocatedb26780.bigrams + filelist=/tmp/locateq26778/mklocateU26782/_mklocatedb26780.list + trap rm -f $bigrams $filelist; rmdir $TMPDIR 0 1 2 3 5 10 15 + [ X-presort = X-presort ] + shift + true + locate.code /tmp/locateq26778/mklocateU26782/_mklocatedb26780.bigrams Segmentation fault + locate.bigram + sort -nr + head -128 + perl -ne /^\s*[0-9]+\s(..)$/ && print $1 || exit 1 + locate -d /tmp/locateq26778/mklocateU26782/_mklocatedb26780.list / + locate -d /tmp/locateq26778/mklocateU26782/_mklocatedb26780.list / + locate.code /tmp/locateq26778/mklocateU26782/_mklocatedb26780.bigrams + exit + rm -f /tmp/locateq26778/mklocateU26782/_mklocatedb26780.bigrams /tmp/locateq26778/mklocateU26782/_mklocatedb26780.list + rmdir /tmp/locateq26778/mklocateU26782 + find /tmp/locateq26778/_updatedb26776 -size -257c -print + cat /tmp/locateq26778/_updatedb26776 + rm -f /tmp/locateq26778/_updatedb26776 + rmdir /tmp/locateq26778 ********************************************************************** * 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