Your message dated Wed, 07 Dec 2016 17:04:21 +0000
with message-id <[email protected]>
and subject line Bug#844286: fixed in grep 2.27-1
has caused the Debian Bug report #844286,
regarding grep: Non-deterministic behavior when output redirected to /dev/null
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.)


-- 
844286: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844286
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.26-1
Severity: grave
Tags: upstream
Justification: renders package unusable

Upstream commit af6af288 causes inconsistent results when output is
redirected to /dev/null.  I'm setting this to grave because grep is a
very common glue and if its results aren't reliable, then there's lots
of unknown behavior that may exhibit from things using it.

Unfortunately, the simplest test case I've been able to find so far is a
script from neovim's source package.

$ git clone https://github.com/neovim/neovim
$ cd neovim
$ ./scripts/vim-patch.sh -l

When grep is working properly (i.e., with af6af288 reverted), this
should start printing out numbers starting around 7.4.1559.  Instead, it
is printing out numbers starting around 7.4.630.

The relevant part of the script is just looking for whether patch
numbers are applied or marked NA in neovim's src/nvim/version.c:

    is_missing="$(sed -n '/static int included_patches/,/}/p' 
"${NVIM_SOURCE_DIR}/src/nvim/version.c" |
      grep -x -e "[[:space:]]*//[[:space:]]${patch_number} NA.*" -e 
"[[:space:]]*${patch_number}," >/dev/null && echo "false" || echo "true")"

The worrisome part about this is that the behavior isn't consistent:

    $ diff -u <(flock . ./scripts/vim-patch.sh -l) <(flock . 
./scripts/vim-patch.sh -l) | diffstat
     14 |    5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    $ diff -u <(flock . ./scripts/vim-patch.sh -l) <(flock . 
./scripts/vim-patch.sh -l) | diffstat
     14 |    4 ----
     1 file changed, 4 deletions(-)

Other problems I've seen reported related to this:
- Vim's build leaves behind random files[0]
- Slackware's upgradepkg fails to remove the old package after
  upgrade[1]

[0]: https://www.mail-archive.com/[email protected]/msg42764.html
[1]: 
https://www.linuxquestions.org/questions/slackware-14/pkgtools-grep-bug-in-slackware%5B64%5D-current-4175593054/

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grep depends on:
ii  dpkg      1.18.14
ii  libc6     2.24-5
ii  libpcre3  2:8.39-2

grep recommends no packages.

Versions of packages grep suggests:
ii  libpcre3  2:8.39-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: grep
Source-Version: 2.27-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.

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.
Santiago Ruano Rincón <[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: SHA512

Format: 1.8
Date: Wed, 07 Dec 2016 17:31:23 +0100
Source: grep
Binary: grep
Architecture: source
Version: 2.27-1
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <[email protected]>
Changed-By: Santiago Ruano Rincón <[email protected]>
Description:
 grep       - GNU grep, egrep and fgrep
Closes: 831673 844286
Changes:
 grep (2.27-1) unstable; urgency=low
 .
   * New upstream release.
   * Improve documentation on context and matching lines. (Closes: #831673).
   * Fix non-deterministic behavior when output redirected to /dev/null
     (Closes: #844286).
Checksums-Sha1:
 96305779c49665612d6071740040122a3afd128d 2053 grep_2.27-1.dsc
 ac68dd7d07cd4318ef5545c29c9a37ed2e96aef6 1360388 grep_2.27.orig.tar.xz
 6ca38d141295ddba8d1b88f8c81412acc7f91f00 109032 grep_2.27-1.debian.tar.bz2
Checksums-Sha256:
 c52e8a3bdae428e786a87aa5501faac621d4d0b017cf0bc2d8f5abd866fd5aac 2053 
grep_2.27-1.dsc
 ad4cc44d23074a1c3a8baae8fbafff2a8c60f38a9a6108f985eef6fbee6dcaeb 1360388 
grep_2.27.orig.tar.xz
 1b99fff124d0a46e97fdb2f67f556d0684c0027ef6f7902f7c421b8828a3eaaa 109032 
grep_2.27-1.debian.tar.bz2
Files:
 02831f811205d0f7948265be97cc5c96 2053 utils required grep_2.27-1.dsc
 6138dd227c39d4a25f81eea76a44d4cb 1360388 utils required grep_2.27.orig.tar.xz
 a8e09d0ab0066cc8b540fc6ecd8db486 109032 utils required 
grep_2.27-1.debian.tar.bz2

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEZBjBLN3JFZ8LzvKD3m/9uMjWSL0FAlhIPb4ACgkQ3m/9uMjW
SL0u6Q/+OwRypvNUNWB1iu8BeQLXu/slPRlzpa3mYiiLS/zb34NzvI2vlx8QjXCb
uBN7/0y0H4jRFiykd+1dgx3TDZExq7uWKDcRV3AWXHYE6pNDRCfo448g8uvEfnPr
7W4OxjPJ59bEWrh+gY60aNUzMhXwoqA/dYNhRL0vwmM8EVLvIwC1ndE3e4EifXO9
XCUaOMe0qlOqiKGq96GQs6uT1EfZqp8lEmUxRriVUb4ukcQz7hIDMW1spGqXgap/
7ELzFkPiAGNVLQ4Zg0SpXv81Ofe+WY6TmK00M+9dyfi86GOU5BLtdXrU+oaeB1JK
0srfPE0ctXCd+u5HCmVqDOAdVYzdffQosxIE01wudpdw9oNKybZs8NvT6Dw4chdB
DNae7C0fiobHuCqht1Uxl9uLP8dnUYRgEUxjUBJyG/v3RNnvP1XcP7xSZff3Irqx
RlK4acnEWiZi1vVqDlAbJdRnGhC7MuEJBDJ/Vfpjv9MwGUEJpm86NACPCAaNJK1H
RsF9xkmVgkR/3ehxlRUmohOlHdPHOcml9GzXZendHN0GmnEaRHLZo9t1AyxmIHfH
X5b5OuFxxljMyWRz16uLceISiNm0HcLeWx0W5Z5bdSuZKqP/Ug3MG/Y/KzcF5FzU
yUYI3K2LoPIM0pAyqsvpwBeLS8BtdS63cVA2ViPTzHmTeQMZAhc=
=b9vG
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to