Your message dated Fri, 13 Apr 2012 09:02:32 +0000
with message-id <[email protected]>
and subject line Bug#668585: fixed in grep 2.11-2
has caused the Debian Bug report #668585,
regarding grep: grep -r --exclude-dir=X segfaults
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
668585: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668585
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.11-1
Tags: patch
This version of grep introduces a segfault when run with a combination
of -r, --exclude-dir=X and no file operands, see
http://savannah.gnu.org/bugs/?35915:
,----
| $ unset GREP_OPTIONS; grep -r --exclude-dir=X .
| segmentation fault
`----
Patch follows, taken from
http://git.savannah.gnu.org/cgit/grep.git/diff/?id=12c957f786b12a4dd116f9c40a715d671d17fa16:
--8<---------------cut here---------------start------------->8---
diff --git a/src/main.c b/src/main.c
index 2f6c761..f4f1235 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1361,7 +1361,7 @@ grepdir (char const *dir, struct stats const *stats)
struct stats const *ancestor;
char *name_space;
int status = 1;
- if (excluded_directory_patterns
+ if (dir && excluded_directory_patterns
&& excluded_file_name (excluded_directory_patterns, dir))
return 1;
--8<---------------cut here---------------end--------------->8---
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.4.0-rc2-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grep depends on:
ii dpkg 1.16.2
ii install-info 4.13a.dfsg.1-9
ii libc6 2.13-27
grep recommends no packages.
Versions of packages grep suggests:
ii libpcre3 1:8.30-4
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: grep
Source-Version: 2.11-2
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.11-2.debian.tar.bz2
to main/g/grep/grep_2.11-2.debian.tar.bz2
grep_2.11-2.dsc
to main/g/grep/grep_2.11-2.dsc
grep_2.11-2_mipsel.deb
to main/g/grep/grep_2.11-2_mipsel.deb
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Anibal Monsalve Salazar <[email protected]> (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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Fri, 13 Apr 2012 18:29:01 +1000
Source: grep
Binary: grep
Architecture: source mipsel
Version: 2.11-2
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <[email protected]>
Changed-By: Anibal Monsalve Salazar <[email protected]>
Description:
grep - GNU grep, egrep and fgrep
Closes: 668585
Changes:
grep (2.11-2) unstable; urgency=low
.
* Don't segfault with -r --exclude-dir and no file operand
Add 81-668585-excluded_file_name.patch
Patch by Allan McRae
Closes: 668585
Checksums-Sha1:
7366abfb0f0bcb63b82ba97b8b2eb3fe55d8d4c3 1902 grep_2.11-2.dsc
43a83f2320c926513c4a5fa7b86c42ec85260652 12290 grep_2.11-2.debian.tar.bz2
c2558bf74a7c03bdfb831a3cfaf633a6955e0707 400618 grep_2.11-2_mipsel.deb
Checksums-Sha256:
94ed852cf313b4ddf1b60d2e1abc975b5b065936c4769a9982ac9cf442a893c0 1902
grep_2.11-2.dsc
fad1bd6b6e69c843faf0f39b8db04327df5313aa145bd9a7745da93ea3a1dfe2 12290
grep_2.11-2.debian.tar.bz2
eae68aa36ed020b182977a10ec9fe5975a6eefa01053deb27482146d245403b3 400618
grep_2.11-2_mipsel.deb
Files:
222b9ab19e38534d2635d9779f8435ce 1902 utils required grep_2.11-2.dsc
ac80cc6fcfa704de8caaf2df93322569 12290 utils required
grep_2.11-2.debian.tar.bz2
7f490c693551279fa9caf0e51f8d7945 400618 utils required grep_2.11-2_mipsel.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJPh+fpAAoJEHxWrP6UeJfY8fMP/iFt74PpWFNN3KYmQGk7Qylb
hPmPTCjV/dPBsWPTkqXO0/QeSRsM4gb7kEfBqxvqMRgsw7Latd1kXH57me4mBK7T
cz/sKmoSLYAnbcfQicJRjNxH9C8nEy1VxYpr77kyWhDKjcS/uhp7gSs4s7Bx8uYv
Dp04SpbYDK4Uf231g8ahg8P3rHKqZqYOGXNABxKi3uiN5on52omqwRAfbtqG6U2A
u6lUsKjUqC8HAWe+Jyp/1Q/dIRPtL0jGDzxNmphBxfEmYScAGYm5bTGSAcw2poMH
le9rKuPigAUtw2AJh1vXsn9xGtLW1snIetHqlvySUfWMe+Zz/kaBuoxvbtYVaCFI
kRF0olTfuy0ZTzR7LSDEkJrBWn6G4Hrci8RtodEKA5yqICr79KmUHjpyf+6Kixhr
zINbPD5wWr0oWQwDLbBVbEAy3ncfM07wqvGxb0c5Zxn0zHnP6SsjQxqE4sbJrjo7
B9hQsnUJ4LLWC+w9OwHGYsBTN3iHf+yrl/9aeEUG28BAZeoTM4xtmKpg+vQF80Gk
0PO98YDXg+2n8dgyeS7bV1PKq5axre8CcZXZdGeeoXuLEPLGfm7JygmqbVLZEC32
iaxpAuGFcqifmZ3CGdXZMJL7V2gItpzt/Xk8AF4xUnLyiOcK+8/9paIY9n5e2CUW
9TjwdTE94WzDrktob2nW
=r/7Q
-----END PGP SIGNATURE-----
--- End Message ---