From owner-freebsd-questions Thu Oct 7 12:52:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (Postfix) with ESMTP id 2C77E1512E for ; Thu, 7 Oct 1999 12:52:25 -0700 (PDT) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2448.0) id <4CMXDCQF>; Thu, 7 Oct 1999 15:51:46 -0400 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105CD6@site2s1> From: Christopher Michaels To: 'Bryce Newall' , Sheldon Hearn Cc: FreeBSD Questions List Subject: RE: segfaults on updatedb and /etc/security Date: Thu, 7 Oct 1999 15:54:41 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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