#699136 partman hangs with specific mbr/usbsticks

#699136#5
Date:
2013-01-27 19:40:19 UTC
From:
To:

#699136#10
Date:
2013-01-28 02:07:42 UTC
From:
To:
daily build.

I've just debugged this further.  the first hang is on the 30 hook
(50%), not 35; subsequent killing and re-running of partman makes it
hang on 35 (54%).

And, even more interesting: this only happens when a particular USB
stick is installed.  And, it's the same USB stick that causes parted to
assert, as documented in http://bugs.debian.org/698609. (that bug report
also includes an image of the mbr for the particular USB stick.

I'm pretty sure that the weirdness in that mbr is what causes partman to
hang, and i've just been able to verify that using kvm and the mbr from
that image, like so:

0 dkg@alice:~/tmp/699136$ wget -q -O sdb.mbr 'http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=sdb.mbr;att=1;bug=698609'
0 dkg@alice:~/tmp/699136$ wget -q http://ftp.nl.debian.org/debian/dists/testing/main/installer-i386/current/images/netboot/debian-installer/i386/{linux,initrd.gz}
0 dkg@alice:~/tmp/699136$ sha1sum *
60e7842e55a60631291390a98334a95a59426ab7  initrd.gz
46753db4103c8cc0a55e8040aa652bb4e7cea916  linux
6e69b9c81e9f4fe3773d18ff9aac7006ca852962  sdb.mbr
0 dkg@alice:~/tmp/699136$ qemu-img create -f qcow vda.img 4G
Formatting 'vda.img', fmt=qcow size=4294967296 encryption=off
0 dkg@alice:~/tmp/699136$ dd if=sdb.mbr of=usb.img
1+0 records in
1+0 records out
512 bytes (512 B) copied, 2.5861e-05 s, 19.8 MB/s
0 dkg@alice:~/tmp/699136$ dd if=/dev/zero of=usb.img bs=1M count=1 seek=4096
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00085567 s, 1.2 GB/s
0 dkg@alice:~/tmp/699136$ kvm -kernel linux -initrd initrd.gz -usb -usbdevice disk:format=raw:usb.img -drive file=vda.img,format=qcow,if=virtio


if you step through the installer in this guest, it hangs at the
described point.

#699136#15
Date:
2013-07-17 09:38:31 UTC
From:
To:
reassign 693107 partman-auto
reassign 670702 partman-auto
reassign 615074 lvm2
reassign 676172 partman
severity 691046 wishlist
retitle 644430 document the need for a bios boot partition when using GPT
forcemerge 644430 691046
reassign 691046 release-notes
reassign 683747 partman-lvm
reassign 671879 partman-base
thanks

Hi,

thank you for submitting installation reports, much appreciated.

I read through all the ("partman" related) bugs mentioned here and am closing
them now as
- they (finally) indicated success and/or
- I know from first hand experience that the functionality is working in
Wheezy and/or
- they only contained very little information and/or
- they were (very) old.

If I've closed a bug incorrectly please do reply or just file a new one -
thats often better, as the bug log will be more clear.


cheers,
        Holger

#699136#22
Date:
2013-08-31 10:52:13 UTC
From:
To:
reassign 699136 partman
retitle 699136 partman hangs with specific mbr/usbsticks
tags 696755 +confirmed
Hi,

thank you for submitting installation reports, much appreciated.

I read through all the bugs mentioned here (and I'm sure they were read by
several people at the time they were submitted) and am closing them now as/if
- they (finally) indicated success and/or
- I know from first hand experience that the functionality is working in
Wheezy and/or
- they only contained very little information and/or
- they contained user errors and/or
- they were caused by broken hardware and/or
- they have been from a development phase where things were not stable and/or
- they are quite old (and thus likely fixed today) and/or
- moreinfo was asked and not given or
- they are wishlist but rather special + exotic and not have been acted on for
years. (See http://blog.liw.fi/posts/wishlist-bugs/ why it's often useful to
close wishlist bugs.)

If I've closed a bug incorrectly please do reply (it's easy to reopen and I'll
do if requested) or just file a new one - thats often better, as the bug log
will be clearer and shorter and not contain cruft.


cheers,
        Holger

#699136#27
Date:
2013-08-31 11:41:17 UTC
From:
To:
reopen 699136
# sorry, Daniel!
thanks

I didn't mean to close this one...
[...]


cheers,
         Holger