btrfs-image assert failure: btrfs-image: disk-io.c:743: open_ctree_fd: Assertion `!(!tree_root->node)' failed.

Bug #550274 reported by Arjan on 2010-03-28
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)
Medium
Surbhi Palande

Bug Description

Binary package hint: btrfs-tools

after a crash of my system (disk full?, force poweroff) , i can't get btrfs going anymore.
I created a disk image for later:
# btrfs-image -c 9 /2tb/tmp/sdi-120GB-disk-20100303.dd.img /tmp/bla
parent transid verify failed on 38783700992 wanted 22494 found 22498
parent transid verify failed on 38783700992 wanted 22494 found 22498
parent transid verify failed on 38783700992 wanted 22494 found 22498
btrfs-image: disk-io.c:743: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
Aborted (core dumped)

that root->node error i get all the time, and can't get any usefull btrfs util going.

ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: btrfs-tools 0.19-8
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-17-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
AssertionMessage: btrfs-image: disk-io.c:743: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
Date: Sun Mar 28 12:07:48 2010
ExecutablePath: /sbin/btrfs-image
ProcCmdline: btrfs-image -c 9 /2tb/tmp/sdi-120GB-disk-20100303.dd.img /tmp/bla
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.utf8
Signal: 6
SourcePackage: btrfs-tools
StacktraceTop:
 raise () from /lib/libc.so.6
 abort () from /lib/libc.so.6
 __assert_fail () from /lib/libc.so.6
 ?? ()
 ?? ()
Title: btrfs-image assert failure: btrfs-image: disk-io.c:743: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Arjan (iafilius) wrote :

StacktraceTop:
 *__GI_raise (sig=<value optimized out>)
 *__GI_abort () at abort.c:92
 *__GI___assert_fail (
 open_ctree_fd (fp=<value optimized out>,
 open_ctree (

Changed in btrfs-tools (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Steve Beattie (sbeattie) on 2010-06-25
visibility: private → public
Surbhi Palande (csurbhi) on 2010-08-02
Changed in btrfs-tools (Ubuntu):
assignee: nobody → Surbhi Palande (csurbhi)
Surbhi Palande (csurbhi) wrote :

Hi Arjan,

By any stroke of luck, were you able to save the dmesg or have the kernel log when the system was forced powered off? Also do you still have the same image with you. Thanks!

Changed in btrfs-tools (Ubuntu):
status: New → Incomplete
shawnlandden (shawnlandden) wrote :

Handling for this error was added in commit be826706b5c0fcca3bdeff6934cd8d46d046ddfe

....
- BUG_ON(!chunk_root->node);
+ if (!chunk_root->node) {
+ printk("Couldn't read chunk root\n");
+ goto out_devices;
+ }
...

shawnlandden (shawnlandden) wrote :

commit be826706b5c0fcca3bdeff6934cd8d46d046ddfe
Author: Josef Bacik <email address hidden>
Date: Fri Aug 26 09:51:36 2011 -0400

    btrfs-progs: add a recovery utility to pull files from damanged filesystems

    Signed-off-by: Josef Bacik <email address hidden>
    Signed-off-by: Chris Mason <email address hidden>

Janus (reslayer-mail) wrote :

All the same, segfault on the same assertion.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers