Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 1999 22:15:45 -0700 (PDT)
From:      Bryce Newall <data@dreamhaven.net>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        FreeBSD Questions List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: segfaults on updatedb and /etc/security 
Message-ID:  <Pine.NEB.4.10.9910012214450.36548-100000@calico.dreamhaven.net>
In-Reply-To: <35190.938765814@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.10.9910012214450.36548-100000>