[Parted-maintainers] Bug#519532: gnu-fdisk: segfaults in very simple cases

Rogério Brito rbrito at ime.usp.br
Fri Mar 13 10:42:51 UTC 2009


Package: gnu-fdisk
Severity: important

Hi.

I'm filing this bug as important, but it actually has very strong
consequences and would probably merit to be classified as a higher
severity, since the segfaults render the package unusable.

Now, to the bug report. Some time ago, I installed gnu-fdisk and it was a
very nice improvement over the plain fdisk that comes with Linux. I was
pleasantly surprised by all its features and so on.

I am, BTW, using sid (*quite* up-to-date, with upgrades every 6 hours) on
amd64 (with a Pentium D, dual core processor) and, unfortunately, it is not
working anymore.

I just discovered it when I was going to make a backup with mondo (which
calls mindi, to generate a bootable image based on my kernel and loaded
modules).

Mondo was failing and the messages weren't very clear. On the other hand, I
had an xconsole running and I saw many messages from parted2fdisk saying
that it segfaulted:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mar 13 05:53:06 chagas kernel: [24723.304193] parted2fdisk[29921]: segfault at ff ip 00007f391b1efd60 sp 00007fff241cb358 error 4 in libc-2.9.so[7f391b176000+149000]
Mar 13 05:54:16 chagas kernel: [24793.185016] parted2fdisk[30962]: segfault at ff ip 00007f6a2469ad60 sp 00007fff2d678808 error 4 in libc-2.9.so[7f6a24621000+149000]
Mar 13 05:56:23 chagas kernel: [24919.494077] parted2fdisk[9953]: segfault at ff ip 00007fa868f86d60 sp 00007fff71f650e8 error 4 in libc-2.9.so[7fa868f0d000+149000]
Mar 13 05:56:57 chagas kernel: [24954.317220] parted2fdisk[10320]: segfault at ff ip 00007f31abe16d60 sp 00007fffb4df2f78 error 4 in libc-2.9.so[7f31abd9d000+149000]
Mar 13 05:59:53 chagas kernel: [25129.915943] parted2fdisk[10697]: segfault at ff ip 00007f62b9b7fd60 sp 00007fffc2b5bcd8 error 4 in libc-2.9.so[7f62b9b06000+149000]
Mar 13 06:05:08 chagas kernel: [25444.908298] parted2fdisk[11109]: segfault at ff ip 00007f824d90ad60 sp 00007fff568e6a78 error 4 in libc-2.9.so[7f824d891000+149000]
Mar 13 06:05:43 chagas kernel: [25480.276711] parted2fdisk[11475]: segfault at ff ip 00007f99964d0d60 sp 00007fff9f4ae638 error 4 in libc-2.9.so[7f9996457000+149000]
Mar 13 06:06:06 chagas kernel: [25503.240227] parted2fdisk[11841]: segfault at ff ip 00007f412b6a3d60 sp 00007fff3467f808 error 4 in libc-2.9.so[7f412b62a000+149000]
Mar 13 06:08:54 chagas kernel: [25671.008943] parted2fdisk[23301]: segfault at ff ip 00007f7f48255d60 sp 00007fff512333a8 error 4 in libc-2.9.so[7f7f481dc000+149000]
Mar 13 06:11:12 chagas kernel: [25809.389084] parted2fdisk[23664]: segfault at ff ip 00007fed2142ed60 sp 00007fff2a40a588 error 4 in libc-2.9.so[7fed213b5000+149000]
Mar 13 06:14:46 chagas kernel: [26022.919014] parted2fdisk[24054]: segfault at ff ip 00007fbf479d9d60 sp 00007fff509b5b38 error 4 in libc-2.9.so[7fbf47960000+149000]
Mar 13 06:25:44 chagas kernel: [26680.939544] parted2fdisk[24467]: segfault at ff ip 00007f7bc0512d60 sp 00007fffc94f0668 error 4 in libc-2.9.so[7f7bc0499000+149000]
Mar 13 06:25:50 chagas kernel: [26686.977511] parted2fdisk[24831]: segfault at ff ip 00007f8d3bf4ad60 sp 00007fff44f270a8 error 4 in libc-2.9.so[7f8d3bed1000+149000]
Mar 13 06:31:55 chagas kernel: [27051.791521] fdisk[24913]: segfault at ff ip 00007f1e9baaad60 sp 00007fffa4a86c68 error 4 in libc-2.9.so[7f1e9ba31000+149000]
Mar 13 06:32:00 chagas kernel: [27056.753770] fdisk[24914]: segfault at ff ip 00007f98be894d60 sp 00007fffc7872a08 error 4 in libc-2.9.so[7f98be81b000+149000]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I'm using an 80GB IDE HD on a machine with an ICH5 Intel chipset and upon
issuing fdisk -l /dev/hda as root, the program segfaults, as you can see
above. The segfault ocours right before the disk partition is read.

I am using kernel 2.6.29-rc6 and glibc was updated yesterday from 2.9-4 to
2.9-5, if I am not mistaken. I have not tried to recompile gnu-fdisk to see
if the problem is just a compilation away because I'm quite pressed on
time.


Regards, Rogério Brito

-- 
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org





More information about the Parted-maintainers mailing list