Date: Wed, 20 Jun 2001 02:55:43 +0200 From: Cynic <cynic@mail.cz> To: freebsd-questions@freebsd.org Subject: whereis dumps core Message-ID: <5.1.0.14.2.20010620023743.0434e6b8@mail.cz>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20010620023743.0434e6b8>
