Package: grep
Version: 2.6.3-3
Severity: important

How to reproduce this issue:

% seq 10000 > /tmp/test-grep.txt
% LANG=C /usr/bin/time grep . /tmp/test-grep.txt > /dev/null
0.00user 0.00system 0:00.01elapsed 66%CPU (0avgtext+0avgdata 2816maxresident)k
0inputs+0outputs (0major+229minor)pagefaults 0swaps
% LANG=en_US.UTF-8 /usr/bin/time grep . /tmp/test-grep.txt > /dev/null 
7.53user 0.00system 0:07.54elapsed 99%CPU (0avgtext+0avgdata 3936maxresident)k
0inputs+8outputs (0major+331minor)pagefaults 0swaps

FWIW, this also happens with "LANG=C" and "LC_CTYPE=de_AT.UTF-8".

I've checked with upstream grep 2.7, and it appears that this issue is
fixed there. I also tested with lenny's version (2.5.3), and it
doesn't exhibit the issue as well.

This bug also potentially affects other packages that use "grep ." to
check for empty lines, such as "fwanalog" which takes a ridiculously
long time to run its daily cron job. I therefore would really like to
see this bug fixed for squeeze.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages grep depends on:
ii  dpkg                      1.15.8.5       Debian package management system
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in 
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib

grep recommends no packages.

Versions of packages grep suggests:
ii  libpcre3                      8.02-1.1   Perl 5 Compatible Regular Expressi

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to