Debian Bug report logs -
#864798
btrfs-convert: crashes when converting ext4 drive
Reported by: Michael Tsang <miklcct@gmail.com>
Date: Thu, 15 Jun 2017 01:21:01 UTC
Severity: important
Found in version btrfs-progs/4.7.3-1
Done: Adam Borowski <kilobyte@angband.pl>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Dimitri John Ledkov <xnox@debian.org>:
Bug#864798; Package btrfs-progs.
(Thu, 15 Jun 2017 01:21:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tsang <miklcct@gmail.com>:
New Bug report received and forwarded. Copy sent to Dimitri John Ledkov <xnox@debian.org>.
(Thu, 15 Jun 2017 01:21:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: btrfs-progs
Version: 4.7.3-1
Severity: important
Dear Maintainer,
When I tried to convert an ext4 to btrfs, the tool crashes:
create btrfs filesystem:
blocksize: 4096
nodesize: 16384
features: extref, skinny-metadata (default)
creating ext2 image file
volumes.c:985: btrfs_alloc_chunk: Assertion `ret` failed.1643]
btrfs-convert[0x41ea0b]
btrfs-convert[0x41ea32]
btrfs-convert(btrfs_alloc_chunk+0x7fe)[0x41ff1b]
btrfs-convert[0x416c1b]
btrfs-convert(btrfs_reserve_extent+0x131)[0x416df7]
btrfs-convert(btrfs_alloc_free_block+0x63)[0x41762c]
btrfs-convert[0x40ce89]
btrfs-convert(btrfs_search_slot+0x698)[0x40dc41]
btrfs-convert(btrfs_insert_empty_items+0x7a)[0x40e8ca]
btrfs-convert(btrfs_insert_inline_extent+0x82)[0x41baca]
btrfs-convert[0x431d3f]
btrfs-convert[0x432abe]
btrfs-convert(main+0x1478)[0x409606]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f7864e602b1]
btrfs-convert(_start+0x2a)[0x40a67a]
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_HK.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_HK:en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages btrfs-progs depends on:
ii e2fslibs 1.43.4-2
ii libblkid1 2.29.2-1
ii libc6 2.24-11
ii libcomerr2 1.43.4-2
ii liblzo2-2 2.08-1.2+b2
ii libuuid1 2.29.2-1
ii zlib1g 1:1.2.8.dfsg-5
btrfs-progs recommends no packages.
btrfs-progs suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Dimitri John Ledkov <xnox@debian.org>:
Bug#864798; Package btrfs-progs.
(Mon, 25 Sep 2017 20:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Nicholas D Steeves <nsteeves@gmail.com>:
Extra info received and forwarded to list. Copy sent to Dimitri John Ledkov <xnox@debian.org>.
(Mon, 25 Sep 2017 20:12:03 GMT) (full text, mbox, link).
Message #10 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Dear Michael,
On Thu, Jun 15, 2017 at 09:12:28AM +0800, Michael Tsang wrote:
> Package: btrfs-progs
> Version: 4.7.3-1
> Severity: important
[...]
> -- System Information:
> Debian Release: 9.0
> APT prefers testing
> APT policy: (990, 'testing'), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores)
> Locale: LANG=en_HK.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_HK:en_GB:en (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
I'm not the maintainer of Debian's btrfs-progs, but I couldn't help
noticing that you were running linux-3.16.x (from Debian 8/jessie) at
the time of the attempted btrfs-convert operation. It was only after
linux-4.4 that I found that anything btrfs-related became more likely
to succeed than to fail.
What happens if you try this after booting to Debian 9/stretch's 4.9.x
kernel? Personally I wouldn't attempt to use btrfs-convert until late
2018, and only after upstream begins to recommended it as a viable
alternative to mkfs.btrfs.
That said, I'd love to be wrong, and to discover that stretch's
btrfs-progs and kernel will convert ext successfully--and more
importantly, will convert to a volume that won't self-destruct. :-)
Looking forward to hearing of your success,
Nicholas
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Dimitri John Ledkov <xnox@debian.org>:
Bug#864798; Package btrfs-progs.
(Mon, 25 Sep 2017 20:12:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Nicholas D Steeves <nsteeves@gmail.com>:
Extra info received and forwarded to list. Copy sent to Dimitri John Ledkov <xnox@debian.org>.
(Mon, 25 Sep 2017 20:12:06 GMT) (full text, mbox, link).
Reply sent
to Adam Borowski <kilobyte@angband.pl>:
You have taken responsibility.
(Sat, 08 Jun 2019 12:54:03 GMT) (full text, mbox, link).
Notification sent
to Michael Tsang <miklcct@gmail.com>:
Bug acknowledged by developer.
(Sat, 08 Jun 2019 12:54:03 GMT) (full text, mbox, link).
Message #20 received at 864798-done@bugs.debian.org (full text, mbox, reply):
In 2017, you wrote:
> When I tried to convert an ext4 to btrfs, the tool crashes:
Then Nicholas D Steeves asked if this was reproducible with stretch's kernel
and progs.
As convert has been mostly rewritten since, it's pretty likely the bug is gone
-- and that we got a new crop of fresh bugs instead. Which, as 5.1 is
already out, it's not even that fresh anymore.
Thus, I'm closing -- if you manage to reproduce the problem, please reopen.
Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Sometimes you benefit from delegating stuff. For example,
⢿⡄⠘⠷⠚⠋⠀ this way I get to be a vegetarian.
⠈⠳⣄⠀⠀⠀⠀
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 07 Jul 2019 08:03:50 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Jul 23 23:05:47 2020;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.