[CentOS] Centos 4.4, grep breaking?

Jed Reynolds

lists at benrey.is-a-geek.net
Wed Sep 6 22:09:43 UTC 2006


I'm seeing grep break when I grep large numbers of gzip files in /var/log.
Posted bug on bugzilla.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205534




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.



More information about the CentOS mailing list