Bug 1538618 - [abrt] btrfs-progs: btrfs_set_key_blockptr(): btrfs killed by SIGSEGV
Summary: [abrt] btrfs-progs: btrfs_set_key_blockptr(): btrfs killed by SIGSEGV
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: btrfs-progs
Version: 28
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:af7afe3acc42ca9346f9147fbb8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-25 12:55 UTC by Mustafa Muhammad
Modified: 2018-08-06 17:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-06 17:19:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (36.47 KB, text/plain)
2018-01-25 12:55 UTC, Mustafa Muhammad
no flags Details
File: cgroup (299 bytes, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: core_backtrace (2.98 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: cpuinfo (1.24 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: dso_list (757 bytes, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: environ (3.43 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: exploitable (82 bytes, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: limits (1.29 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: maps (3.88 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: mountinfo (3.51 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: open_fds (465 bytes, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details
File: proc_pid_status (1.23 KB, text/plain)
2018-01-25 12:56 UTC, Mustafa Muhammad
no flags Details

Description Mustafa Muhammad 2018-01-25 12:55:53 UTC
Version-Release number of selected component:
btrfs-progs-4.14.1-1.fc28

Additional info:
reporter:       libreport-2.9.3
backtrace_rating: 4
cmdline:        btrfs check --repair /dev/sda5
crash_function: btrfs_set_key_blockptr
executable:     /usr/sbin/btrfs
journald_cursor: s=66d65907be5742629cfe6892c4f30354;i=3bec;b=b7640cfb6d23450eb04a1d76b82ae9a2;m=7d15bce4;t=56398fabea79d;x=84c39af6d281b15f
kernel:         4.15.0-0.rc9.git0.1.fc28.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 btrfs_set_key_blockptr at ctree.h:1758
 #1 btrfs_set_node_blockptr at ctree.h:1775
 #2 __btrfs_cow_block at ctree.c:314
 #3 btrfs_cow_block at ctree.c:373
 #4 btrfs_search_slot at ctree.c:1121
 #5 btrfs_insert_empty_items at ctree.c:2485
 #6 btrfs_insert_empty_item at ctree.h:2635
 #7 btrfs_insert_item at ctree.c:2584
 #8 btrfs_insert_inode at inode-item.c:155
 #9 btrfs_make_root_dir at utils.c:397

Comment 1 Mustafa Muhammad 2018-01-25 12:55:59 UTC
Created attachment 1386053 [details]
File: backtrace

Comment 2 Mustafa Muhammad 2018-01-25 12:56:01 UTC
Created attachment 1386054 [details]
File: cgroup

Comment 3 Mustafa Muhammad 2018-01-25 12:56:02 UTC
Created attachment 1386055 [details]
File: core_backtrace

Comment 4 Mustafa Muhammad 2018-01-25 12:56:04 UTC
Created attachment 1386056 [details]
File: cpuinfo

Comment 5 Mustafa Muhammad 2018-01-25 12:56:05 UTC
Created attachment 1386057 [details]
File: dso_list

Comment 6 Mustafa Muhammad 2018-01-25 12:56:07 UTC
Created attachment 1386058 [details]
File: environ

Comment 7 Mustafa Muhammad 2018-01-25 12:56:09 UTC
Created attachment 1386059 [details]
File: exploitable

Comment 8 Mustafa Muhammad 2018-01-25 12:56:11 UTC
Created attachment 1386060 [details]
File: limits

Comment 9 Mustafa Muhammad 2018-01-25 12:56:13 UTC
Created attachment 1386061 [details]
File: maps

Comment 10 Mustafa Muhammad 2018-01-25 12:56:15 UTC
Created attachment 1386062 [details]
File: mountinfo

Comment 11 Mustafa Muhammad 2018-01-25 12:56:16 UTC
Created attachment 1386063 [details]
File: open_fds

Comment 12 Mustafa Muhammad 2018-01-25 12:56:19 UTC
Created attachment 1386064 [details]
File: proc_pid_status

Comment 13 Fedora End Of Life 2018-02-20 15:26:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 14 Mustafa Muhammad 2018-08-06 14:37:34 UTC
Similar problem has been detected:

Maybe a forced shutdown corrupted my BTRFS partition, but now, nothing fixed it, even zero-logging the partition
Whet I try 'btrfsck --repair /dev/sda5', it crashes

[root@localhost mustafa]# btrfsck --repair /dev/sda5
enabling repair mode
Checking filesystem on /dev/sda5
UUID: 24d374dc-9ebd-47b8-acda-c5a430e13d00
Fixed 0 roots.
checking extents
parent transid verify failed on 29360128 wanted 424 found 429
parent transid verify failed on 29360128 wanted 424 found 429
Ignoring transid failure
leaf parent key incorrect 29360128
bad block 29360128
ERROR: errors found in extent allocation tree or chunk allocation
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
root 5 missing its root dir, recreating
Failed to find [20971520, 168, 16384]
btrfs unable to find ref byte nr 72531968 parent 0 root 5  owner 2 offset 0
parent transid verify failed on 29360128 wanted 424 found 429
Ignoring transid failure
Segmentation fault (core dumped)

reporter:       libreport-2.9.5
backtrace_rating: 4
cmdline:        btrfsck --init-csum-tree /dev/sda5
crash_function: btrfs_set_key_blockptr
executable:     /usr/sbin/btrfs
journald_cursor: s=4caec86794344cbaa278469d2c8480a1;i=dccde;b=1d91a9126f784f4581a991c1cb0182ac;m=7b49d94bb;t=572c4ee9cb763;x=faa69d7b816106e3
kernel:         4.17.11-200.fc28.x86_64
package:        btrfs-progs-4.15.1-1.fc28
reason:         btrfs killed by SIGSEGV
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            0

Comment 15 Eric Sandeen 2018-08-06 16:36:31 UTC
It would be best to report this to the upstream btrfs list if possible, I'm currently in much more of a packager mode than a maintainer mode for btrfs-progs at this point.  You'll probably get more help and attention if you can post it to the list.

Thanks,
-Eric

Comment 16 Mustafa Muhammad 2018-08-06 17:12:07 UTC
(In reply to Eric Sandeen from comment #15)
> It would be best to report this to the upstream btrfs list if possible, I'm
> currently in much more of a packager mode than a maintainer mode for
> btrfs-progs at this point.  You'll probably get more help and attention if
> you can post it to the list.
> 
> Thanks,
> -Eric

Thanks, I added comments and logs with reference to this report here:
https://github.com/kdave/btrfs-progs/issues/57

Comment 17 Eric Sandeen 2018-08-06 17:19:47 UTC
Thanks, of course if it gets resolved upstream, it will get pulled into Fedora when a btrfs-progs release contains the fix.

Feel free to update this bug if things progress upstream, as well.

Thanks,
-Eric


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