Debian Bug report logs - #329876
grep runs amok

version graph

Package: grep; Maintainer for grep is Anibal Monsalve Salazar <anibal@debian.org>; Source for grep is src:grep (PTS, buildd, popcon).

Reported by: Ralf Hildebrandt <ralf.hildebrandt@charite.de>

Date: Sat, 24 Sep 2005 01:33:01 UTC

Severity: serious

Found in version grep/2.5.1.ds1-6

Fixed in version grep/2.5.1.ds2-1

Done: Anibal Monsalve Salazar <anibal@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#329876; Package grep. (full text, mbox, link).


Acknowledgement sent to Ralf Hildebrandt <ralf.hildebrandt@charite.de>:
New Bug report received and forwarded. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Ralf Hildebrandt <ralf.hildebrandt@charite.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grep runs amok
Date: Sat, 24 Sep 2005 03:28:01 +0200
Package: grep
Version: 2.5.1.ds1-6
Severity: normal


Today, I updated grep.
After that I found that grep, which is called from my .procmailrc, was
hogging the cpu.

A look at the procmail.log showed:

procmail: Forcing lock on "blacklist.lock"
procmail: Forcing lock on "blacklist.lock"
procmail: Forcing lock on "blacklist.lock"
procmail: Timeout, terminating " $FORMAIL -x from: -x sender: | $GREP -iqFwf $BLACKLIST"

And yes, top and ps showed a lot of exactly these grep processes hogging the CPU.
I examined the $BLACKLIST file and found it to be unchanged from it's
October 2004 content. It contained exactly one byte. I guess a <CR>.

I removed the file and recreated it with touch and didn't get any
problems with grep after that.

The old package from testing did not expose that behaviour, so I guess
one of these must be the culprit:

* 64-egf-speedup.patch, 65-dfa-optional.patch, 66-match_icase.patch,
  67-w.patch speed up grep. Thanks to Nicolas François
     
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc6-git3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages grep depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an

grep recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#329876; Package grep. (full text, mbox, link).


Acknowledgement sent to Ralf Hildebrandt <ralf.hildebrandt@charite.de>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #10 received at 329876@bugs.debian.org (full text, mbox, reply):

From: Ralf Hildebrandt <ralf.hildebrandt@charite.de>
To: Debian Bug Tracking System <329876@bugs.debian.org>
Subject: grep: Got some test case for you here
Date: Sat, 24 Sep 2005 13:59:34 +0200
[Message part 1 (text/plain, inline)]
Package: grep
Version: 2.5.1.ds1-6
Followup-For: Bug #329876


$ echo foobar | /bin/grep -iqFwf \
blacklist.broken

never returns

$ echo foobar | /bin/grep -iqFwf \
blacklist        

works OK. I'm attaching blacklist.broken and blacklist for you

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc6-git3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages grep depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an

grep recommends no packages.

-- no debconf information
[blacklist (application/x-empty, attachment)]
[blacklist.broken (application/octet-stream, attachment)]

Severity set to `important'. Request was from Ralf Hildebrandt <Ralf.Hildebrandt@charite.de> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#329876; Package grep. (full text, mbox, link).


Acknowledgement sent to Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #17 received at 329876@bugs.debian.org (full text, mbox, reply):

From: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>
To: 329876@bugs.debian.org
Subject: Simplified testcase
Date: Sun, 25 Sep 2005 10:28:02 +0200
$ echo foobar | /bin/grep -Fwf blacklist        

also never terminates -- I dropped options until I found the minimum set
of options to expose that behaviour



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#329876; Package grep. (full text, mbox, link).


Acknowledgement sent to Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #22 received at 329876@bugs.debian.org (full text, mbox, reply):

From: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>
To: 329876@bugs.debian.org
Subject: 64-egf-speedup.patch causes this
Date: Sun, 25 Sep 2005 10:53:23 +0200
I rebuild grep without all patches with numbers greater than 64
(64-egf-speedup.patch is the last one included) and found that
64-egf-speedup.patch seems to cause the breakage.



Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#329876; Package grep. (full text, mbox, link).


Acknowledgement sent to Aníbal Monsalve Salazar <anibal@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>. (full text, mbox, link).


Message #27 received at 329876@bugs.debian.org (full text, mbox, reply):

From: Aníbal Monsalve Salazar <anibal@debian.org>
To: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>, 329876@bugs.debian.org
Subject: Re: Bug#329876: 64-egf-speedup.patch causes this
Date: Sun, 25 Sep 2005 19:12:10 +1000
[Message part 1 (text/plain, inline)]
On Sun, Sep 25, 2005 at 10:53:23AM +0200, Ralf Hildebrandt wrote:
>I rebuild grep without all patches with numbers greater than 64
>(64-egf-speedup.patch is the last one included) and found that
>64-egf-speedup.patch seems to cause the breakage.

Ralf,

Thank you very much.

I'll remove the patch, test the new grep before uploading a new
package.

Mit freundlichen Grüßen,

Anibal Monsalve Salazar
--
 .''`. Debian GNU/Linux
: :' : Free Operating System
`. `'  http://debian.org/
  `-   http://v7w.com/anibal
[signature.asc (application/pgp-signature, inline)]

Severity set to `serious'. Request was from Aníbal Monsalve Salazar <anibal@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Anibal Monsalve Salazar <anibal@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Ralf Hildebrandt <ralf.hildebrandt@charite.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #34 received at 329876-close@bugs.debian.org (full text, mbox, reply):

From: Anibal Monsalve Salazar <anibal@debian.org>
To: 329876-close@bugs.debian.org
Subject: Bug#329876: fixed in grep 2.5.1.ds2-1
Date: Mon, 26 Sep 2005 05:47:06 -0700
Source: grep
Source-Version: 2.5.1.ds2-1

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:

grep_2.5.1.ds2-1.diff.gz
  to pool/main/g/grep/grep_2.5.1.ds2-1.diff.gz
grep_2.5.1.ds2-1.dsc
  to pool/main/g/grep/grep_2.5.1.ds2-1.dsc
grep_2.5.1.ds2-1_i386.deb
  to pool/main/g/grep/grep_2.5.1.ds2-1_i386.deb
grep_2.5.1.ds2-1_sparc.deb
  to pool/main/g/grep/grep_2.5.1.ds2-1_sparc.deb
grep_2.5.1.ds2.orig.tar.gz
  to pool/main/g/grep/grep_2.5.1.ds2.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 329876@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anibal Monsalve Salazar <anibal@debian.org> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 26 Sep 2005 22:17:50 +1000
Source: grep
Binary: grep
Architecture: source i386 sparc
Version: 2.5.1.ds2-1
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Changed-By: Anibal Monsalve Salazar <anibal@debian.org>
Description: 
 grep       - GNU grep, egrep and fgrep
Closes: 281647 329876
Changes: 
 grep (2.5.1.ds2-1) unstable; urgency=low
 .
   * Removed 64-egf-speedup.patch, 65-dfa-optional.patch,
     66-match_icase.patch and 67-w.patch from debian/patches,
     closes: #329876.
   * Removed grep.texi from upstream tarball, 50-rgrep-info.patch and
     51-dircategory-info.patch from debian/patches, the GNU Free
     Documentation License from debian/copyright and debian/fdl.txt,
     closes: #281647.
   * Fixed FSF postal address in debian/copyright.
   * Fixed override disparity found in suite unstable:
     grep: override says utils-required, .deb says base-required.
Files: 
 567dc20839ece27f4cf548cf48c5d636 660 utils required grep_2.5.1.ds2-1.dsc
 9ba5077ccadbaab8662de44390d65f3d 659872 utils required grep_2.5.1.ds2.orig.tar.gz
 8701f73273595a66ea8419bf55b17d64 14469 utils required grep_2.5.1.ds2-1.diff.gz
 5e8f9cdc12c3bb9d33cf74a9078d124d 137102 utils required grep_2.5.1.ds2-1_i386.deb
 50d3025d33620fad0b2cd108f630180f 138322 utils required grep_2.5.1.ds2-1_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDN+sBgY5NIXPNpFURAm5FAJwJHxfGBMXI3sU/W4f65j/HXFTa8gCgmqlq
6/iXvRoByugagsA3uzAX/54=
=e+bs
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 26 Jun 2007 14:39:26 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 19:13:41 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.