Bug 140781

Summary: grep-2.5.1-31.2 update
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: grepAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: mattdm, rob
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-16 17:15:00 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:

Description Tim Waugh 2004-11-24 21:05:58 UTC
This is for:

 * correctness regressions compared to grep-2.5.1-31
 * performance regressions compared to grep-2.5.1-31
 * benchmark results
 * even a simple "installed it here and it seems to work"

Comment 1 Rob Hughes 2004-12-03 12:51:53 UTC
grep -f and fgrep fail on binary files at 
 
 read(3, "eck\0freopen\0__wuflow\0re_search\0f"..., 12288) = 12288 
 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4 
 fstat64(4, {st_mode=S_IFREG|0644, st_size=21544, ...}) = 0 
 mmap2(NULL, 21544, PROT_READ, MAP_SHARED, 4, 0) = 0xf6ddc000 
 close(4) = 0 
  
And there is sits as long as I'm willing to wait (up to an hour so 
far). Doesn't matter whether I'm root or a user. Strings file|grep 
<something> doesn't show this problem, nor does it occur on ascii 
files. 

Comment 2 Tim Waugh 2004-12-03 13:11:02 UTC
Thanks for the report.  This seems to be a regression relative to FC3.  Here is
the command line that reproduces it:

fgrep foo /bin/ex

(/bin/ex from vim-minimal-6.3.030-3)

Comment 3 Tim Waugh 2004-12-03 15:56:37 UTC
Fixed package is grep-2.5.1-31.2.  Please re-test.  Thanks!

Comment 4 Rob Hughes 2004-12-03 16:08:43 UTC
Works now. Thanks!

Comment 5 Rob Hughes 2004-12-03 16:15:41 UTC
Just wanted to mention that grep_2.5.1-40_i386.rpm from rawhide shows the same 
regression.


Comment 6 Tim Waugh 2004-12-03 16:27:29 UTC
Yes, I fixed rawhide at the same time.