parted module crashes

Bug #61406 reported by Gustavo Carneiro
4
Affects Status Importance Assigned to Milestone
python-parted (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

root@spectrum:~ # python /tmp/test.py
Erro de bus (core dumped)
root@spectrum:~ # cat /tmp/test.py
import parted

parted.init()

d = parted.Disk("/dev/hda")

print d.get_part_list()

root@spectrum:~ #

Revision history for this message
Gustavo Carneiro (gjc) wrote :

Version information:
python-parted: 0.11.2ubuntu5
parted: 1.7.1-2.1ubuntu3
OS: ubuntu edgy amd64 (but could also be reproduced in ubuntu dapper i386)

valgrind shows:

==17129== Invalid read of size 8
==17129== at 0x4014CFE: (within /lib/ld-2.4.so)
==17129== by 0x400A29D: (within /lib/ld-2.4.so)
==17129== Address 0x54AD458 is 24 bytes inside a block of size 26 alloc'd
==17129== at 0x4A2080D: malloc (vg_replace_malloc.c:149)
==17129== by 0x400865F: (within /lib/ld-2.4.so)
==17129==
==17129== Invalid read of size 8
==17129== at 0x571FE10: ped_disk_next_partition (in /lib/libparted-1.7.so.1.0.0)
==17129== Address 0x9261C7150951170C is not stack'd, malloc'd or (recently) free'd
==17129==
==17129== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==17129== General Protection Fault
==17129== at 0x571FE10: ped_disk_next_partition (in /lib/libparted-1.7.so.1.0.0)
==17129== by 0x0: ???

Revision history for this message
Gustavo Carneiro (gjc) wrote :

hmm.. python-parted no longer exists in Feisty?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. I can confirm this in Dapper with 0.11.2ubuntu4 but I doubt this will ever be fixed because the package has been orphaned.

Changed in python-parted:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.