Bug 707351

Summary: parted crash while attempting F14->F15 preupgrade
Product: [Fedora] Fedora Reporter: Kyle Pablo <kylepablo>
Component: partedAssignee: Brian Lane <bcl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: bcl, hdegoede, jlaska
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-27 19:18:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
ks.cfg
none
syslog
none
screenshot
none
anaconda.log
none
program.log
none
storage.log
none
X.log
none
better screenshot?
none
parted -l output
none
screentshot actual output none

Description Kyle Pablo 2011-05-24 19:29:57 UTC
Description of problem:
Preupgrade failed on reboot due to parted crash.

Version-Release number of selected component (if applicable):


How reproducible:
Everytime

Steps to Reproduce:
1. preupgrade
2. reboot
3. parted crashes
  
Actual results:


Expected results:


Additional info:

Comment 1 Kyle Pablo 2011-05-24 19:30:34 UTC
Created attachment 500682 [details]
ks.cfg

Comment 2 Kyle Pablo 2011-05-24 19:32:32 UTC
Created attachment 500683 [details]
syslog

Comment 3 Kyle Pablo 2011-05-24 19:33:30 UTC
Created attachment 500684 [details]
screenshot

Comment 4 Kyle Pablo 2011-05-24 19:36:02 UTC
Created attachment 500685 [details]
anaconda.log

Comment 5 Kyle Pablo 2011-05-24 19:36:40 UTC
Created attachment 500686 [details]
program.log

Comment 6 Kyle Pablo 2011-05-24 19:37:10 UTC
Created attachment 500687 [details]
storage.log

Comment 7 Kyle Pablo 2011-05-24 19:37:47 UTC
Created attachment 500688 [details]
X.log

Comment 8 James Laska 2011-05-24 19:39:17 UTC
(In reply to comment #3)
> Created attachment 500684 [details]
> screenshot

Another screenshot is available at http://yfrog.com/i3100mediaimag0015j

Comment 9 Brian Lane 2011-05-24 20:28:06 UTC
That tiny image is really quite useless. Can you get a better one?

Also, on the running system what does parted -l do? If this is the CHS guessing bug then it should blow up as well.

Comment 10 Kyle Pablo 2011-05-24 22:42:51 UTC
Created attachment 500711 [details]
better screenshot?

This one should be better.  The original was compressed in size and resolution.

Comment 11 Kyle Pablo 2011-05-24 22:46:18 UTC
Does it matter if I do 'parted -l' or 'parted /dev/sda -s p | tee /mnt/usb/parted.sda'

Comment 12 Brian Lane 2011-05-24 22:52:57 UTC
Either is fine, if it is the CHS bug it will be obvious.

Comment 13 Kyle Pablo 2011-05-25 02:35:56 UTC
Created attachment 500722 [details]
parted -l output

Comment 14 Kyle Pablo 2011-05-25 02:37:46 UTC
Created attachment 500723 [details]
screentshot actual output

Comment 15 James Laska 2011-05-25 12:32:35 UTC
(In reply to comment #13)
> Created attachment 500722 [details]
> parted -l output

Hi Kyle, thanks for the attachment.  Please note, most developers aren't huge
fans of attaching text/plain output as a word document.  I've converted your
attachment to a simple text document, and included it below to aid any other tests in finding this issue when searching for known failures.

Number Start   End    Size   Type     File system  Flags

1      1049kB  525MB  524MB  primary  ext4         boot
2      525MB   160GB  160GB  primary               lvm
Backtrace has 13 calls on stack:
13: /lib64/libparted.so.0(ped_assert+0x2e) [0x7f2c8002babe]
12: /lib64/libparted.so.0(+0x3c036) [0x7f2c80055036]
11: /lib64/libparted.so.0(+0x3c41e) [0x7f2c8005541e]
10: /lib64/libparted.so.0(+0x3cae6) [0x7f2c80055ae6]
9: /lib64/libparted.so.0(ped_disk_add_partition+0x1a3) [0x7f2c80031873]
8: /lib64/libparted.so.0(+0x3e279) [0x7f2c80057279]
7: /lib64/libparted.so.0(+0x3ef95) [0x7f2c80057f95]
6: /lib64/libparted.so.0(ped_disk_new+0x58) [0x7f2c80031cd8]
5: parted() [0x4071b1]
4: parted() [0x407f7a]
3: parted(main+0x1483) [0x4063c3]
2: /lib64/libc.so.6(__libc_start_main+0xed) [0x7f2c7f83243d]
1: parted() [0x406411]

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 (2.3)
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 (head_size <= 63) at dos.c:661 in function probe_partition_for_geom()
failed.
Aborted (core dumped)

Comment 16 Kyle Pablo 2011-05-27 17:29:30 UTC
Can we get an update on this bug?

Comment 17 Brian Lane 2011-05-27 19:18:01 UTC
Do you have a USB flash drive plugged in? This error is usually seen with factory partitioned USB sticks, and in that case the work around is to erase the partition table using dd if=/dev/zero of=/dev/DEVICE bs=1M count=1 and re-partition it.

I have a new build of parted for f15 in updates-testing that fixes this by removing the assertion when the CHS guess fails.

*** This bug has been marked as a duplicate of bug 704669 ***

Comment 18 Kyle Pablo 2011-05-27 20:40:23 UTC
Yes I do have a a USB flash drive plugged in.  If I unplug it the problem will go away?

Comment 19 Brian Lane 2011-05-27 20:58:55 UTC
Probably so.