GNU bug report logs - #64123
"stat -f -c '%T' ." on alpha fails with EOVERFLOW with NFS

Previous Next

Package: coreutils;

Reported by: matoro <matoro_mailinglist_bug-coreutils <at> matoro.tk>

Date: Sat, 17 Jun 2023 08:23:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#64123: closed ("stat -f -c '%T' ." on alpha fails with
 EOVERFLOW with NFS)
Date: Tue, 20 Jun 2023 06:30:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 19 Jun 2023 23:29:06 -0700
with message-id <3cd04b41-3253-e873-6daa-bf52e3380477 <at> cs.ucla.edu>
and subject line Re: bug#64123: "stat -f -c '%T' ." on alpha fails with EOVERFLOW with NFS
has caused the debbugs.gnu.org bug report #64123,
regarding "stat -f -c '%T' ." on alpha fails with EOVERFLOW with NFS
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
64123: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64123
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: matoro <matoro_mailinglist_bug-coreutils <at> matoro.tk>
To: bug-coreutils <at> gnu.org
Subject: "stat -f -c '%T' ." on alpha fails with EOVERFLOW with NFS
Date: Fri, 16 Jun 2023 19:55:41 -0400
Hi, when running the command "stat -f -c '%T' ." on an alpha while being 
on an NFS filesystem, the command fails with EOVERFLOW.

$ stat -f -c "%T" .
stat: cannot read file system information for '.': Value too large for 
defined data type

The command does NOT fail when targeting any other filesystem type.

$ stat -f -c "%T" /
ext2/ext3

I am aware that EOVERFLOW is typically associated with 32-bit systems 
failing to hold 64-bit inodes and such.  However, alpha is a pure 64-bit 
system; there does not even exist a 32-bit version.

This is the only platform on which I have observed this behavior.  I 
also checked on all other platforms, including x86, arm, ppc, riscv, 
mips, sparc, hppa, and ia64.  No other platform exhibited this error.

I am using kernel 6.3, glibc 2.37, and coreutils 9.3.  If anybody would 
mind taking a look at this bug, I can provide direct shell access to the 
machine in question, with strace etc installed.  Thank you!


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: matoro <matoro_mailinglist_bug-coreutils <at> matoro.tk>
Cc: Pádraig Brady <P <at> draigbrady.com>,
 64123-done <at> debbugs.gnu.org
Subject: Re: bug#64123: "stat -f -c '%T' ." on alpha fails with EOVERFLOW with
 NFS
Date: Mon, 19 Jun 2023 23:29:06 -0700
On 2023-06-17 12:53, matoro via GNU coreutils Bug Reports wrote:
> Compiling with -D_FILE_OFFSET_BITS=64 fixes the problem.

Thanks for checking. I installed the following fix to coreutils:

https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=5ac7f2d281ef70500fc70211dc1f146c8666e8c1

This incorporates the following Gnulib fix:

https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=f4919b224dd1545190f35eb481f78694f2337cb1

which is derived from the following Autoconf fix:

https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=103514e40da5f20aebf83a3446452ccebe5172bb

which should cause 'configure' to #define _FILE_OFFSET_BITS to 64 on 
GNU/Linux s390x and alpha.

Closing the coreutils bug report.


This bug report was last modified 2 years and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.