Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 1999 18:40:05 -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.9909301839110.84108-100000@calico.dreamhaven.net>
In-Reply-To: <23864.938696271@axl.noc.iafrica.com>

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




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