grep do core.dump!!!!

2004-03-15 Thread Jorgefran
I have had troubles wheen i use the grep in any shell(bash,sh,etc...). 
All time that I use grep (ex: grep -i root /etc/passwd) , I have one 
core.dump. How I can solve this 

I am usuing FreeBSD 5.2-RELEASE

Att: Jfran

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: grep do core.dump!!!!

2004-03-15 Thread Matthew Seaman
On Mon, Mar 15, 2004 at 09:44:01AM +, Jorgefran wrote:
 I have had troubles wheen i use the grep in any shell(bash,sh,etc...). 
 All time that I use grep (ex: grep -i root /etc/passwd) , I have one 
 core.dump. How I can solve this 

If it is just grep(1) that's resulting in core dumps, then you've
probably got a corrupted copy of the /usr/bin/grep executable.  You
can simply copy a clean version from the live filesystem image on Disk
2 of the installation set, or you can run a make world cycle as
detailed in /usr/src/UPDATING and in the Handbook, which will replace
the broken executable.  

Of course the interesting question is why did the grep executable get
corrupted?  Either someone was running some buggy code as root, and it
ended up writing to /usr/bin/grep; or the install image you pulled
down was corrupted in transit or when you burnt the CD (but you should
have detected that by checking the md5 checksums) or there's some sort
of hardware problem with your harddrive and the grep program was
unlucky enough to land right on a bad spot.  I'd keep an eye on the
system in case things like this start happening again, and look
through the system logs to see if there are any relevant error
messages.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature