Subject: Bug report parted back trace and exit

From: Vartan <[email-masked]>
Date: Sat, 26 Jul 2025 21:19:32 +0000

$ parted --version
parted (GNU parted) 3.6
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
$
$ $ cat /etc/os-release
NAME="Fedora Linux"
VERSION="42 (KDE Plasma Desktop Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=42
VERSION_CODENAME=""
PLATFORM_ID="platform:f42"
PRETTY_NAME="Fedora Linux 42 (KDE Plasma Desktop Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:42"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f42/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=42
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=42
SUPPORT_END=2026-05-13
VARIANT="KDE Plasma Desktop Edition"
VARIANT_ID=kde

Bug details are below.
I could not produce the output of "parted DEVICE unit co print unit s print" because I had removed the flash drive thus device /dev/sdf was no longer present. Nevertheless, parted should not have produced a back trace and failed.

(parted) print devices
/dev/sde (8087MB)
/dev/sda (2000GB)
/dev/sdb (2000GB)
/dev/sdc (4027MB)
/dev/sdd (4027MB)
/dev/sdf (2046MB)
/dev/nvme0n1 (1000GB)
/dev/zram0 (8590MB)
/dev/sr1 (8389kB)
Error: Could not stat device /dev/sde - No such file or directory.
Retry/Cancel? c
(parted)
(parted)
(parted) select /dev/sdf
Backtrace has 8 calls on stack:
8: /lib64/libparted.so.2(ped_assert+0x49) [0x7f6c2f3afda9]
7: /lib64/libparted.so.2(+0x5104) [0x7f6c2f3b0104]
6: parted(+0x64e1) [0x5560450dd4e1]
5: parted(interactive_mode+0x16b) [0x5560450e16ab]
4: parted(main+0x13d8) [0x5560450d9e58]
3: /lib64/libc.so.6(+0x35f5) [0x7f6c2f12d5f5]
2: /lib64/libc.so.6(__libc_start_main+0x88) [0x7f6c2f12d6a8]
1: parted(_start+0x25) [0x5560450d9ee5]

You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (3.6)
along with the error message below, the output of

parted DEVICE unit co print unit s print

and the following history of commands you entered.
Also include any additional information about your setup you
consider important.

Assertion (dev != NULL) at device.c:252 in function ped_device_close() failed.

Aborted

Sent with [Proton Mail](https://proton.me/mail/home) secure email.

Sent with [Proton Mail](https://proton.me/mail/home) secure email.