Processed: Re: Bug#736198: undeterministic output when running egrep repeatedly with the same input
Processing commands for cont...@bugs.debian.org: fixed 736198 9.2-1 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input There is no source info for the package 'kfreebsd-image-9.0-2-amd64' at version '9.2-1' with architecture '' Unable to make a source version for version '9.2-1' Marked as fixed in versions 9.2-1. thanks Stopping processing here. Please contact me if you need assistance. -- 736198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736198 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#736198: undeterministic output when running egrep repeatedly with the same input
Processing commands for cont...@bugs.debian.org: notfixed 736198 9.2-1 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input There is no source info for the package 'kfreebsd-image-9.0-2-amd64' at version '9.2-1' with architecture '' Unable to make a source version for version '9.2-1' No longer marked as fixed in versions 9.2-1. notfixed 736198 9.1-3 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input There is no source info for the package 'kfreebsd-image-9.0-2-amd64' at version '9.1-3' with architecture '' Unable to make a source version for version '9.1-3' No longer marked as fixed in versions 9.1-3. notfixed 736198 kfreebsd-9/9.1-3 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input Ignoring request to alter fixed versions of bug #736198 to the same values previously set thanks Stopping processing here. Please contact me if you need assistance. -- 736198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736198 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#736198: undeterministic output when running egrep repeatedly with the same input
Processing commands for cont...@bugs.debian.org: fixed 736198 kfreebsd-9/9.1-3 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input Marked as fixed in versions kfreebsd-9/9.1-3. fixed 736198 kfreebsd-9/9.2-1 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input Marked as fixed in versions kfreebsd-9/9.2-1. thanks Stopping processing here. Please contact me if you need assistance. -- 736198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736198 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#736198: undeterministic output when running egrep repeatedly with the same input
Processing commands for cont...@bugs.debian.org: reassign 736198 kfreebsd-image-9.0-2-amd64 Bug #736198 [grep] undeterministic output when running egrep repeatedly with the same input Bug reassigned from package 'grep' to 'kfreebsd-image-9.0-2-amd64'. No longer marked as found in versions grep/2.15-2. Ignoring request to alter fixed versions of bug #736198 to the same values previously set thanks Stopping processing here. Please contact me if you need assistance. -- 736198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736198 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#736198: undeterministic output when running egrep repeatedly with the same input
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] ** New features 'grep' without -z now treats a sparse file as binary, if it can easily determine that the file is sparse. http://git.savannah.gnu.org/cgit/grep.git/commit/src/main.c?id=582cdfacf297181c2c5ffec83fd8a3c0f6562fc6 Therefore this affects grep (and probably more things) in sid chroots on wheezy host systems in conjunction with ZFS (likely true of Robert's system and mine, but not the buildds). Thanks the investigation! Yes, my mount.h is in ZFS. And my sid chroot is hosted on Wheezy. Unfortunately it isn't practical for me to change either. How about a Wheezy update then? -- Robert Millan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Bug#736198: undeterministic output when running egrep repeatedly with the same input
Processing commands for cont...@bugs.debian.org: found 736198 9.0-10+deb70.5 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input Marked as found in versions kfreebsd-9/9.0-10+deb70.5. fixed 736198 9.1-3 Bug #736198 [kfreebsd-image-9.0-2-amd64] undeterministic output when running egrep repeatedly with the same input There is no source info for the package 'kfreebsd-image-9.0-2-amd64' at version '9.1-3' with architecture '' Unable to make a source version for version '9.1-3' Marked as fixed in versions 9.1-3. thanks Stopping processing here. Please contact me if you need assistance. -- 736198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736198 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#736198: undeterministic output when running egrep repeatedly with the same input
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 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 /*- * Copyright (c) 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in the *documentation and/or other materials provided with the distribution. * 4. Neither the name of the University nor the names of its contributors *may be used to endorse or promote products derived from this software *without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)mount.h 8.21 (Berkeley) 5/20/95 * $FreeBSD$ */ #ifndef _SYS_MOUNT_H_ #define _SYS_MOUNT_H_ #include sys/ucred.h #include sys/queue.h #ifdef _KERNEL #include sys/lock.h #include sys/lockmgr.h #include sys/_mutex.h #endif /* * NOTE: When changing statfs structure, mount structure, MNT_* flags or * MNTK_* flags also update DDB show mount command in vfs_subr.c. */ typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */ /* * File identifier. * These are unique per filesystem on a single machine. */ #define MAXFIDSZ 16 struct fid { u_short fid_len; /* length of data in bytes */ u_short fid_data0; /* force longword alignment */ char fid_data[MAXFIDSZ]; /* data (variable length) */ }; /* * filesystem statistics */ #define MFSNAMELEN 16 /* length of type name including null */ #define MNAMELEN 88 /* size of on/from name bufs */ #define STATFS_VERSION 0x20030518 /* current version number */ struct statfs { uint32_t f_version; /* structure version number */ uint32_t f_type; /* type of filesystem */ uint64_t f_flags; /* copy of mount exported flags */ uint64_t f_bsize; /* filesystem fragment size */ uint64_t f_iosize; /* optimal transfer block size */ uint64_t f_blocks; /* total data blocks in filesystem */ uint64_t f_bfree; /* free blocks in filesystem */ int64_t f_bavail; /* free blocks avail to non-superuser */ uint64_t f_files; /* total file nodes in filesystem */ int64_t f_ffree; /* free nodes avail to non-superuser */ uint64_t f_syncwrites; /* count of sync writes since mount */ uint64_t f_asyncwrites; /* count of async writes since mount */ uint64_t f_syncreads; /* count of sync reads since mount */ uint64_t f_asyncreads; /* count of async reads since mount */ uint64_t f_spare[10]; /* unused spare */ uint32_t f_namemax; /* maximum filename length */ uid_t f_owner; /* user that mounted the filesystem */ fsid_t f_fsid; /* filesystem id */ char f_charspare[80]; /* spare string space */ char f_fstypename[MFSNAMELEN]; /* filesystem type name */ char f_mntfromname[MNAMELEN]; /* mounted filesystem */ char f_mntonname[MNAMELEN];/* directory on which
Bug#736198: undeterministic output when running egrep repeatedly with the same input
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 the pipe egrep writes to is not spawned in each iteration, the chance of failure is much lower (but still non-zero): $ for i in $(seq 100) ; do 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 ; done | grep MNT_RDONLY | wc -l ; done 100 100 100 100 100 100 100 99 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 99 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 -- Robert Millan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#736198: undeterministic output when running egrep repeatedly with the same input
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 that the file is sparse. http://git.savannah.gnu.org/cgit/grep.git/commit/src/main.c?id=582cdfacf297181c2c5ffec83fd8a3c0f6562fc6 Therefore this affects grep (and probably more things) in sid chroots on wheezy host systems in conjunction with ZFS (likely true of Robert's system and mine, but not the buildds). Regards, -- Steven Chamberlain ste...@pyro.eu.org -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org