Bug#736202: undeterministic output when running egrep repeatedly with the same input
Package: ktrace
Version: 10.0-1
Severity: normal
Control: block -1 by 736198
A consequence of this is that kdump builds are no longer deterministic. Sometimes
kdump will build with more "knowledge" (e.g. mount flags, ioctl names, etc) than
other times.
On 20/01/2014 23:12, Robert Millan wrote:
> Package: grep
> Version: 2.15-2
> File: /bin/egrep
> Severity: grave
> User: debian-bsd@lists.debian.org
> Usertags: kfreebsd
>
> The following command is supposed to yield a match every time (i.e.
> egrep should filter the line containing MNT_RDONLY from sys/mount.h).
>
> However, approximately 20% of the time it doesn't. This is the result
> of 100 attempts:
>
> $ for i in $(seq 100) ; do egrep '^#[[:space:]]*define[[:space:]]+MNT_[A-Z]+[[:space:]]+0x[0-9]+[[:space:]]*' /usr/src/kfreebsd-headers-10.0-1/sys/sys/mount.h | grep MNT_RDONLY | head -n 1 ; done | wc -l
> 72
>
> This is a regression from wheezy (not sure if due to grep itself or
> some libc issue).
>
> -- System Information:
> Debian Release: jessie/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: kfreebsd-amd64 (x86_64)
> Foreign Architectures: kfreebsd-i386
>
> Kernel: kFreeBSD 9.0-2-amd64
> Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages grep depends on:
> ii dpkg 1.17.5
> ii install-info 5.2.0.dfsg.1-2
> ii libc0.1 2.17-97
> ii libpcre3 1:8.31-2
>
> grep recommends no packages.
>
> grep suggests no packages.
>
> -- no debconf information
>
--
Robert Millan
Reply to: