GNU bug report logs - #79105
Bug report parted back trace and exit

Previous Next

Package: parted;

Reported by: Vartan <vartanp <at> protonmail.com>

Date: Sun, 27 Jul 2025 10:49:02 UTC

Severity: normal

To reply to this bug, email your comments to 79105 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#79105; Package parted. (Sun, 27 Jul 2025 10:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vartan <vartanp <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sun, 27 Jul 2025 10:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vartan <vartanp <at> protonmail.com>
To: "bug-parted <at> gnu.org" <bug-parted <at> gnu.org>
Subject: Bug report parted back trace and exit
Date: Sat, 26 Jul 2025 21:19:32 +0000
[Message part 1 (text/plain, inline)]
$ 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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#79105; Package parted. (Mon, 28 Jul 2025 15:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 79105 <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Vartan <vartanp <at> protonmail.com>
Cc: 79105 <at> debbugs.gnu.org
Subject: Re: bug#79105: Bug report parted back trace and exit
Date: Mon, 28 Jul 2025 08:54:08 -0700
On Sat, Jul 26, 2025 at 09:19:32PM +0000, Vartan via Bug reports for the GNU Parted disk partition editor wrote:

> 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]
> 

[snip]

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

Did /dev/sde go away in the middle of this? There really isn't enough
info to go on here, but it looks like sde may have vanished and then it
tried to close a dev that was NULL (I'm guessing that was associated
with sde but without a reproducer it's hard to know for sure).

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





This bug report was last modified 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.