GNU bug report logs -
#22931
tests/split/filter.sh fails on an XFS file system
Previous Next
Reported by: Jim Meyering <jim <at> meyering.net>
Date: Mon, 7 Mar 2016 03:37:01 UTC
Severity: normal
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22931 in the body.
You can then email your comments to 22931 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#22931
; Package
coreutils
.
(Mon, 07 Mar 2016 03:37:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jim Meyering <jim <at> meyering.net>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 07 Mar 2016 03:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The split/filter.sh test would fail like this:
$ make check TESTS=tests/split/filter.sh VERBOSE=yes SUBDIRS=.
+ truncate -s9223372036854775807 zero.in
+ timeout 10 sh -c 'split --filter="head -c1 >/dev/null" -n 1 zero.in'
split: zero.in: cannot determine file size: Value too large for
defined data type
That value is 2^63-1 (nearly 8 exabytes), and split.c
explicitly handles a file of that size, because that is
the size reported for /dev/zero on GNU/Hurd systems,
according to the comment.
This fixes the test not to trigger that work-around:
[I'll update the commit log with the issue URL as soon as it's assigned]
[0001-tests-avoid-false-failure-of-split-filter.sh-on-XFS.patch (text/x-patch, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#22931
; Package
coreutils
.
(Mon, 07 Mar 2016 06:40:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 22931 <at> debbugs.gnu.org (full text, mbox):
On Sun, Mar 6, 2016 at 7:36 PM, Jim Meyering <jim <at> meyering.net> wrote:
> The split/filter.sh test would fail like this:
>
> $ make check TESTS=tests/split/filter.sh VERBOSE=yes SUBDIRS=.
> + truncate -s9223372036854775807 zero.in
> + timeout 10 sh -c 'split --filter="head -c1 >/dev/null" -n 1 zero.in'
> split: zero.in: cannot determine file size: Value too large for
> defined data type
>
> That value is 2^63-1 (nearly 8 exabytes), and split.c
> explicitly handles a file of that size, because that is
> the size reported for /dev/zero on GNU/Hurd systems,
> according to the comment.
>
> This fixes the test not to trigger that work-around:
> [I'll update the commit log with the issue URL as soon as it's assigned]
A possible addition is to #ifdef-out the offending code
in src/split.c, so that the original example works -- at least
on non-Hurd systems. One might argue that we should
make these tools work consistently across all systems,
but in a corner case like this, I have a slight preference
for keeping the usual-case code slightly cleaner, and
working with an edge-case file size like the one in this
example.
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Tue, 08 Mar 2016 21:02:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jim Meyering <jim <at> meyering.net>
:
bug acknowledged by developer.
(Tue, 08 Mar 2016 21:02:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 22931-done <at> debbugs.gnu.org (full text, mbox):
On Sun, Mar 6, 2016 at 7:36 PM, Jim Meyering <jim <at> meyering.net> wrote:
> The split/filter.sh test would fail like this:
>
> $ make check TESTS=tests/split/filter.sh VERBOSE=yes SUBDIRS=.
> + truncate -s9223372036854775807 zero.in
> + timeout 10 sh -c 'split --filter="head -c1 >/dev/null" -n 1 zero.in'
> split: zero.in: cannot determine file size: Value too large for
> defined data type
>
> That value is 2^63-1 (nearly 8 exabytes), and split.c
> explicitly handles a file of that size, because that is
> the size reported for /dev/zero on GNU/Hurd systems,
> according to the comment.
>
> This fixes the test not to trigger that work-around:
> [I'll update the commit log with the issue URL as soon as it's assigned]
No feedback, so I presume no objection.
Pushed with the mentioned commit-log addition.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 06 Apr 2016 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.