Bug 546622
Summary: | parted no longer works properly with loop devices | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Josef Bacik <jbacik> |
Component: | parted | Assignee: | Hans de Goede <hdegoede> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | 12 | CC: | dhuff, hdegoede, jsmith.fedora, meyering, mgoldman |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 1.9.0-17.2.fc12 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-12-18 09:56:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 525900 |
Description
Josef Bacik
2009-12-11 13:33:18 UTC
Thanks for the report. I pushed a patch to fix that from Hans De Goede: http://git.debian.org/?p=parted/parted.git;a=commitdiff;h=1983b7b517604aade6a317e8384bd5a58f8e20f5 Thanks for the report, I've backported the mentioned patch to the Fedora parted version, this is fixed in parted-1.9.0-24.fc13. Hans, Will be this patch also included in F12 (it's a blocker for 525900)? (In reply to comment #3) > Hans, > > Will be this patch also included in F12 (it's a blocker for 525900)? I was not planning on doing any parted changes for F12, but since you ask I'll cherry pick some from the (large) -24 update and do an F-12 build. Thanks, it would be awesone! parted-1.9.0-17.1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/parted-1.9.0-17.1.fc12 I downloaded the RPM mention in comment #6 via koji, but now parted is segfaulting on me: [root@hockey tmp]# dd if=/dev/zero of=file.img bs=1M count=1 seek=1024 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00204933 s, 512 MB/s [root@hockey tmp]# losetup /dev/loop0 file.img losetup: /dev/loop0: device is busy [root@hockey tmp]# parted /dev/loop0 -s mkabel msdos 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 (1.9.0) 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. Command History: Segmentation fault (core dumped) ----------------------------------------------------------------------------- I also took a look at the backtrace in gdb: Core was generated by `parted /dev/loop0 -s mkabel msdos'. Program terminated with signal 11, Segmentation fault. #0 _dump_history () at ui.c:286 286 while (all_entries[i]) { (gdb) bt #0 _dump_history () at ui.c:286 #1 0x000000000040b5a3 in sa_sigfpe_handler (signum=<value optimized out>, info=0x7fff2d40eb30, ucontext=<value optimized out>) at ui.c:373 #2 <signal handler called> #3 0x00007f0cc200ae6c in _device_get_length (dev=0x1e8b380) at arch/linux.c:673 #4 0x00007f0cc200d8ce in init_file (dev=<value optimized out>) at arch/linux.c:1023 #5 linux_new (dev=<value optimized out>) at arch/linux.c:1283 #6 0x00007f0cc20014fb in ped_device_get (path=<value optimized out>) at device.c:190 #7 0x000000000040636d in _choose_device (argc_ptr=0x7fff2d40f13c, argv_ptr=<value optimized out>) at parted.c:2419 #8 0x0000000000409fa1 in _init (argc_ptr=<value optimized out>, argv_ptr=0x7fff2d40f130) at parted.c:2469 #9 0x000000000040a07c in main (argc=3, argv=0x7fff2d40f248) at parted.c:2522 Oops, seems like a simple backport of the fix did not suffice, sorry about that. This is really fixed in parted-1.9.0-17.2.fc12, which will go to the updates repo soon. parted-1.9.0-17.2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/parted-1.9.0-17.2.fc12 Thanks! That appears to have solved the problem for me. parted-1.9.0-17.2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |