GNU bug report logs - #14767
du -s reports Infinity

Previous Next

Package: coreutils;

Reported by: Marek Otahal <markotahal <at> gmail.com>

Date: Tue, 2 Jul 2013 15:44:01 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Pádraig Brady <P <at> draigBrady.com>

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 14767 in the body.
You can then email your comments to 14767 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 02 Jul 2013 15:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marek Otahal <markotahal <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 02 Jul 2013 15:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marek Otahal <markotahal <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: du -s reports Infinity
Date: Tue, 2 Jul 2013 12:35:38 +0200
[Message part 1 (text/plain, inline)]
(please CC)

Hello, I'd like to report a bug/regression in du's behavior, where it
returns Infinity (exit status 0) with the -s option.

Version:
$ yaourt -Qo /usr/bin/du
/usr/bin/du is owned by coreutils 8.21-2

Archlinux, [testing] repo.

Output:
$ du -s ~
Infinity        /home/marek

Thanks, Mark



-- 
Marek Otahal :o)
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 02 Jul 2013 16:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Marek Otahal <markotahal <at> gmail.com>
Cc: 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Tue, 02 Jul 2013 09:47:04 -0700
On 07/02/13 03:35, Marek Otahal wrote:
> $ du -s ~

What's the relevant output of 'strace du -s ~'?




Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 02 Jul 2013 20:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Marek Otahal <markotahal <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Tue, 2 Jul 2013 22:26:51 +0200
[Message part 1 (text/plain, inline)]
Ok, I tracked it down a little.

The 'Infinity' is correctly inherited from subfolders all the way up, it
boils down to a single .xml file, which claims to be 16 exabytes, it
obviously isn't :)

$file .. on the file is correct and says 'data',
$vim can open it and shows some binary... (binary in .xml?)

The FS is btrfs (with lzo compression), no failures noticed, nothing
interesting in dmesg.

Follows the strace on the offending file,
Thanks, Mark

$ du -s ~
+ du -s /home/XXXX
Infinity        /home/XXXX
++ printf '\033]0;%s@%s:%s\007' XXXX beruska '~'
[XXXX <at> beruska ~]$ set +x
+ set +x
[XXXX <at> beruska ~]$ du -s ~
Infinity        /home/XXXX
[XXXX <at> beruska ~]$ du
.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml
18014398509481976
.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml
[XXXX <at> beruska ~]$ du -h
.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml
16E
.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml
[XXXX <at> beruska ~]$ strace du
.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml
execve("/usr/bin/du", ["du", ".kde4/share/apps/kopete/logs/Jab"...], [/* 58
vars */]) = 0
brk(0)                                  = 0x20d6000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=244700, ...}) = 0
mmap(NULL, 244700, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9a442bf000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0
\33\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2035252, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9a442be000
mmap(NULL, 3852848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f9a43d2d000
mprotect(0x7f9a43ed0000, 2097152, PROT_NONE) = 0
mmap(0x7f9a440d0000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a3000) = 0x7f9a440d0000
mmap(0x7f9a440d6000, 14896, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f9a440d6000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9a442bd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9a442bc000
arch_prctl(ARCH_SET_FS, 0x7f9a442bd700) = 0
mprotect(0x7f9a440d0000, 16384, PROT_READ) = 0
mprotect(0x619000, 4096, PROT_READ)     = 0
mprotect(0x7f9a442fb000, 4096, PROT_READ) = 0
munmap(0x7f9a442bf000, 244700)          = 0
brk(0)                                  = 0x20d6000
brk(0x20f7000)                          = 0x20f7000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2215504, ...}) = 0
mmap(NULL, 2215504, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9a43b10000
close(3)                                = 0
open("/etc/mtab", O_RDONLY|O_CLOEXEC)   = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9a442fa000
read(3, "rootfs / rootfs rw 0 0\nproc /pro"..., 1024) = 1024
read(3, "odev,noexec,relatime,memory 0 0\n"..., 1024) = 1024
read(3, "s=lzo,ssd,space_cache,inode_cach"..., 1024) = 573
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7f9a442fa000, 4096)            = 0
stat("/", {st_mode=S_IFDIR|0555, st_size=202, ...}) = 0
stat("/dev", {st_mode=S_IFDIR|0755, st_size=3480, ...}) = 0
stat("/run", {st_mode=S_IFDIR|0755, st_size=700, ...}) = 0
stat("/", {st_mode=S_IFDIR|0555, st_size=202, ...}) = 0
stat("/sys/kernel/security", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/dev/shm", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=40, ...}) = 0
stat("/sys/fs/cgroup", {st_mode=S_IFDIR|0755, st_size=240, ...}) = 0
brk(0x2118000)                          = 0x2118000
stat("/sys/fs/cgroup/systemd", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/fs/pstore", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/fs/cgroup/cpuset", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/fs/cgroup/cpu,cpuacct", {st_mode=S_IFDIR|0755, st_size=0, ...})
= 0
stat("/sys/fs/cgroup/memory", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/fs/cgroup/devices", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/fs/cgroup/freezer", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
brk(0x213b000)                          = 0x213b000
stat("/sys/fs/cgroup/net_cls", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/fs/cgroup/blkio", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/proc/sys/fs/binfmt_misc", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/dev/hugepages", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=540, ...}) = 0
stat("/boot", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
brk(0x215e000)                          = 0x215e000
stat("/boot/efi", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("/var", {st_mode=S_IFDIR|0755, st_size=106, ...}) = 0
stat("/home", {st_mode=S_IFDIR|0555, st_size=40, ...}) = 0
stat("/mnt/win8", {st_mode=S_IFDIR|0755, st_size=65536, ...}) = 0
stat("/mnt/ubuntu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/mnt/store", {st_mode=S_IFDIR|0755, st_size=198, ...}) = 0
stat("/run/user/1000/gvfs", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
brk(0x2181000)                          = 0x2181000
newfstatat(AT_FDCWD,
".kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml", {st_mode=S_IFREG|0644, st_size=2576,
...}, AT_SYMLINK_NOFOLLOW) = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 13), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f9a442fa000
write(1, "18014398509481976\t.kde4/share/ap"..., 13618014398509481976
.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml
) = 136
close(1)                                = 0
munmap(0x7f9a442fa000, 4096)            = 0
close(2)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++



On Tue, Jul 2, 2013 at 6:47 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> On 07/02/13 03:35, Marek Otahal wrote:
> > $ du -s ~
>
> What's the relevant output of 'strace du -s ~'?
>



-- 
Marek Otahal :o)
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 02 Jul 2013 22:11:02 GMT) Full text and rfc822 format available.

Message #14 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Marek Otahal <markotahal <at> gmail.com>
Cc: 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Tue, 02 Jul 2013 15:10:05 -0700
On 07/02/2013 01:26 PM, Marek Otahal wrote:
> newfstatat(AT_FDCWD,
> ".kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
> /-XXXX <at> chat-facebook-com.201303.xml", {st_mode=S_IFREG|0644, st_size=2576,
> ...}, AT_SYMLINK_NOFOLLOW) = 0

This is one of the key system calls, but it's lacking
crucial details.  What does strace -v say for that syscall?
strace -v should give info about st_blksize and st_blocks.




Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 02 Jul 2013 23:17:02 GMT) Full text and rfc822 format available.

Message #17 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Marek Otahal <markotahal <at> gmail.com>
Cc: 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Wed, 03 Jul 2013 00:16:14 +0100
On 07/02/2013 09:26 PM, Marek Otahal wrote:
> Ok, I tracked it down a little.
> 
> The 'Infinity' is correctly inherited from subfolders all the way up, it
> boils down to a single .xml file, which claims to be 16 exabytes, it
> obviously isn't :)

Maybe it's file system corruption?
What does fsck say about the file system?

cheers,
Pádraig.





Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 23 Jul 2013 16:17:02 GMT) Full text and rfc822 format available.

Message #20 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Marek Otahal <markotahal <at> gmail.com>, 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Tue, 23 Jul 2013 10:15:57 -0600
tag 14767 + moreinfo
thanks

Paul Eggert wrote:
> Marek Otahal wrote:
> > newfstatat(AT_FDCWD,
> > ".kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
> > /-XXXX <at> chat-facebook-com.201303.xml", {st_mode=S_IFREG|0644, st_size=2576,
> > ...}, AT_SYMLINK_NOFOLLOW) = 0
> 
> This is one of the key system calls, but it's lacking
> crucial details.  What does strace -v say for that syscall?
> strace -v should give info about st_blksize and st_blocks.

Ping?

Bob




Added tag(s) moreinfo. Request was from Bob Proulx <bob <at> proulx.com> to control <at> debbugs.gnu.org. (Tue, 23 Jul 2013 16:17:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Tue, 23 Jul 2013 21:36:02 GMT) Full text and rfc822 format available.

Message #25 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Marek Otahal <markotahal <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Tue, 23 Jul 2013 23:35:26 +0200
[Message part 1 (text/plain, inline)]
Hi, thanks for advice and sorry for the delay, I went in wilderness off the
internet.


On Wed, Jul 3, 2013 at 12:10 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> On 07/02/2013 01:26 PM, Marek Otahal wrote:
> > newfstatat(AT_FDCWD,
> > ".kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
> > /-XXXX <at> chat-facebook-com.201303.xml", {st_mode=S_IFREG|0644,
> st_size=2576,
> > ...}, AT_SYMLINK_NOFOLLOW) = 0
>
> This is one of the key system calls, but it's lacking
> crucial details.  What does strace -v say for that syscall?
> strace -v should give info about st_blksize and st_blocks.
>
it reports:

$ strace -v du
~/.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml 2>&1  | grep newfstatat
newfstatat(AT_FDCWD,
"/home/marek/.kde4/share/apps/kopete/logs/JabberProtocol/XXXX-XXXX <at> chat-facebook-com
/-XXXX <at> chat-facebook-com.201303.xml", {st_dev=makedev(0, 40), st_ino=6369,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=100, st_blksize=4096,
st_blocks=36028797018963952, st_size=2576, st_atime=2013/03/11-21:56:17,
st_mtime=2013/03/11-21:56:17, st_ctime=2013/03/11-21:56:17},
AT_SYMLINK_NOFOLLOW) = 0

it reports lots of blocks (btw, i tried defrag in btrfs before).

Regarding running fsck, well, it's btrfs, so the fsck is not so matured
yet...what can i run for testing? Yet, no errors with the FS are
reported/observed.
..it must have been a FS corruption, a cp -a (to /tmp on tmpfs), rm, and cp
-a back cycle solved it.

$  strace -v du  ~/.kde4/share/apps/kopete/logs/JabberProtocol/....
newfstatat(AT_FDCWD, ....., {st_dev=makedev(0, 40), st_ino=569698,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=100, st_blksize=4096,
st_blocks=8, st_size=2576, st_atime=2013/03/11-21:56:17,
st_mtime=2013/03/11-21:56:17, st_ctime=2013/07/23-23:30:07},
AT_SYMLINK_NOFOLLOW) = 0

Guys, sorry for the false alarm, and thanks for guidance here!
With best regards, Mark



-- 
Marek Otahal :o)
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#14767; Package coreutils. (Wed, 24 Jul 2013 01:03:02 GMT) Full text and rfc822 format available.

Message #28 received at 14767 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Marek Otahal <markotahal <at> gmail.com>
Cc: 14767 <at> debbugs.gnu.org
Subject: Re: bug#14767: du -s reports Infinity
Date: Wed, 24 Jul 2013 02:02:30 +0100
tag 14767 notabug
close 14767
stop

Thanks for the follow up.
Pádraig.





Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Wed, 24 Jul 2013 01:03:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14767 <at> debbugs.gnu.org and Marek Otahal <markotahal <at> gmail.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Wed, 24 Jul 2013 01:03:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Aug 2013 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 307 days ago.

Previous Next


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