Bug#736198: undeterministic output when running egrep repeatedly with the same input

2014-01-21 Thread Robert Millan
reassign 736198 kfreebsd-image-9.0-2-amd64 thanks Hi! On 21/01/2014 04:24, Steven Chamberlain wrote: Bug is probably with kfreebsd-9 before 9.1, returning a wrong result to lseek (fd, cur, SEEK_HOLE), which is used since grep 2.13: * Noteworthy changes in release 2.13 (2012-07-04) [stable]

Bug#736198: undeterministic output when running egrep repeatedly with the same input

2014-01-20 Thread Robert Millan
Package: grep Version: 2.15-2 File: /bin/egrep Severity: grave User: debian-...@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

Bug#736198: undeterministic output when running egrep repeatedly with the same input

2014-01-20 Thread Robert Millan
On 20/01/2014 23:12, Robert Millan wrote: $ 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 Interestingly, when the receiving end of

Bug#736198: undeterministic output when running egrep repeatedly with the same input

2014-01-20 Thread Steven Chamberlain
Bug is probably with kfreebsd-9 before 9.1, returning a wrong result to lseek (fd, cur, SEEK_HOLE), which is used since grep 2.13: * Noteworthy changes in release 2.13 (2012-07-04) [stable] ** New features 'grep' without -z now treats a sparse file as binary, if it can easily determine