Bug 1098798 - [abrt] btrfs-progs-0.20.rc1.20131114git9f0c53f-1.fc20: process_extent_buffer: Process /usr/sbin/btrfs was killed by signal 6 (SIGABRT)
Summary: [abrt] btrfs-progs-0.20.rc1.20131114git9f0c53f-1.fc20: process_extent_buffer:...
Keywords:
Status: CLOSED DUPLICATE of bug 1099224
Alias: None
Product: Fedora
Classification: Fedora
Component: btrfs-progs
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Josef Bacik
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:bca95e6e370bf5fcf13b47c3b8a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-18 19:03 UTC by Matt Hooper
Modified: 2014-05-19 20:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-19 20:35:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (7.87 KB, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: cgroup (172 bytes, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: core_backtrace (2.42 KB, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: dso_list (739 bytes, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: environ (2.07 KB, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: limits (1.29 KB, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: maps (3.91 KB, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: open_fds (140 bytes, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: proc_pid_status (911 bytes, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details
File: var_log_messages (1.11 KB, text/plain)
2014-05-18 19:03 UTC, Matt Hooper
no flags Details

Description Matt Hooper 2014-05-18 19:03:02 UTC
Description of problem:
System hung during btrfs device add or delete (I forget which as I was updating several different file systems) and now complains about the chunk tree when you attempt to mount. btrfs rescue chunk asserts when recovery attempted.

Chunk tree error upon mount attempt:
[31444.032878] btrfs: disk space caching is enabled
[31444.046704] parent transid verify failed on 1030855073792 wanted 160415 found 159405
[31444.149448] parent transid verify failed on 1030855073792 wanted 160415 found 159405
[31444.149454] btrfs: failed to read chunk root on dm-11
[31444.160498] btrfs: open_ctree failed

Error when attempting recovery. Note that the 4 devices reporting errors are not part of this btrfs pool:
# btrfs rescue chunk -v -y /dev/mapper/luks-283a637d-3382-47a3-bd70-4956060c9a19 /dev/mapper/luks-51102b55-d0d2-474e-a2d1-d6efa557a20f /dev/mapper/luks-ee66a1db-ed20-48e1-809b-1e0ade2dfec0 /dev/mapper/luks-d0568fb6-1e41-404e-a4a2-a8cfd9ba7e8f
ERROR: device scan failed '/dev/sdf1' - Invalid argument
ERROR: device scan failed '/dev/sdm1' - Device or resource busy
ERROR: device scan failed '/dev/sdi1' - Device or resource busy
ERROR: device scan failed '/dev/md126' - Invalid argument
All Devices:
	Device: id = 1, name = /dev/dm-13
	Device: id = 2, name = /dev/dm-12
	Device: id = 3, name = /dev/dm-11
	Device: id = 4, name = /dev/dm-10

btrfs: chunk-recover.c:124: process_extent_buffer: Assertion `!(exist->nmirrors >= 2)' failed.
Aborted (core dumped)

Version-Release number of selected component:
btrfs-progs-0.20.rc1.20131114git9f0c53f-1.fc20

Additional info:
reporter:       libreport-2.1.9
backtrace_rating: 4
cmdline:        btrfs rescue chunk -v -y /dev/mapper/luks-283a637d-3382-47a3-bd70-4956060c9a19 /dev/mapper/luks-51102b55-d0d2-474e-a2d1-d6efa557a20f /dev/mapper/luks-ee66a1db-ed20-48e1-809b-1e0ade2dfec0 /dev/mapper/luks-d0568fb6-1e41-404e-a4a2-a8cfd9ba7e8f
crash_function: process_extent_buffer
executable:     /usr/sbin/btrfs
kernel:         3.11.10-301.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (5 frames)
 #4 process_extent_buffer at chunk-recover.c:124
 #5 scan_one_device at chunk-recover.c:757
 #6 scan_devices at chunk-recover.c:804
 #7 btrfs_recover_chunk_tree at chunk-recover.c:1655
 #8 cmd_chunk_recover at cmds-rescue.c:88

Comment 1 Matt Hooper 2014-05-18 19:03:07 UTC
Created attachment 896820 [details]
File: backtrace

Comment 2 Matt Hooper 2014-05-18 19:03:09 UTC
Created attachment 896821 [details]
File: cgroup

Comment 3 Matt Hooper 2014-05-18 19:03:11 UTC
Created attachment 896822 [details]
File: core_backtrace

Comment 4 Matt Hooper 2014-05-18 19:03:13 UTC
Created attachment 896823 [details]
File: dso_list

Comment 5 Matt Hooper 2014-05-18 19:03:15 UTC
Created attachment 896824 [details]
File: environ

Comment 6 Matt Hooper 2014-05-18 19:03:17 UTC
Created attachment 896825 [details]
File: limits

Comment 7 Matt Hooper 2014-05-18 19:03:19 UTC
Created attachment 896826 [details]
File: maps

Comment 8 Matt Hooper 2014-05-18 19:03:21 UTC
Created attachment 896827 [details]
File: open_fds

Comment 9 Matt Hooper 2014-05-18 19:03:23 UTC
Created attachment 896828 [details]
File: proc_pid_status

Comment 10 Matt Hooper 2014-05-18 19:03:25 UTC
Created attachment 896829 [details]
File: var_log_messages

Comment 11 Eric Sandeen 2014-05-19 14:44:27 UTC
btrfs-progs 3.14.1 is now available for Fedora 20, can you give that a shot and see if you have any more luck on the userspace side of things?

Thanks,
-Eric

Comment 12 Eric Sandeen 2014-05-19 14:45:19 UTC
(Currently in the testing repo, sorry, should have mentioned that)

Comment 13 Matt Hooper 2014-05-19 15:44:57 UTC
Thanks for the prompt response. I've updated to btrfs-progs-3.14.1-1.fc20.x86_64 and kicked off another rescue operation.

One difference I notice is that it seems to be multi-threaded now and hammering multiple disks at once whereas before I only noticed activity on one disk at a time - coincidence or related to changes in the new version?

Comment 14 Matt Hooper 2014-05-19 15:45:33 UTC
Re-adding info request flag as I haven't got the results yet.

Comment 15 Eric Sandeen 2014-05-19 15:56:45 UTC
(In reply to Matt Hooper from comment #13)
> Thanks for the prompt response. I've updated to
> btrfs-progs-3.14.1-1.fc20.x86_64 and kicked off another rescue operation.
> 
> One difference I notice is that it seems to be multi-threaded now and
> hammering multiple disks at once whereas before I only noticed activity on
> one disk at a time - coincidence or related to changes in the new version?

No clue, I'm afraid.  That old 0.20-git version was ancient, lots of changes in between:

$ git log --oneline 9f0c53f..v3.14.1 | wc -l
137

but nothing in the logs specifically about rescue:

$ git log --oneline 9f0c53f..v3.14.1 | grep -i rescue
$

and the rescue file itself has barely changed:

$ git log --oneline 9f0c53f..v3.14.1 cmds-rescue.c
51a40f6 btrfs-progs: judge the return value of check_mounted more accurately
$

-Eric

Comment 16 Matt Hooper 2014-05-19 19:39:16 UTC
Sadly it crashed again. Abrt created bug #1099224 for the new crash

Comment 17 Eric Sandeen 2014-05-19 20:35:36 UTC
Ok, thanks for trying.  I'll dup this one to that one, they are apparently the same problem.

*** This bug has been marked as a duplicate of bug 1099224 ***


Note You need to log in before you can comment on or make changes to this bug.