GNU bug report logs - #49480
Assertion (!disk->update_mode) at disk.c:481 in function ped_disk_commit_to_dev() failed.

Previous Next

Package: parted;

Reported by: Ian Ormshaw <Ian_Ormshaw <at> waters.com>

Date: Fri, 9 Jul 2021 08:18:02 UTC

Severity: normal

To reply to this bug, email your comments to 49480 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#49480; Package parted. (Fri, 09 Jul 2021 08:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Ormshaw <Ian_Ormshaw <at> waters.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 09 Jul 2021 08:18:02 GMT) Full text and rfc822 format available.

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

From: Ian Ormshaw <Ian_Ormshaw <at> waters.com>
To: "bug-parted <at> gnu.org" <bug-parted <at> gnu.org>
Subject: Assertion (!disk->update_mode) at disk.c:481 in function
 ped_disk_commit_to_dev() failed.
Date: Fri, 9 Jul 2021 06:23:49 +0000
[Message part 1 (text/plain, inline)]
The attached code causes an assertion to fail with the following output.

device 0x15ea480
openStatus 1
disk 0x16019c0
diskCommitStatus 1
clobberStatus 1
Backtrace has 5 calls on stack:
  5: /lib64/libparted.so.2(ped_assert+0x53) [0x7f45cfe82633]
  4: /lib64/libparted.so.2(+0x1aa3b) [0x7f45cfe8ba3b]
  3: ./disk(main+0x15c) [0x401392]
  2: /lib64/libc.so.6(__libc_start_main+0xd5) [0x7f45cf94bb75]
  1: ./disk(_start+0x2e) [0x40117e]
A bug has been detected in GNU Parted.  Refer to the web site of parted http://www.gnu.org/software/parted/parted.html for more information of what could be useful for bug submitting!  Please email a bug report to bug-parted <at> gnu.org containing at least the version (3.4) and the following message:  Assertion (!disk->update_mode) at disk.c:481 in function ped_disk_commit_to_dev() failed.
Aborted

I would thought expected if a disk cannot be used after a clobber that either the ped_disk_commit_to_dev call would return 0.

Also, should the documentation for ped_disk_clobber state that no use of pre-existing disks should be made after clobber has been called, and that there is no need to commit the change as it as they appear to be committed to disk by the call to clobber.

Ian Ormshaw, PhD
Principal Software Engineer
[cid:image001.png <at> 01D77493.4F76CFC0]

[T] +44 (0)161 946 2596
[W] www.waters.com<http://www.waters.com/>
[E] ian_ormshaw <at> waters.com<mailto:ian_ormshaw <at> waters.com>
Waters Limited
Stamford Avenue
Altrincham Road
Wilmslow
SK9 4AX
UK
[cid:image003.png <at> 01D77493.4F76CFC0]<http://www.twitter.com/@WatersCorp>[cid:image007.png <at> 01D77493.4F76CFC0]<http://www.linkedin.com/companies/waters>[cid:image008.png <at> 01D77493.4F76CFC0]<http://www.facebook.com/Waters>[cid:image003.png <at> 01D77493.4F76CFC0]<http://www.youtube.com/user/WatersCorporation>

Waters Limited is registered in England under No 2912366.
Registered office: 11 Old Jewry, London, EC2R 8DU, UK

======================================================================
The information in this email is confidential, and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized and therefore prohibited. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
[Message part 2 (text/html, inline)]
[image001.png (image/png, inline)]
[image002.png (image/png, inline)]
[image003.png (image/png, inline)]
[image007.png (image/png, inline)]
[image008.png (image/png, inline)]
[main.cpp (text/plain, attachment)]

This bug report was last modified 3 years and 120 days ago.

Previous Next


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