Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 1999 15:54:41 -0400 
From:      Christopher Michaels <ChrisMic@clientlogic.com>
To:        'Bryce Newall' <data@dreamhaven.net>, Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        FreeBSD Questions List <freebsd-questions@FreeBSD.ORG>
Subject:   RE: segfaults on updatedb and /etc/security
Message-ID:  <6C37EE640B78D2118D2F00A0C90FCB4401105CD6@site2s1>

next in thread | raw e-mail | index | archive | help
I don't know how helpful this will be now, but aren't segfaults listed in
the dmesg output?  Instead of having to dig through several levels of shell
scripts to find out what exactly is segfaulting.
-Chris

> -----Original Message-----
> From:	Bryce Newall [SMTP:data@dreamhaven.net]
> Sent:	Saturday, October 02, 1999 1:16 AM
> To:	Sheldon Hearn
> Cc:	FreeBSD Questions List
> Subject:	segfaults on updatedb and /etc/security
> 
> 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/b
> in:/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


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?6C37EE640B78D2118D2F00A0C90FCB4401105CD6>