Bug 1713035 - [abrt] btrfs-progs: bugon_trace(): btrfs-convert killed by SIGABRT
Summary: [abrt] btrfs-progs: bugon_trace(): btrfs-convert killed by SIGABRT
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: btrfs-progs
Version: 30
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:8391d1a1a7cb384e0dbbe3bc28a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-22 17:55 UTC by Doncho Gunchev
Modified: 2019-08-24 17:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-24 17:55:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (15.29 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: cgroup (355 bytes, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: core_backtrace (2.04 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: cpuinfo (1.50 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: dso_list (767 bytes, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: environ (4.31 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: limits (1.29 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: maps (5.31 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: mountinfo (3.67 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: open_fds (263 bytes, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details
File: proc_pid_status (1.30 KB, text/plain)
2019-05-22 17:55 UTC, Doncho Gunchev
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Linux Kernel 203693 0 None None None 2019-05-31 01:10:04 UTC

Description Doncho Gunchev 2019-05-22 17:55:15 UTC
Description of problem:
I was converting an ext4 file system with the following command:
  btrfs-convert -p -O extref,skinny-metadata -L /dev/mapper/luks-md127

Version-Release number of selected component:
btrfs-progs-4.20.2-1.fc30

Additional info:
reporter:       libreport-2.10.0
backtrace_rating: 4
cmdline:        btrfs-convert -p -O extref,skinny-metadata -L /dev/mapper/luks-md127
crash_function: bugon_trace
executable:     /usr/sbin/btrfs-convert
journald_cursor: s=630da582d5fd40838e1fd5157122db13;i=6f6e0;b=09b49c36846346869b1bfeda781ce99d;m=e2377c77;t=5897d8e324188;x=2b1e09eb3ef8ec4c
kernel:         5.0.16-300.fc30.x86_64
rootdir:        /
runlevel:       3 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (9 frames)
 #2 bugon_trace at kerncompat.h:115
 #4 copy_for_split at ctree.c:2127
 #5 split_leaf at ctree.c:2297
 #6 btrfs_search_slot at ctree.c:1217
 #7 btrfs_csum_file_block at file-item.c:257
 #8 csum_disk_extent at convert/main.c:182
 #9 create_image_file_range at convert/main.c:320
 #10 create_image at convert/main.c:840
 #11 do_convert at convert/main.c:1195

Comment 1 Doncho Gunchev 2019-05-22 17:55:18 UTC
Created attachment 1572119 [details]
File: backtrace

Comment 2 Doncho Gunchev 2019-05-22 17:55:19 UTC
Created attachment 1572120 [details]
File: cgroup

Comment 3 Doncho Gunchev 2019-05-22 17:55:20 UTC
Created attachment 1572121 [details]
File: core_backtrace

Comment 4 Doncho Gunchev 2019-05-22 17:55:21 UTC
Created attachment 1572122 [details]
File: cpuinfo

Comment 5 Doncho Gunchev 2019-05-22 17:55:22 UTC
Created attachment 1572123 [details]
File: dso_list

Comment 6 Doncho Gunchev 2019-05-22 17:55:24 UTC
Created attachment 1572124 [details]
File: environ

Comment 7 Doncho Gunchev 2019-05-22 17:55:25 UTC
Created attachment 1572125 [details]
File: limits

Comment 8 Doncho Gunchev 2019-05-22 17:55:26 UTC
Created attachment 1572126 [details]
File: maps

Comment 9 Doncho Gunchev 2019-05-22 17:55:28 UTC
Created attachment 1572127 [details]
File: mountinfo

Comment 10 Doncho Gunchev 2019-05-22 17:55:29 UTC
Created attachment 1572128 [details]
File: open_fds

Comment 11 Doncho Gunchev 2019-05-22 17:55:30 UTC
Created attachment 1572129 [details]
File: proc_pid_status

Comment 12 Doncho Gunchev 2019-05-22 17:58:16 UTC
I think there was enough free space for the operation: Size=4620G, Used=3100G, Avail=1520G, Use%=67.1... but will try with '-n' and '-d' now.

Comment 13 Doncho Gunchev 2019-05-22 18:09:23 UTC
Similar problem has been detected:

I ran "btrfs-convert -n -d -p -O extref,skinny-metadata -L /dev/mapper/luks-md127".

I think there was enough free space for the operation: Size=4620G, Used=3100G, Avail=1520G, Use%=67.1.

This is after bug #1713035

reporter:       libreport-2.10.0
backtrace_rating: 4
cmdline:        btrfs-convert -n -d -p -O extref,skinny-metadata -L /dev/mapper/luks-md127
crash_function: bugon_trace
executable:     /usr/sbin/btrfs-convert
journald_cursor: s=630da582d5fd40838e1fd5157122db13;i=6f76e;b=09b49c36846346869b1bfeda781ce99d;m=1194a3224;t=5897dc544f735;x=d9c1c886a6dcc036
kernel:         5.0.16-300.fc30.x86_64
package:        btrfs-progs-4.20.2-1.fc30
reason:         btrfs-convert killed by SIGABRT
rootdir:        /
runlevel:       3 5
type:           CCpp
uid:            0

Comment 14 Doncho Gunchev 2019-05-22 19:10:37 UTC
using btrfs-progs 5.1 did not help (rebuilt the RPM with new source), just printed a few more lines:

btrfs-convert -p -O extref,skinny-metadata -L /dev/mapper/luks-md127
create btrfs filesystem:
        blocksize: 4096
        nodesize:  16384
        features:  extref, skinny-metadata (default)
creating ext2 image file
Unable to find block group for 0
Unable to find block group for 0
Unable to find block group for 0
ctree.c:2245: split_leaf: BUG_ON `1` triggered, value 1
btrfs-convert(+0x16309)[0x561beff32309]
btrfs-convert(btrfs_search_slot+0xe85)[0x561beff337e5]
btrfs-convert(btrfs_csum_file_block+0x43f)[0x561beff45cff]
btrfs-convert(+0xe91b)[0x561beff2a91b]
btrfs-convert(main+0x1864)[0x561beff29b34]
/lib64/libc.so.6(__libc_start_main+0xf3)[0x7f7b86a86f33]
btrfs-convert(_start+0x2e)[0x561beff2a4be]
Aborted (core dumped)

Comment 15 Chris Murphy 2019-05-22 19:30:29 UTC
My suggestion is to report this to upstream list since Fedora does not carry any distro specific patches for Btrfs either user space or kernel space, this must be an upstream bug. And in particular you've reproduced using very recent kernel and progs versions, so they will take interest in this bug. It's reasonable to reference this bug URL in the email to upstream and to continue to add attachments to this bug report.

List info:
http://vger.kernel.org/vger-lists.html#linux-btrfs
Post address: linux-btrfs.org

Comment 16 Doncho Gunchev 2019-05-23 16:18:13 UTC
Reported in kernel's bugzilla - https://bugzilla.kernel.org/show_bug.cgi?id=203693 , thanks.


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