GNU bug report logs - #17504
bug in gzgrep?

Previous Next

Package: gzip;

Reported by: "Robert M. Lawhead" <rml <at> ucsd.edu>

Date: Fri, 16 May 2014 01:01:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17504 in the body.
You can then email your comments to 17504 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#17504; Package gzip. (Fri, 16 May 2014 01:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Robert M. Lawhead" <rml <at> ucsd.edu>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Fri, 16 May 2014 01:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Robert M. Lawhead" <rml <at> ucsd.edu>
To: bug-gzip <at> gnu.org
Cc: rml <at> ucsd.edu, bparent <at> ucsd.edu
Subject: bug in gzgrep?
Date: Thu, 15 May 2014 16:35:24 -0700
% gzgrep --version
gzgrep (gzip) 1.4
Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.

% mkdir gzgrep_test
% cd $_
% echo foo >a
% echo foo >b
% echo bar >c
%
% /usr/bin/gzgrep foo *
a:foo
b:foo

# brokeness...
% /usr/bin/gzgrep -h foo *
a:foo
b:foo

% ~/bin/gzgrep foo *
a:foo
b:foo

# fixed
% ~/bin/gzgrep -h foo *
foo
foo

# how does grep behave
% /bin/grep -h foo *
foo
foo

# The hack I made
% diff -bw /usr/bin/gzgrep /home/solaris/staff/rml/bin/gzgrep
157a158
> [[ $grep == @(*-h*) ]] && with_filename=0 && no_filename=1    # rml




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 17 May 2014 01:11:02 GMT) Full text and rfc822 format available.

Notification sent to "Robert M. Lawhead" <rml <at> ucsd.edu>:
bug acknowledged by developer. (Sat, 17 May 2014 01:11:03 GMT) Full text and rfc822 format available.

Message #10 received at 17504-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Robert M. Lawhead" <rml <at> ucsd.edu>, 17504-done <at> debbugs.gnu.org
Cc: bparent <at> ucsd.edu
Subject: Re: bug#17504: bug in gzgrep?
Date: Fri, 16 May 2014 18:09:55 -0700
Robert M. Lawhead wrote:
> % gzgrep --version
> gzgrep (gzip) 1.4

Wow, that's old.  I recall fixing that bug some time ago in the GNU 
sources.  I can't reproduce the problem on the oldest Solaris box I have 
easy access to:

$ echo foo >a
$ echo foo >b
$ echo bar >c
$ gzgrep foo *
a:foo
b:foo
$ gzgrep -h foo *
foo
foo
$ uname -srvmpi
SunOS 5.10 Generic_147440-19 sun4u sparc SUNW,Sun-Fire-280R
$ gzgrep --version | sed 1q
gzgrep (gzip) 1.5

My guess is that you need to bring your Solaris machine up-to-date, by 
installing the usual patches from Oracle.  Probably should be doing that 
anyway, as unpatched machines can be dangerous.




Information forwarded to bug-gzip <at> gnu.org:
bug#17504; Package gzip. (Sat, 17 May 2014 14:11:02 GMT) Full text and rfc822 format available.

Message #13 received at 17504-done <at> debbugs.gnu.org (full text, mbox):

From: Robert Lawhead <rml <at> ucsd.edu>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 17504-done <at> debbugs.gnu.org
Cc: bparent <at> ucsd.edu
Subject: bug in gzgrep
Date: Sat, 17 May 2014 07:10:05 -0700
Hello Paul,
    The solaris box is running fully patched 11.1.
The bug is present in Linux zgrep as well.  I can confirm that its present in
RedHat/CentOS 6.2, and ubuntu precice1 which is just a few months old.

    It looks like the version you tested is 1.5.  When was it released and where
can I get it?  Thanks.




06:48:45 rml <at> ubuntu:rml:276> mkdir zgrep_test
06:48:58 rml <at> ubuntu:rml:277> cd $_
06:49:03 rml <at> ubuntu:zgrep_test:278> echo foo>a
06:49:19 rml <at> ubuntu:zgrep_test:279> echo foo>b
06:49:28 rml <at> ubuntu:zgrep_test:280> echo bar>c
06:49:33 rml <at> ubuntu:zgrep_test:281> gzip b
06:49:47 rml <at> ubuntu:zgrep_test:282> zgrep foo *
a:foo
b.gz:foo
06:49:54 rml <at> ubuntu:zgrep_test:283> zgrep -h foo *
a:foo
b.gz:foo
06:50:01 rml <at> ubuntu:zgrep_test:284> uname -a
Linux ubuntu 3.5.0-48-generic #72~precise1-Ubuntu SMP Tue Mar 11 20:08:23 UTC
2014 i686 i686 i386 GNU/Linux


On 5/16/2014 6:09 PM, Paul Eggert wrote:
> Robert M. Lawhead wrote:
>> % gzgrep --version
>> gzgrep (gzip) 1.4
>
> Wow, that's old.  I recall fixing that bug some time ago in the GNU sources. 
> I can't reproduce the problem on the oldest Solaris box I have easy access to:
>
> $ echo foo >a
> $ echo foo >b
> $ echo bar >c
> $ gzgrep foo *
> a:foo
> b:foo
> $ gzgrep -h foo *
> foo
> foo
> $ uname -srvmpi
> SunOS 5.10 Generic_147440-19 sun4u sparc SUNW,Sun-Fire-280R
> $ gzgrep --version | sed 1q
> gzgrep (gzip) 1.5
>
> My guess is that you need to bring your Solaris machine up-to-date, by
> installing the usual patches from Oracle.  Probably should be doing that
> anyway, as unpatched machines can be dangerous.





Information forwarded to bug-gzip <at> gnu.org:
bug#17504; Package gzip. (Sat, 17 May 2014 14:15:01 GMT) Full text and rfc822 format available.

Message #16 received at 17504-done <at> debbugs.gnu.org (full text, mbox):

From: Robert Lawhead <rml <at> ucsd.edu>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 17504-done <at> debbugs.gnu.org
Cc: bparent <at> ucsd.edu
Subject: bug in gzgrep?
Date: Sat, 17 May 2014 07:14:22 -0700
[Message part 1 (text/plain, inline)]
Add Cygwin to the list...
rml <at> yosemite:z:442> zgrep --version
zgrep (gzip) 1.4

rml <at> yosemite:tmp:432> mkdir z
rml <at> yosemite:tmp:433> cd z
rml <at> yosemite:z:434> echo foo>a
rml <at> yosemite:z:435> echo foo | gzip -c >b
rml <at> yosemite:z:436> echo bar>c
rml <at> yosemite:z:437> zgrep foo *
a:foo
b:foo
rml <at> yosemite:z:438> zgrep -h foo *
a:foo
b:foo
rml <at> yosemite:z:439> uname -a
CYGWIN_NT-6.1-WOW64 yosemite 1.7.29(0.272/5/3) 2014-04-07 13:44 i686 Cygwin


On 5/16/2014 6:09 PM, Paul Eggert wrote:
> Robert M. Lawhead wrote:
>> % gzgrep --version
>> gzgrep (gzip) 1.4
>
> Wow, that's old.  I recall fixing that bug some time ago in the GNU sources. 
> I can't reproduce the problem on the oldest Solaris box I have easy access to:
>
> $ echo foo >a
> $ echo foo >b
> $ echo bar >c
> $ gzgrep foo *
> a:foo
> b:foo
> $ gzgrep -h foo *
> foo
> foo
> $ uname -srvmpi
> SunOS 5.10 Generic_147440-19 sun4u sparc SUNW,Sun-Fire-280R
> $ gzgrep --version | sed 1q
> gzgrep (gzip) 1.5
>
> My guess is that you need to bring your Solaris machine up-to-date, by
> installing the usual patches from Oracle.  Probably should be doing that
> anyway, as unpatched machines can be dangerous.

[Message part 2 (text/html, inline)]

Information forwarded to bug-gzip <at> gnu.org:
bug#17504; Package gzip. (Sat, 17 May 2014 16:08:02 GMT) Full text and rfc822 format available.

Message #19 received at 17504 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Robert Lawhead <rml <at> ucsd.edu>, 17504 <at> debbugs.gnu.org
Cc: bparent <at> ucsd.edu
Subject: Re: bug in gzgrep
Date: Sat, 17 May 2014 09:06:50 -0700
Robert Lawhead wrote:
>      The solaris box is running fully patched 11.1.

That's, odd, because on the Solaris 11.1 box I have access to, gzgrep is 
version 1.5:

$ uname -srvmpi
SunOS 5.11 11.1 i86pc i386 i86pc
$ gzgrep --version | head -1
gzgrep (gzip) 1.5

Perhaps there's some patch set your sysadmins are not installing?

> I can confirm that its present in RedHat/CentOS 6.2, and ubuntu precice1 which is just a few months old.

I'm not surprised: those releases were originally made in 2012, and 
predate gzip 1.5.  They probably don't think this bug worth fixing.

I wouldn't install gzip 1.5 (released June 2012); like gzip 1.4, it has 
known security holes (which I hope Solaris has patched).  I'd install 
gzip 1.6 (released June 2013).  Please see:

http://www.gnu.org/software/gzip/gzip.html




Information forwarded to bug-gzip <at> gnu.org:
bug#17504; Package gzip. (Sat, 17 May 2014 16:34:02 GMT) Full text and rfc822 format available.

Message #22 received at 17504 <at> debbugs.gnu.org (full text, mbox):

From: Robert Lawhead <rml <at> ucsd.edu>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 17504 <at> debbugs.gnu.org
Cc: bparent <at> ucsd.edu
Subject: Re: bug in gzgrep
Date: Sat, 17 May 2014 09:32:52 -0700
Thanks for your reply Paul.
I'm no longer involved in the maintenance of the Solaris host on which I tested,
but this is what I see...
09:17:37 rml <at> ieng9:rml:1> uname -a
SunOS ieng9.ucsd.edu 5.11 11.1 sun4v sparc sun4v Solaris
09:17:44 rml <at> ieng9:rml:2> ls -l /usr/bin/gzgrep
-r-xr-xr-x 1 root bin 6010 Apr 15  2013 /usr/bin/gzgrep
09:18:01 rml <at> ieng9:rml:3> /usr/bin/gzgrep --version
gzgrep (gzip) 1.4

Checking an unsupported (so not updated since release of 11.1) VM...
9:29:44 rml <at> sol11-1:rml:3> uname -a
SunOS sol11-1 5.11 11.1 i86pc i386 i86pc Solaris
09:29:51 rml <at> sol11-1:rml:4> /usr/bin/gzgrep --version
gzgrep (gzip) 1.4

I'll bring this to the attention of the group maintaining the OS in question.
Thanks for your work supporting FOSS.
-Bob

On 5/17/2014 9:06 AM, Paul Eggert wrote:
> Robert Lawhead wrote:
>>      The solaris box is running fully patched 11.1.
>
> That's, odd, because on the Solaris 11.1 box I have access to, gzgrep is
> version 1.5:
>
> $ uname -srvmpi
> SunOS 5.11 11.1 i86pc i386 i86pc
> $ gzgrep --version | head -1
> gzgrep (gzip) 1.5
>
> Perhaps there's some patch set your sysadmins are not installing?
>
>> I can confirm that its present in RedHat/CentOS 6.2, and ubuntu precice1
>> which is just a few months old.
>
> I'm not surprised: those releases were originally made in 2012, and predate
> gzip 1.5.  They probably don't think this bug worth fixing.
>
> I wouldn't install gzip 1.5 (released June 2012); like gzip 1.4, it has known
> security holes (which I hope Solaris has patched).  I'd install gzip 1.6
> (released June 2013).  Please see:
>
> http://www.gnu.org/software/gzip/gzip.html





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 Jun 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.