From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 06:20:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A21416A4CE for ; Mon, 15 Mar 2004 06:20:43 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4805A43D1D for ; Mon, 15 Mar 2004 06:20:42 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i2FEKZAX037204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Mar 2004 14:20:35 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2FEKZf6037203; Mon, 15 Mar 2004 14:20:35 GMT (envelope-from matthew) Date: Mon, 15 Mar 2004 14:20:34 +0000 From: Matthew Seaman To: Jorgefran Message-ID: <20040315142034.GC26079@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Jorgefran , questions@freebsd.org References: <40557AE1.2050804@prodap.ap.gov.br> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HG+GLK89HZ1zG0kk" Content-Disposition: inline In-Reply-To: <40557AE1.2050804@prodap.ap.gov.br> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,PLING_PLING autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: questions@freebsd.org Subject: Re: grep do core.dump!!!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 14:20:43 -0000 --HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 15, 2004 at 09:44:01AM +0000, Jorgefran wrote: > I have had troubles wheen i use the grep in any shell(bash,sh,etc...).=20 > All time that I use grep (ex: grep -i root /etc/passwd) , I have one=20 > 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. =20 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 --=20 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 --HG+GLK89HZ1zG0kk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAVbuydtESqEQa7a0RAmMhAJ4qdAZGVl26D9ZWVIEzsc21yTiUZgCfRTjk S5a0J9Fr6Axquj7x5pPNgio= =FFhQ -----END PGP SIGNATURE----- --HG+GLK89HZ1zG0kk--