From owner-freebsd-questions Tue Jun 19 17:47:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from k0r3.reflektor.cz (k0r3.reflektor.cz [212.24.129.54]) by hub.freebsd.org (Postfix) with SMTP id 9E79F37B401 for ; Tue, 19 Jun 2001 17:47:41 -0700 (PDT) (envelope-from cynic@mail.cz) Received: (qmail 19571 invoked by uid 202); 20 Jun 2001 00:47:36 -0000 Received: from unknown (HELO zvahlav.mail.cz) (212.24.143.100) by k0r3.reflektor.cz with SMTP; 20 Jun 2001 00:47:36 -0000 Message-Id: <5.1.0.14.2.20010620023743.0434e6b8@mail.cz> X-Sender: cynic@mail.cz X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 20 Jun 2001 02:55:43 +0200 To: freebsd-questions@freebsd.org From: Cynic Subject: whereis dumps core Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG anyone knows why $subject should be happening? it doesn't crash with every search, but if it fails once with a lookup for a certain file, if fails with it always. as you can see below, whereis whereis is fine, whereis bash crashes. I should note that I noticed it 10 minutes ago. I don't think it was happening before, but it just might: one of my colleagues turned the plug off this machine couple of hours ago... but fsck went fine... so? [cynic /]$ uname -a FreeBSD freepuppy.infosite.cz 4.3-RELEASE FreeBSD 4.3-RELEASE #3: Thu Jun 14 14:18:03 CEST 2001 cynic@freepuppy.local:/usr/src/sys/compile/FREEPUPPY i386 [cynic /]$ whereis bash Segmentation fault bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz [cynic /]$ whereis whereis whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz /usr/src/usr.bin/whereis [cynic /]$ whereis apxs Segmentation fault apxs: /usr/local/sbin/apxs /usr/local/man/man8/apxs.8.gz [cynic /]$ whereis bash Segmentation fault bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz [cynic /]$ whereis whereis whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz /usr/src/usr.bin/whereis ummm... looks like the FreeBSD whereis is actually a perl script, so it's perl that is dumping core. I haven't touched perl on this machine, but just in case: [cynic /]$ perl -V Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=freebsd, osvers=4.0-current, archname=i386-freebsd uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current #0: $Date$' hint=recommended, useposix=true, d_sigaction=define usethreads=undef useperlio=undef d_sfio=undef Compiler: cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release) cppflags='' ccflags ='' stdchar='char', d_stdstdio=undef, usevfork=true intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags ='-Wl,-E -lperl -lm ' libpth=/usr/lib libs=-lm -lc -lcrypt libc=, so=so, useshrplib=true, libperl=libperl.so.3 Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/lib' cccdlflags='-DPIC -fpic', lddlflags='-Wl,-E -shared -lperl -lm ' Characteristics of this binary (from libperl): Built under freebsd Compiled at Apr 21 2001 08:25:58 @INC: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message