Subject: bug#59821: 9.1: du Aborted (corrupt filesystem)

From: Luke Dashjr <[email-masked]>
Date: Wed, 7 Dec 2022 01:02:34 +0000

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"