GNU bug report logs - #59821
9.1: du Aborted (corrupt filesystem)

Previous Next

Package: coreutils;

Reported by: Luke Dashjr <luke <at> dashjr.org>

Date: Sun, 4 Dec 2022 18:08:02 UTC

Severity: normal

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Luke Dashjr <luke <at> dashjr.org>
Cc: 59821 <at> debbugs.gnu.org
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
Date: Tue, 6 Dec 2022 11:08:57 -0800
On 2022-12-04 10:07, Luke Dashjr wrote:
> Version: sys-apps/coreutils-9.1-r1 (Gentoo)
> 
> Context: Linux has a long-standing bug which leads to ext4 RAM dishs (zram
> specifically) getting corrupted randomly. This manifests as various
> newfstatat calls returning -1 errno=EUCLEAN (Structure needs cleaning).
> 
> The `du` tool, when it encounters them, prints an error as expected, but later
> on aborts...
> 
> (I am not certain if the fstatat return value is related to the later abort,
> because I couldn't find a way to get gdb to break only when fstatat returns
> nonzero)

Thanks, your diagnosis looks like it's on the right track. I attempted 
to fix the bug that leads to the abort by installing the following patch 
into Gnulib:

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

and then propagating that into coreutils so that this should appear in 
the next coreutils release. Although this patch fixes two obvious bugs 
in the area, I can't easily test the patch in your situation, so please 
give it a try.




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

Previous Next


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