Bug 3160 - diskdrake fail in libparted
Summary: diskdrake fail in libparted
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Pascal Terjan
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, Triaged
Depends on:
Blocks:
 
Reported: 2011-10-24 02:51 CEST by Italo Ramirez
Modified: 2012-06-22 22:05 CEST (History)
5 users (show)

See Also:
Source RPM: parted
CVE:
Status comment:


Attachments

Description Italo Ramirez 2011-10-24 02:51:13 CEST
Description of problem: 


How reproducible: run diskdrake or drakconf (local disks)


Steps to Reproduce:
1.# diskdrake
2.Backtrace has 15 calls on stack:
  15: /usr/lib64/libparted.so.0(ped_assert+0x31) [0x7fb2cab93251]
  14: /usr/lib64/libparted.so.0(+0x3c0e6) [0x7fb2cabbd0e6]
  13: /usr/lib64/libparted.so.0(+0x3c863) [0x7fb2cabbd863]
  12: /usr/lib64/libparted.so.0(+0x3d50d) [0x7fb2cabbe50d]
  11: /usr/lib64/libparted.so.0(ped_disk_add_partition+0x1fb) [0x7fb2cab999bb]
  10: /usr/lib64/libparted.so.0(+0x3ea35) [0x7fb2cabbfa35]
  9: /usr/lib64/libparted.so.0(+0x3ec15) [0x7fb2cabbfc15]
  8: /usr/lib64/libparted.so.0(ped_disk_new+0x75) [0x7fb2cab9a475]
  7: /usr/lib/libDrakX/auto/c/stuff/stuff.so(XS_c__stuff_get_disk_type+0x1b0) [0x7fb2cb014f78]
  6: /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE/libperl.so(Perl_pp_entersub+0x530) [0x7fb2cca797f0]
  5: /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE/libperl.so(Perl_runops_standard+0x20) [0x7fb2cca70d20]
  4: /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE/libperl.so(perl_run+0x140) [0x7fb2cca19210]
  3: /usr/bin/perl(main+0x154) [0x400e84]
  2: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7fb2cb969c3d]
  1: /usr/bin/perl() [0x400c49]
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@gnu.org containing at least the version (2.3) and the following message:  Assertion (head_size <= 63) at dos.c:661 in function probe_partition_for_geom() failed.
3.http://img41.imageshack.us/img41/3982/mga1diskdrakeerror.png

This problem occurs in both a desktop pc (amd athlon) and a notebook (hp pavilion g series)
Manuel Hiebel 2011-10-24 18:45:39 CEST

Component: New RPM package request => RPM Packages
Source RPM: (none) => drakxtools

Comment 1 Dave Hodgins 2011-10-24 20:56:44 CEST
I cannot recreate the problem here on my i586 cauldron installation.

Please attach the output of "sfdisk -l -uS /dev/sda", for each
disk (hard drive or flash drive), in the system.

CC: (none) => davidwhodgins

Comment 2 Italo Ramirez 2011-10-24 21:45:14 CEST
only 1 HD...

# sfdisk -l -uS /dev/sda

Disco /dev/sda: 60801 cilindros, 255 cabezas, 63 sectores/pista
Atención: la partición extendida no empieza en un límite de cilindro.
DOS y Linux interpretarán el contenido de forma diferente.

Unidades = sectores de 512 bytes, contando desde 0

   Disp.  Inicio  Principio   Fin   Nº sect.  Id  Sistema
/dev/sda1   *      2048    206847     204800   7  HPFS/NTFS
/dev/sda2        206848 133097471  132890624   7  HPFS/NTFS
/dev/sda3     133098588 483942059  350843472   5  Extendida
/dev/sda4             0         -          0   0  Vacía
/dev/sda5     133098591 343220974  210122384   7  HPFS/NTFS
/dev/sda6     343228788 376354754   33125967  83  Linux
/dev/sda7     376354818 378330749    1975932  82  Linux swap / Solaris
/dev/sda8     378330813 483942059  105611247  83  Linux


My partitions HP Pavilion g4 by lshw command:
           *-disk
                description: ATA Disk
                product: ST9500325AS
                vendor: Seagate
                physical id: 0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 0005
                serial: S2W1HZR5
                size: 465GiB (500GB)
                capabilities: partitioned partitioned:dos
                configuration: ansiversion=5 signature=638f667a
              *-volume:0
                   description: Windows NTFS volume
                   physical id: 1
                   bus info: scsi@0:0.0.0,1
                   logical name: /dev/sda1
                   logical name: /media/win_c
                   version: 3.1
                   serial: 32f4-9589
                   size: 98MiB
                   capacity: 100MiB
                   capabilities: primary bootable ntfs initialized
                   configuration: clustersize=4096 created=2011-10-16 19:42:59 filesystem=ntfs label=Reservado para el sistema mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted
              *-volume:1
                   description: Windows NTFS volume
                   physical id: 2
                   bus info: scsi@0:0.0.0,2
                   logical name: /dev/sda2
                   logical name: /media/win_e
                   version: 3.1
                   serial: 0ea56cac-3185-5348-8da4-e9600b9471fe
                   size: 63GiB
                   capacity: 63GiB
                   capabilities: primary ntfs initialized
                   configuration: clustersize=4096 created=2011-10-16 19:43:07 filesystem=ntfs label=Windows 7 mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted
              *-volume:2
                   description: Extended partition
                   physical id: 3
                   bus info: scsi@0:0.0.0,3
                   logical name: /dev/sda3
                   size: 167GiB
                   capacity: 167GiB
                   capabilities: primary extended partitioned partitioned:extended
                 *-logicalvolume:0
                      description: HPFS/NTFS partition
                      physical id: 5
                      logical name: /dev/sda5
                      logical name: /media/win_d
                      capacity: 100GiB
                      configuration: mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted
                 *-logicalvolume:1
                      description: Linux filesystem partition
                      physical id: 6
                      logical name: /dev/sda6
                      logical name: /
                      capacity: 15GiB
                      configuration: mount.fstype=ext4 mount.options=rw,noatime,acl,barrier=1,data=ordered state=mounted
                 *-logicalvolume:2
                      description: Linux swap / Solaris partition
                      physical id: 7
                      logical name: /dev/sda7
                      capacity: 964MiB
                      capabilities: nofs
                 *-logicalvolume:3
                      description: Linux filesystem partition
                      physical id: 8
                      logical name: /dev/sda8
                      logical name: /home
                      capacity: 50GiB
                      configuration: mount.fstype=ext4 mount.options=rw,noatime,acl,barrier=1,data=ordered state=mounted
Comment 3 Dave Hodgins 2011-10-25 00:13:49 CEST
How was the extended partition created?

Normally, the extended partition should end at the end of the drive.

It looks like you were trying to add a partition in the free space, but
the extended partition is full, and you can only have one extended partition.

As a workaround, try running gparted, right click on the extended partition,
select resize/move, and decrease the free space following to zero.  Then
select edit/Apply all operations.

After that, try adding another partition again in diskdrake.

Please report back if that fixes the problem.

Either way, this is a bug in libparted that should be fixed.
Comment 4 Manuel Hiebel 2011-11-10 00:57:51 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

Keywords: (none) => Triaged
Assignee: bugsquad => thierry.vignaud

Thierry Vignaud 2011-11-22 13:27:57 CET

CC: (none) => pterjan

Thierry Vignaud 2011-11-22 13:28:09 CET

Summary: diskdrake fail => diskdrake fail in libparted

Thierry Vignaud 2011-11-22 13:29:17 CET

CC: (none) => thierry.vignaud
Assignee: thierry.vignaud => pterjan

Pascal Terjan 2011-11-22 14:04:05 CET

Source RPM: drakxtools => parted

Comment 5 Pascal Terjan 2011-11-22 14:18:49 CET
The error in libparted is:

Assertion (head_size <= 63) at dos.c:661 in function probe_partition_for_geom() failed.

but it does not say for which partition.

We catch the errors detected by libparted and use drakx own code, unfortunately in this case this is not an error but an assert which kills us...

Reading https://bugzilla.redhat.com/show_bug.cgi?id=138419 it seems to be a known problem where the "fix" is to fix your partitions table (it seems that a common source of problems is the us of ghost...)

What surprises me:
1/ Install succeeded.
   Did you change any of your partitions after installing Mageia ?
2/ It happens on several machines.
   Do those machines have something in common ? Like a USB device connected, same CD in the drive, etc.
vladimir derazhenko 2012-01-07 23:20:04 CET

CC: (none) => derazhenko
Hardware: x86_64 => i586
Version: Cauldron => 1

Manuel Hiebel 2012-01-07 23:26:50 CET

Hardware: i586 => x86_64
Version: 1 => Cauldron

Comment 6 Marja Van Waes 2012-05-06 18:09:48 CEST
@ Italo

Please reply to the questions in comment 5

Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 7 Marja Van Waes 2012-05-26 13:05:09 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja
Comment 8 Marja Van Waes 2012-06-22 22:05:31 CEST
No reply to comments 5, 6 and 7

Closing as old

Feel free to reopen if the bug is still valid and provide the requested information

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.