parted module crashes
Bug #61406 reported by
Gustavo Carneiro
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.
print d.get_part_list()
root@spectrum:~ #
To post a comment you must log in.
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 malloc. c:149) next_partition (in /lib/libparted- 1.7.so. 1.0.0) next_partition (in /lib/libparted- 1.7.so. 1.0.0)
==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_
==17129== by 0x400865F: (within /lib/ld-2.4.so)
==17129==
==17129== Invalid read of size 8
==17129== at 0x571FE10: ped_disk_
==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_
==17129== by 0x0: ???