Bug 205534 - grep breaking on gzip files?
Summary: grep breaking on gzip files?
Keywords:
Status: CLOSED DUPLICATE of bug 202991
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils
Version: 4.4
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-06 22:06 UTC by Jed Reynolds
Modified: 2007-11-17 01:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-07 11:42:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jed Reynolds 2006-09-06 22:06:02 UTC
Description of problem:

grep errors with:
---
 *** glibc detected *** free(): invalid next size (normal): ***
Aborted.
---
when doing recursive grep in /var/log, other places.

Version-Release number of selected component (if applicable):
Linux 2.6.9-42.0.2.ELsmp 0x86_64,
Linux 2.6.9-34.0.2.ELsmp i686

How reproducible:

Consistently on i686 and x86_64 boxes Centos4.4. Recently upgraded from CentOS
4.3 to 4.4. 
I have large /var/log directories with plenty of gzipped logs.


Steps to Reproduce:
1. cd /var/log
2. grep -ri "Check Spelling & Mumble" *
3. (or) grep -ri "Check Spelling & Mumble" *gz
  
Actual results:
Fails with:
 *** glibc detected *** free(): invalid next size (normal): ***
Aborted.

Sometimes: 
 *** glibc detected *** realloc(): invalid next size: 0x000.... ***
Aborted.

Expected results:
No failure.

Additional info:

Grepping 7GB of compressed logs on one server, grepping 4GB logs on other
server. x86_64 Server had 35M or 3G+cache ram free; i686 server had 374M ram
free, 960M+cache.

Comment 1 Tim Waugh 2006-09-07 11:42:22 UTC
Looks like a duplicate of bug #202991.

*** This bug has been marked as a duplicate of 202991 ***


Note You need to log in before you can comment on or make changes to this bug.