Bug 110524
Summary: | egrep segfaults with specific expresson on specific file | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rik Faith <faith> | ||||
Component: | grep | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED ERRATA | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1 | CC: | nobody+pnasrat | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.5.1-20 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2003-11-21 13:12:04 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Rik Faith
2003-11-20 18:58:04 UTC
Created attachment 96116 [details]
GDB output from grep on RedHat 9
[paul@uruk down]$ rpm -q grep grep-debuginfo
grep-2.5.1-17.1
grep-debuginfo-2.5.1-17.1
Note works as expected doing: LANG=C egrep '(ld:|gcc:|:[0-9]*:|make.*Error)' World.out Found and fixed two bugs: inputwcs was getting initialized incorrectly from mb_cache->mblen_buf, not mb_cache->wcs_buf (duh) mb_cache->wcs_buf itself was not getting initialized correctly. Although the correct amount of memory was allocated, the call to memcpy forgets to multiply the size by sizeof(wchar_t) (double-duh) Fixed package is grep-2.5.1-20 (rawhide) / grep-2.5.1-17.2 (updates). An errata 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-2004-079.html |