Bug 202991 - Grep with certain expressions breaks in libc
Summary: Grep with certain expressions breaks in libc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: glibc
Version: 4.4
Hardware: All
OS: Linux
medium
urgent
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL: http://rackspace.com
Whiteboard:
: 205534 206930 211449 237683 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-17 17:57 UTC by Mike Jennings
Modified: 2018-10-19 21:14 UTC (History)
9 users (show)

Fixed In Version: RHBA-2007-0210
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-01 23:03:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
file to grep through (36.53 KB, image/jpeg)
2006-08-17 17:57 UTC, Mike Jennings
no flags Details
test.c (661 bytes, text/plain)
2006-09-05 16:57 UTC, Tim Waugh
no flags Details
input (153 bytes, application/octet-stream)
2006-09-05 16:58 UTC, Tim Waugh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0210 0 normal SHIPPED_LIVE glibc bug fix update 2007-04-28 17:26:43 UTC

Description Mike Jennings 2006-08-17 17:57:41 UTC
Description of problem:
grepping for a certain term in case insensitivity mode causes a glibc error




How reproducible:

[mike@michaeljennings ~]$ grep -i "insert into" 1-walkway.jpg 
*** glibc detected *** free(): invalid next size (fast): 0x08df7898 ***
Aborted

however exporting my lang to EN_US it works

[mike@michaeljennings ~]$ export LANG="en_US"
[mike@michaeljennings ~]$ grep -i "insert into" 1-walkway.jpg

Comment 1 Mike Jennings 2006-08-17 17:57:42 UTC
Created attachment 134400 [details]
file to grep through

Comment 2 Tom Weeks 2006-08-17 20:17:29 UTC
Can anyone test this on a EL4-U4 vs non U4 system?

Tweeks

Comment 7 Daniel Riek 2006-08-29 14:31:54 UTC
The component of this request is planned to be updated in Red Hat enterprise
Linux 4.5.

This enhancement request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux maintenance release.

Product Management has requested further review of this request by Red Hat
Engineering, for potential inclusion in a Red Hat Enterprise Linux Update
release for currently deployed products.

This request is not yet committed for inclusion in an Update release. 

Comment 8 Tim Waugh 2006-09-05 16:57:50 UTC
Created attachment 135589 [details]
test.c

Here's a glibc test case.  Input file to follow.

Comment 9 Tim Waugh 2006-09-05 16:58:36 UTC
Created attachment 135590 [details]
input

Input file.

Comment 10 Tim Waugh 2006-09-05 16:59:52 UTC
Changing component to glibc.

Comment 11 Jakub Jelinek 2006-09-05 19:47:58 UTC
Reproduced (on i386 only), debugging.

Comment 12 Tim Waugh 2006-09-07 11:42:34 UTC
*** Bug 205534 has been marked as a duplicate of this bug. ***

Comment 13 Tim Waugh 2006-09-18 10:23:05 UTC
*** Bug 206930 has been marked as a duplicate of this bug. ***

Comment 19 Jakub Jelinek 2006-10-19 12:36:26 UTC
*** Bug 211449 has been marked as a duplicate of this bug. ***

Comment 22 James Olin Oden 2007-03-21 14:43:36 UTC
Would be possible to post the patch that fixed this problem.
Thanks...james

Comment 25 Jakub Jelinek 2007-04-26 15:49:59 UTC
*** Bug 237683 has been marked as a duplicate of this bug. ***

Comment 26 Red Hat Bugzilla 2007-05-01 23:03:22 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0210.html



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