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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Luke Dashjr <luke@HIDDEN>; dated Sun, 4 Dec 2022 18:08:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 7 Dec 2022 01:59:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 20:59:40 2022
Received: from localhost ([127.0.0.1]:46505 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p2jim-0000jW-L6
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 20:59:40 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51884)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1p2jih-0000jM-TV
 for 59821 <at> debbugs.gnu.org; Tue, 06 Dec 2022 20:59:39 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9E5E2160041;
 Tue,  6 Dec 2022 17:59:28 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id csdQCxPtvP2Y; Tue,  6 Dec 2022 17:59:28 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id DE313160072;
 Tue,  6 Dec 2022 17:59:27 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu DE313160072
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1670378367;
 bh=Q7385YEuL2vlvUP1Qtak1zeMH3UUXn4w2BW4v/QmEiI=;
 h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:
 Content-Transfer-Encoding;
 b=G6tujHzRTOqrYhuSqQsnQzS9L1mGbSraK9M6F3TN1YZNDeX4VSq3i4xstCSOG9Xdz
 pjFxEqjHJ2KWg5jv7vPXVz0uciUUNyJIKzEea7H4lAa/cvOVVCvtPK5ehdB+q73AlM
 MJo2PBarNErRTiicJmVd60yHaIx0rEfMJsztu5DA=
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 7R0YdKkDTsY6; Tue,  6 Dec 2022 17:59:27 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BC364160041;
 Tue,  6 Dec 2022 17:59:27 -0800 (PST)
Message-ID: <c6e40fc3-e218-0eb9-93e6-1cbb8cc0ded9@HIDDEN>
Date: Tue, 6 Dec 2022 17:59:27 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
Content-Language: en-US
To: Luke Dashjr <luke@HIDDEN>
References: <202212041807.35441.luke@HIDDEN>
 <202212062341.17971.luke@HIDDEN>
 <c33b144b-af13-222b-d39d-762424ee44bf@HIDDEN>
 <202212070102.37576.luke@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <202212070102.37576.luke@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 12/6/22 17:02, Luke Dashjr wrote:
> That was the stack trace in the original report ;)

OK.

> newfstatat(4, "banlist.json", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
> openat(4, "banlist.json", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC|O_DIRECTORY) = 3
> newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0

Unfortunately there's not enough info here to see what's going on. Can 
you redo the trace with 'strace -v' instead of plain 'strace'?




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 7 Dec 2022 01:03:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 20:02:59 2022
Received: from localhost ([127.0.0.1]:46250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p2ipv-0000DL-Gp
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 20:02:59 -0500
Received: from zinan.dashjr.org ([192.3.11.21]:52744)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luke@HIDDEN>) id 1p2ipt-0000DF-6A
 for 59821 <at> debbugs.gnu.org; Tue, 06 Dec 2022 20:02:57 -0500
Received: from ishibashi.lan (unknown [12.151.133.18])
 (Authenticated sender: luke-jr)
 by zinan.dashjr.org (Postfix) with ESMTPSA id 62C5438AF327;
 Wed,  7 Dec 2022 01:02:39 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dashjr.org; s=zinan;
 t=1670374976; bh=MhwuAQzCzBuJ5BxN+/4g2Qa1KHsSdlUEFka1yr4MZBU=;
 h=From:To:Subject:Date:Cc:References:In-Reply-To;
 b=ZZSAzjZl4ILQdkl2dy0h2yI0zA0tHcjqtbf8wQzSxXFNlSEHJccO4b0khtjYfWOrB
 3pYMSDnANsvRNnhRHrNPfTuezJVwUZTtXU7CT3AhpUzPICv2UuqeKap7DTlMzjvJDy
 KT0W56PPpvKYgO/IPKjNqU0bu2d+YPTXQOSUXE/g=
X-Hashcash: 1:25:221207:eggert@HIDDEN::hEBPqdyPvbYbofbs:BzXX
X-Hashcash: 1:25:221207:59821 <at> debbugs.gnu.org::tMdKlMOEx8a1gGlQ:abPhM
From: Luke Dashjr <luke@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
Date: Wed, 7 Dec 2022 01:02:34 +0000
User-Agent: KMail/1.9.10
References: <202212041807.35441.luke@HIDDEN>
 <202212062341.17971.luke@HIDDEN>
 <c33b144b-af13-222b-d39d-762424ee44bf@HIDDEN>
In-Reply-To: <c33b144b-af13-222b-d39d-762424ee44bf@HIDDEN>
X-KMail-QuotePrefix: > 
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <202212070102.37576.luke@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wednesday 07 December 2022 00:35:17 Paul Eggert wrote:
> Who's calling 'abort' and why? You can use GDB to find out.

That was the stack trace in the original report ;)

Here's a `bt full`:

#0  0x00007ffff7dab80c in __pthread_kill_implementation (threadid=<optimized 
out>, signo=<optimized out>, no_tid=no_tid@entry=0) at pthread_kill.c:43
        r4 = 53233
        r7 = 140737352081264
        _arg2 = 53233
        r5 = 6
        r8 = -8070450532205924301
        _arg3 = 6
        r0 = 250
        r3 = 0
        r6 = 16384
        _arg1 = 0
        tid = 53233
        ret = <optimized out>
        pd = <optimized out>
        old_mask = {__val = {0, 0, 0, 0, 140737354077752, 140737488347360, 1, 
140737354076848, 252833149, 4294971471, 1, 140737354081904, 0, 
140737488347536, 140737354077752, 140737488347504}}
        ret = <optimized out>
#1  0x00007ffff7dab8fc in __pthread_kill_internal (threadid=<optimized out>, 
signo=<optimized out>) at pthread_kill.c:78
No locals.
#2  0x00007ffff7dab93c in __GI___pthread_kill (threadid=<optimized out>, 
signo=<optimized out>) at pthread_kill.c:89
No locals.
#3  0x00007ffff7d4b788 in __GI_raise (sig=<optimized out>) 
at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#4  0x00007ffff7d4d3dc in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x1000, sa_sigaction = 
0x1000}, sa_mask = {__val = {4295244672, 1, 4295279392, 4295238880, 264, 280, 
0, 4295239296, 4295279392, 140737488347728, 4677086835279805952, 
140737353841624, 3, 0, 41, 140737488347680}}, sa_flags = 1, sa_restorer = 
0x0}
        sigs = {__val = {32, 18446744073709551615, 4294975784, 1584, 
4294969536, 4295164360, 4294967952, 0, 1320, 140737354076848, 
140737488347632, 2, 140737353830380, 140737354104320, 140737351076432, 
140737351307904}}
#5  0x000000010000ba08 in leave_dir (fts=fts@entry=0x100042680, 
ent=ent@entry=0x10004c320) at lib/fts-cycle.c:136
        obj = {dev = 64769, ino = 1179668, fts_ent = 0x10004c320}
        found = <optimized out>
        st = 0x10004c390
#6  0x000000010000bd00 in fts_build (sp=sp@entry=0x100042680, 
type=type@entry=3) at lib/fts.c:1326
        p = <optimized out>
        head = <optimized out>
        nitems = <optimized out>
        tail = <optimized out>
        oldaddr = <optimized out>
        saved_errno = <optimized out>
        descend = <optimized out>
        doadjust = <optimized out>
        level = <optimized out>
        len = <optimized out>
        maxlen = <optimized out>
        new_len = <optimized out>
        cp = <optimized out>
        dir_fd = 3
        cur = 0x10004c320
        continue_readdir = false
        sort_by_inode = false
        max_entries = <optimized out>
#7  0x000000010000ce7c in rpl_fts_read (sp=0x100042680) at lib/fts.c:925
        p = 0x10004c320
        tmp = <optimized out>
        instr = <optimized out>
        t = <optimized out>
#8  0x0000000100004864 in du_files (files=<optimized out>, 
bit_flags=<optimized out>) at src/du.c:691
        ent = <optimized out>
        fts = 0x100042680
        ok = true
#9  0x0000000100005cfc in main (argc=<optimized out>, argv=<optimized out>) at 
src/du.c:1123
        skip_file = <optimized out>
        ai_err = AI_ERR_OK
        file_name = 
0x7fffffffedbc "/tmp/bitcoin_func_test_m00g94yx/node2/regtest/"
        cwd_only = {0x100019be0 ".", 0x0}
        max_depth_specified = <optimized out>
        ok = true
        files_from = 0x0
        bit_flags = 280
        symlink_deref_bits = <optimized out>
        opt_summarize_only = <optimized out>
        ai = 0x1000424e0
        temp_argv = 
{0x7fffffffedbc "/tmp/bitcoin_func_test_m00g94yx/node2/regtest/", 0x0}
        __PRETTY_FUNCTION__ = "main"




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 7 Dec 2022 00:35:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 19:35:33 2022
Received: from localhost ([127.0.0.1]:46105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p2iPN-0008Mp-Kj
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 19:35:33 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43614)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1p2iPJ-0008Mh-Lj
 for 59821 <at> debbugs.gnu.org; Tue, 06 Dec 2022 19:35:32 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 16994160040;
 Tue,  6 Dec 2022 16:35:23 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id 7BXVGfzUObcc; Tue,  6 Dec 2022 16:35:22 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3173C160072;
 Tue,  6 Dec 2022 16:35:22 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 3173C160072
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1670373322;
 bh=go2wtDLq8eZoLrCGnf3Py6iB5f/IlKVKf1C3R+TNkGc=;
 h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:
 Content-Transfer-Encoding;
 b=RZTL4ial5VYXf92fTmYeyYDGAJxhXS7tjlfSXPvZI4gfnjeXyLA3oVRKgC8IrRa6j
 VAG0nJ/6001ExsV/pAQe+zECiyxrur/sVIRJsPqKVBrURGkzdPeSBH9MOdn3kdXbrB
 kGSA9pvN46EZfOahyYVyGQZM1CxohXmkHLuVz7LM=
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id eMSQ5cQIucuA; Tue,  6 Dec 2022 16:35:22 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 14CA5160040;
 Tue,  6 Dec 2022 16:35:22 -0800 (PST)
Message-ID: <c33b144b-af13-222b-d39d-762424ee44bf@HIDDEN>
Date: Tue, 6 Dec 2022 16:35:17 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
Content-Language: en-US
To: Luke Dashjr <luke@HIDDEN>
References: <202212041807.35441.luke@HIDDEN>
 <e639b4ad-862a-85c5-122a-d5d84cf96b6b@HIDDEN>
 <202212062341.17971.luke@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <202212062341.17971.luke@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

I don't see any failures in stat-like syscalls there, so it looks like 
at least the bug you mentioned has mutated (even if it hasn't been 
fixed...).

Who's calling 'abort' and why? You can use GDB to find out.




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 6 Dec 2022 23:42:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 18:42:39 2022
Received: from localhost ([127.0.0.1]:45839 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p2haB-0000zv-CX
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 18:42:39 -0500
Received: from zinan.dashjr.org ([192.3.11.21]:57832)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luke@HIDDEN>) id 1p2ha5-0000zo-Ul
 for 59821 <at> debbugs.gnu.org; Tue, 06 Dec 2022 18:42:37 -0500
Received: from ishibashi.lan (unknown [12.151.133.18])
 (Authenticated sender: luke-jr)
 by zinan.dashjr.org (Postfix) with ESMTPSA id 3889438AF330;
 Tue,  6 Dec 2022 23:41:19 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dashjr.org; s=zinan;
 t=1670370153; bh=aiK0pogQMWr9RBQ42dhuuaS5ZOOjIuQjbVqU377hW9o=;
 h=From:To:Subject:Date:Cc:References:In-Reply-To;
 b=ckqs8VyqMuXWAntuI13EIDUSx/aupBkuIrpimkdClhWJLAWBwKtmjnj50Xng5rnrS
 SWCEatUiLhUZMQvlb/KvOi8nxJslz8WuVwU0aUGwuy4SIlRpu0aMskjo3knhSI8sSZ
 6wm6zvhzXzoKOtYy5WWIVmaZf16VP/4gMszzgMjE=
X-Hashcash: 1:25:221206:eggert@HIDDEN::sbGzBK6GgWCJks=j:csJ6C
X-Hashcash: 1:25:221206:59821 <at> debbugs.gnu.org::eOHfYz04WQ5hr4B9:cRHm5
From: Luke Dashjr <luke@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
Date: Tue, 6 Dec 2022 23:41:16 +0000
User-Agent: KMail/1.9.10
References: <202212041807.35441.luke@HIDDEN>
 <e639b4ad-862a-85c5-122a-d5d84cf96b6b@HIDDEN>
In-Reply-To: <e639b4ad-862a-85c5-122a-d5d84cf96b6b@HIDDEN>
X-KMail-QuotePrefix: > 
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <202212062341.17971.luke@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Tuesday 06 December 2022 19:08:57 Paul Eggert wrote:
> 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=440b528b1d81dd31b2a
>2e4dde20d5c837c147811
>
> 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.

Unfortunately, it does not appear to fix the bug.

I have reduced the test case to a single directory, which interestingly does
not appear to trigger the EUCLEAN error at all (though I expect it would soon,
had du not aborted).

Here's a full strace (hopefully enough to reproduce):

execve("./du", ["./du", "/tmp/bitcoin_func_test_m00g94yx/"...], 0x7fffe2b3c430 /* 54 vars */) = 0
brk(NULL)                               = 0x12bb30000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=145836, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 145836, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fff93360000
close(3)                                = 0
openat(AT_FDCWD, "/lib64/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\25\0\1\0\0\0\214\322\2\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2307000, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 2396704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fff93110000
mmap(0x7fff93340000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x220000) = 0x7fff93340000
close(3)                                = 0
set_tid_address(0x7fff93402f10)         = 57893
set_robust_list(0x7fff93402f20, 24)     = 0
rseq(0x7fff934035e0, 0x20, 0, 0xfe5000b) = 0
mprotect(0x7fff93340000, 65536, PROT_READ) = 0
mprotect(0x100d60000, 65536, PROT_READ) = 0
mprotect(0x7fff933f0000, 65536, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7fff93360000, 145836)          = 0
getrandom("\x16\x55\x93\x1c\xf3\xba\xcc\x11", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x12bb30000
brk(0x12bb60000)                        = 0x12bb60000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=7408528, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 7408528, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fff929f0000
close(3)                                = 0
newfstatat(AT_FDCWD, "/tmp/bitcoin_func_test_m00g94yx/node2/regtest/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/tmp/bitcoin_func_test_m00g94yx/node2/regtest/", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC|O_DIRECTORY) = 3
newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
fcntl(3, F_GETFL)                       = 0x1c800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_NOFOLLOW|O_DIRECTORY)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
fstatfs64(3, 120, {f_type=EXT2_SUPER_MAGIC, f_bsize=4096, f_blocks=16113571, f_bfree=10323875, f_bavail=10319779, f_files=4096000, f_ffree=4069261, 
f_fsid={val=[0x53d01241, 0x5136a981]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID}) = 0
fcntl(3, F_DUPFD_CLOEXEC, 3)            = 4
getdents64(3, 0x12bb34170 /* 3 entries */, 32768) = 80
getdents64(3, 0x12bb34170 /* 0 entries */, 32768) = 0
close(3)                                = 0
newfstatat(4, "banlist.json", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(4, "banlist.json", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC|O_DIRECTORY) = 3
newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0
fcntl(3, F_GETFL)                       = 0x1c800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_NOFOLLOW|O_DIRECTORY)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid()                                = 57893
getpid()                                = 57893
tgkill(57893, 57893, SIGABRT)           = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=57893, si_uid=0} ---
+++ killed by SIGABRT +++
Aborted




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 6 Dec 2022 19:09:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 14:09:11 2022
Received: from localhost ([127.0.0.1]:44665 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p2dJW-000762-RV
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2022 14:09:11 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59548)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1p2dJR-00075f-Kr
 for 59821 <at> debbugs.gnu.org; Tue, 06 Dec 2022 14:09:09 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 792C916005E;
 Tue,  6 Dec 2022 11:08:59 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id 8oqM1GwTzD9E; Tue,  6 Dec 2022 11:08:58 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 99BC616006E;
 Tue,  6 Dec 2022 11:08:58 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 99BC616006E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1670353738;
 bh=m5uf7UpaPFkYOU7Qu6pDUPObfpNxcbkMC0zw3OxCChc=;
 h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:
 Content-Transfer-Encoding;
 b=uRJ86kq/DZxdmdnvlbGTiwcHj/PcHJBws05UZatGr9Adbk7mwnzeKyz9DZ03l2xhk
 fs4gbzadYeXZTvCVhbmBeTaiR0YeheZ0XHeE8gk5R1biICET7436PXvvXyRKwQNyeg
 y3CA95bVrRs77A/YEQCy5VAQIyi2BuJOOjeapYkQ=
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id wm7CBPxELbVh; Tue,  6 Dec 2022 11:08:58 -0800 (PST)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7361716005E;
 Tue,  6 Dec 2022 11:08:58 -0800 (PST)
Message-ID: <e639b4ad-862a-85c5-122a-d5d84cf96b6b@HIDDEN>
Date: Tue, 6 Dec 2022 11:08:57 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.4.2
Content-Language: en-US
To: Luke Dashjr <luke@HIDDEN>
References: <202212041807.35441.luke@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
In-Reply-To: <202212041807.35441.luke@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

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.




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 5 Dec 2022 09:48:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 05 04:48:51 2022
Received: from localhost ([127.0.0.1]:34962 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p285i-0002IJ-NL
	for submit <at> debbugs.gnu.org; Mon, 05 Dec 2022 04:48:51 -0500
Received: from zinan.dashjr.org ([192.3.11.21]:53842)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luke@HIDDEN>) id 1p285g-0002ID-7w
 for 59821 <at> debbugs.gnu.org; Mon, 05 Dec 2022 04:48:50 -0500
Received: from ishibashi.lan (unknown [12.151.133.18])
 (Authenticated sender: luke-jr)
 by zinan.dashjr.org (Postfix) with ESMTPSA id 30DB638AEB02;
 Mon,  5 Dec 2022 09:47:47 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dashjr.org; s=zinan;
 t=1670233727; bh=jBOTbHbZonflA0SRxk7rtPkwW378RllBNaHWpp7Flyo=;
 h=From:To:Subject:Date:Cc:References:In-Reply-To;
 b=KaLHMAA1OtdF2lQ/jJ+R+t2eeaywsnVa9fil+s6T6OAroKdHkXr8KSFmhLoy+IdKp
 R1xd0n5bC0eyBE8SJ22moh/4DWlC5wbQ9X+aXei2uUa52nlkWH4Z3mL1FKb8KqHxul
 wcBzLym/4OIGRx5VpAJsvgQKUz3HXNtmwrRzpQiI=
X-Hashcash: 1:25:221205:sam@HIDDEN::KvqRiZVQ4tR8pUEZ:1DKv
X-Hashcash: 1:25:221205:59821 <at> debbugs.gnu.org::HR+2OHkEeaMMDxrC:dfm=g
From: Luke Dashjr <luke@HIDDEN>
To: Sam James <sam@HIDDEN>
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
Date: Mon, 5 Dec 2022 09:47:43 +0000
User-Agent: KMail/1.9.10
References: <202212041807.35441.luke@HIDDEN>
 <10949DCB-1EA6-4871-B419-516A1B038F6C@HIDDEN>
In-Reply-To: <10949DCB-1EA6-4871-B419-516A1B038F6C@HIDDEN>
X-KMail-QuotePrefix: > 
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <202212050947.44802.luke@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Monday 05 December 2022 08:39:11 Sam James wrote:
> > On 4 Dec 2022, at 18:07, Luke Dashjr <luke@HIDDEN> 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 at:
> > #4  0x00007ffff7d4d3dc in __GI_abort () at abort.c:79
> > #5  0x000000010000ba08 in leave_dir (fts=fts@entry=0x100042680,
> > ent=ent@entry=0x100071630)
> >    at lib/fts-cycle.c:136
> > #6  0x000000010000bd00 in fts_build (sp=sp@entry=0x100042680,
> > type=type@entry=3) at lib/fts.c:1326
> > #7  0x000000010000ce7c in rpl_fts_read (sp=0x100042680) at lib/fts.c:925
> > #8  0x0000000100004864 in du_files (files=<optimized out>,
> > bit_flags=<optimized out>) at src/du.c:691
> > #9  0x0000000100005cfc in main (argc=<optimized out>, argv=<optimized
> > out>) at src/du.c:1123
> >
> > (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)
>
> I may well be missing something, but shouldn't you be reporting this to the
> kernel folks instead?

Did that in February: https://bugzilla.kernel.org/show_bug.cgi?id=215557

> Or are you saying you want du to give you a nicer error message?

I would like du to continue doing what it's doing, so I can still find the 
larger directories. :)

Luke




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at 59821 <at> debbugs.gnu.org:


Received: (at 59821) by debbugs.gnu.org; 5 Dec 2022 08:39:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 05 03:39:40 2022
Received: from localhost ([127.0.0.1]:34625 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p270l-0001az-SB
	for submit <at> debbugs.gnu.org; Mon, 05 Dec 2022 03:39:40 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:52330
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sam@HIDDEN>) id 1p270h-0001as-U9
 for 59821 <at> debbugs.gnu.org; Mon, 05 Dec 2022 03:39:38 -0500
Content-Type: multipart/signed;
 boundary="Apple-Mail=_80D26CEF-A09F-4E25-8B56-DB87A569095E";
 protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\))
Subject: Re: bug#59821: 9.1: du Aborted (corrupt filesystem)
From: Sam James <sam@HIDDEN>
In-Reply-To: <202212041807.35441.luke@HIDDEN>
Date: Mon, 5 Dec 2022 08:39:11 +0000
Message-Id: <10949DCB-1EA6-4871-B419-516A1B038F6C@HIDDEN>
References: <202212041807.35441.luke@HIDDEN>
To: Luke Dashjr <luke@HIDDEN>
X-Mailer: Apple Mail (2.3731.200.110.1.12)
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 59821
Cc: 59821 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


--Apple-Mail=_80D26CEF-A09F-4E25-8B56-DB87A569095E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii



> On 4 Dec 2022, at 18:07, Luke Dashjr <luke@HIDDEN> wrote:
>=20
> Version: sys-apps/coreutils-9.1-r1 (Gentoo)
>=20
> 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=3DEUCLEAN (Structure needs =
cleaning).
>=20
> The `du` tool, when it encounters them, prints an error as expected, =
but later
> on aborts at:
> #4  0x00007ffff7d4d3dc in __GI_abort () at abort.c:79
> #5  0x000000010000ba08 in leave_dir (fts=3Dfts@entry=3D0x100042680,
> ent=3Dent@entry=3D0x100071630)
>    at lib/fts-cycle.c:136
> #6  0x000000010000bd00 in fts_build (sp=3Dsp@entry=3D0x100042680,
> type=3Dtype@entry=3D3) at lib/fts.c:1326
> #7  0x000000010000ce7c in rpl_fts_read (sp=3D0x100042680) at =
lib/fts.c:925
> #8  0x0000000100004864 in du_files (files=3D<optimized out>,
> bit_flags=3D<optimized out>) at src/du.c:691
> #9  0x0000000100005cfc in main (argc=3D<optimized out>, =
argv=3D<optimized out>) at
> src/du.c:1123
>=20
> (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)

I may well be missing something, but shouldn't you be reporting this to =
the kernel
folks instead?

Or are you saying you want du to give you a nicer error message?


--Apple-Mail=_80D26CEF-A09F-4E25-8B56-DB87A569095E
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY42uMV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB
NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R
kNtpAQD+j+LFhrUdPWJE8uu0hfGXojy1qrLKo+rLa/erMRxe3wEA7I3LiEVG7193
AcHaIwpkoAWO3cTR70p9BDZsvPpJswo=
=uLxa
-----END PGP SIGNATURE-----

--Apple-Mail=_80D26CEF-A09F-4E25-8B56-DB87A569095E--




Information forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Dec 2022 18:08:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 04 13:08:01 2022
Received: from localhost ([127.0.0.1]:58998 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p1tPE-0007DW-17
	for submit <at> debbugs.gnu.org; Sun, 04 Dec 2022 13:08:01 -0500
Received: from lists.gnu.org ([209.51.188.17]:36302)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luke@HIDDEN>) id 1p1tP8-0007DQ-Kz
 for submit <at> debbugs.gnu.org; Sun, 04 Dec 2022 13:07:58 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <luke@HIDDEN>) id 1p1tP7-0008FZ-AW
 for bug-coreutils@HIDDEN; Sun, 04 Dec 2022 13:07:53 -0500
Received: from zinan.dashjr.org ([2001:470:88ff:2f::1])
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <luke@HIDDEN>) id 1p1tP5-0008AN-5e
 for bug-coreutils@HIDDEN; Sun, 04 Dec 2022 13:07:52 -0500
Received: from ishibashi.lan (unknown [12.151.133.18])
 (Authenticated sender: luke-jr)
 by zinan.dashjr.org (Postfix) with ESMTPSA id 2CB3F38A31F7
 for <bug-coreutils@HIDDEN>; Sun,  4 Dec 2022 18:07:39 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dashjr.org; s=zinan;
 t=1670177268; bh=7gqsiMBPKTduMhjG5ZJj1m0FXxFwRrwK8xSmxtHLTVQ=;
 h=From:To:Subject:Date;
 b=H5BGQlgG9k9U7T9EKKrqqRZmLPOB6HKM6JoZOSwclx9ozorucPdeUM+HHD5BqsOB9
 7xlHSa9sz5/VgG3Yihqgy72W2xrmJvv0XGJNKOw5wH05bnB2mNAvTPjDkQLHvjR4fo
 m1Y7WyG9eJdWNkHfISFhS4sevEUIxRXXeV+kyk24=
X-Hashcash: 1:25:221204:bug-coreutils@HIDDEN::+=8BAzuVtH60hyMg:SH7m
From: Luke Dashjr <luke@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: 9.1: du Aborted (corrupt filesystem)
Date: Sun, 4 Dec 2022 18:07:33 +0000
User-Agent: KMail/1.9.10
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <202212041807.35441.luke@HIDDEN>
Received-SPF: pass client-ip=2001:470:88ff:2f::1; envelope-from=luke@HIDDEN;
 helo=zinan.dashjr.org
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

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 at:
#4  0x00007ffff7d4d3dc in __GI_abort () at abort.c:79
#5  0x000000010000ba08 in leave_dir (fts=fts@entry=0x100042680, 
ent=ent@entry=0x100071630)
    at lib/fts-cycle.c:136
#6  0x000000010000bd00 in fts_build (sp=sp@entry=0x100042680, 
type=type@entry=3) at lib/fts.c:1326
#7  0x000000010000ce7c in rpl_fts_read (sp=0x100042680) at lib/fts.c:925
#8  0x0000000100004864 in du_files (files=<optimized out>, 
bit_flags=<optimized out>) at src/du.c:691
#9  0x0000000100005cfc in main (argc=<optimized out>, argv=<optimized out>) at 
src/du.c:1123

(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)

Luke




Acknowledgement sent to Luke Dashjr <luke@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN.

Your message had a Version: pseudo-header with an invalid package version:

sys-apps/coreutils-9.1-r1 (Gentoo)

please either use found or fixed to the control server with a correct version, or reply to this report indicating the correct version so the maintainer (or someone else) can correct it for you.

Full text available.


Report forwarded to bug-coreutils@HIDDEN:
bug#59821; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 7 Dec 2022 02:00:01 UTC

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