Debian Bug report logs - #703474
/sbin/btrfsck: btrfsck does an infinite loop with --repair on i386 not on amd64

version graph

Package: btrfs-tools; Maintainer for btrfs-tools is Dimitri John Ledkov <xnox@debian.org>; Source for btrfs-tools is src:btrfs-progs (PTS, buildd, popcon).

Reported by: russell@coker.com.au

Date: Wed, 20 Mar 2013 05:33:02 UTC

Severity: important

Tags: upstream

Found in version btrfs-tools/0.19+20130131-3+really20121004-1

Done: Adam Borowski <kilobyte@angband.pl>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Luk Claes <luk@debian.org>:
Bug#703474; Package btrfs-tools. (Wed, 20 Mar 2013 05:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to russell@coker.com.au:
New Bug report received and forwarded. Copy sent to Luk Claes <luk@debian.org>. (Wed, 20 Mar 2013 05:33:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Russell Coker <russell@coker.com.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /sbin/btrfsck: btrfsck does an infinite loop with --repair on i386 not on amd64
Date: Wed, 20 Mar 2013 16:31:16 +1100
Package: btrfs-tools
Version: 0.19+20130131-3+really20121004-1
Severity: important
File: /sbin/btrfsck
Tags: upstream

Below is the gdb backtrace from a version of btrfs-tools that I built with
debugging support.  Both the debugging version I compiled and the versions in
the Debian repository (both the "wheezy" 0.19+20120328-7.1 and "unstable"
0.19+20130131-3+really20121004-1 versions) hang after a few minutes.  When
it hangs it makes no system calls and is just in a CPU loop.

The same filesystem image when checked on AMD64 will complete.

This is an issue for me at the moment because the bootable USB device I use 
for
recovering unbootable systems is i386.  But it will also affect anyone who uses
BTRFS on i386.


Program received signal SIGINT, Interrupt.
0x08074c03 in rb_next (node=0x8149498) at rbtree.c:338
338     rbtree.c: No such file or directory.
(gdb) bt
#0  0x08074c03 in rb_next (node=0x8149498) at rbtree.c:338
#1  0x08074f25 in __tree_search (root=0x809f18c, offset=47318015451136, 
    size=1, prev_ret=0xbffff230) at extent-cache.c:77
#2  0x08075142 in find_first_cache_extent (tree=0x809f18c, 
    start=47318015451136) at extent-cache.c:138
#3  0x0807603c in find_first_extent_bit (tree=0x809f18c, start=47318015451136, 
    start_ret=0xbffff2e0, end_ret=0xbffff2e8, bits=22) at extent_io.c:438
#4  0x0806339e in btrfs_lookup_block_group (info=0x809f108, 
    bytenr=47318015451136) at extent-tree.c:213
#5  0x080678cf in update_pinned_extents (root=0x809d240, 
    bytenr=47318015451136, num=1013489549123370216, pin=1)
    at extent-tree.c:1895
#6  0x080680b7 in btrfs_pin_extent (fs_info=0x809f108, bytenr=210453397504, 
    num_bytes=1013536656685423848) at extent-tree.c:2062
#7  0x08053eed in check_extent_refs (trans=0x809dbf0, root=0x81780b0, 
    extent_cache=0xbffff474, repair=1) at btrfsck.c:3294
#8  0x080547bf in check_extents (trans=0x809dbf0, root=0x81780b0, repair=1)
    at btrfsck.c:3461
#9  0x08054c7e in main (ac=1, av=0xbffff814) at btrfsck.c:3585


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages btrfs-tools depends on:
ii  e2fslibs    1.42.5-1
ii  libc6       2.13-38
ii  libcomerr2  1.42.5-1
ii  libuuid1    2.20.1-5.3
ii  zlib1g      1:1.2.7.dfsg-13

btrfs-tools recommends no packages.

btrfs-tools suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Luk Claes <luk@debian.org>:
Bug#703474; Package btrfs-tools. (Wed, 20 Mar 2013 06:30:04 GMT) (full text, mbox, link).


Acknowledgement sent to russell@coker.com.au:
Extra info received and forwarded to list. Copy sent to Luk Claes <luk@debian.org>. (Wed, 20 Mar 2013 06:30:04 GMT) (full text, mbox, link).


Message #10 received at 703474@bugs.debian.org (full text, mbox, reply):

From: Russell Coker <russell@coker.com.au>
To: 703474@bugs.debian.org
Subject: also happens on AMD64
Date: Wed, 20 Mar 2013 17:19:36 +1100
It turns out that the bug happens on AMD64 as well, it just gets past the 
place where the bug occurs on i386 before doing so.



Reply sent to Adam Borowski <kilobyte@angband.pl>:
You have taken responsibility. (Sun, 16 Jun 2019 12:45:03 GMT) (full text, mbox, link).


Notification sent to russell@coker.com.au:
Bug acknowledged by developer. (Sun, 16 Jun 2019 12:45:03 GMT) (full text, mbox, link).


Message #15 received at 703474-done@bugs.debian.org (full text, mbox, reply):

From: Adam Borowski <kilobyte@angband.pl>
To: 703474-done@bugs.debian.org
Subject: almost certainly fixed
Date: Sun, 16 Jun 2019 14:42:26 +0200
> Found in version btrfs-tools/0.19+20130131-3+really20121004-1

This version is so old, from the very beginning of btrfs being in mainline,
that it'd be a waste of time to even try to reproduce the bug (and you
pretty surely don't have the filesystem in question anymore).  The code in
question underwent lots of changes including near-complete refactorings,
thus the bug is pretty certainly gone (and replaced by fresh ones).

Thus, closing.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢰⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ A true bird-watcher waves his tail while doing so.
⠈⠳⣄⠀⠀⠀⠀



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 15 Jul 2019 07:26:46 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jul 24 04:44:42 2020; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.