Bug 1082348

Summary: [abrt] btrfs-progs: get_fs_info(): btrfs killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Bjoern Engels <bj+bugzilla>
Component: btrfs-progsAssignee: Josef Bacik <josef>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: esandeen, josef, mmahut
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f42c1c2269d40c43b43e51e2791c1f17a49b0539
Whiteboard: abrt_hash:af04723f6742549260a5636c4857779cc85b5764
Fixed In Version: btrfs-progs-3.14.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-14 16:42:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Bjoern Engels 2014-03-30 14:04:08 UTC
Description of problem:
accidentally called "btrfs device stats" targeting an ext4 filesystem.

Version-Release number of selected component:
btrfs-progs-3.12-1.fc20

Additional info:
reporter:       libreport-2.2.0
backtrace_rating: 4
cmdline:        btrfs device stats /dev/sda2
crash_function: get_fs_info
executable:     /usr/sbin/btrfs
kernel:         3.13.7-200.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (2 frames)
 #0 get_fs_info at utils.c:1649
 #1 cmd_dev_stats at cmds-device.c:331

Comment 1 Bjoern Engels 2014-03-30 14:04:12 UTC
Created attachment 880325 [details]
File: backtrace

Comment 2 Bjoern Engels 2014-03-30 14:04:14 UTC
Created attachment 880326 [details]
File: cgroup

Comment 3 Bjoern Engels 2014-03-30 14:04:16 UTC
Created attachment 880327 [details]
File: core_backtrace

Comment 4 Bjoern Engels 2014-03-30 14:04:18 UTC
Created attachment 880328 [details]
File: dso_list

Comment 5 Bjoern Engels 2014-03-30 14:04:20 UTC
Created attachment 880329 [details]
File: environ

Comment 6 Bjoern Engels 2014-03-30 14:04:22 UTC
Created attachment 880330 [details]
File: exploitable

Comment 7 Bjoern Engels 2014-03-30 14:04:24 UTC
Created attachment 880331 [details]
File: limits

Comment 8 Bjoern Engels 2014-03-30 14:04:26 UTC
Created attachment 880332 [details]
File: maps

Comment 9 Bjoern Engels 2014-03-30 14:04:28 UTC
Created attachment 880333 [details]
File: open_fds

Comment 10 Bjoern Engels 2014-03-30 14:04:29 UTC
Created attachment 880334 [details]
File: proc_pid_status

Comment 11 Bjoern Engels 2014-03-30 14:04:31 UTC
Created attachment 880335 [details]
File: var_log_messages

Comment 12 Eric Sandeen 2014-05-13 16:39:01 UTC
btrfs-progs-3.14.1 has been pushed to Fedora 19 and 20 for testing.

I frankly have no idea if this will resolve your bug or not, but if you test it and find that it does, please take the opportunity to close this bug.  :)

Thanks,
-Eric

Comment 13 Bjoern Engels 2014-05-14 16:42:41 UTC
I'd expect some notice on a non-btrfs-filesystem but the crash is fixed. :-)

# btrfs device stats /dev/sda2
ERROR: getting dev info for devstats failed: Input/output error

Thanks,
Bjoern

Comment 14 Eric Sandeen 2014-05-14 16:44:31 UTC
That's what I found too.  Thanks for verifying.

Agreed that it's not the friendliest error...