[parted-devel] endless segfault in exception handler
Olaf Hering
olh at suse.de
Sat Apr 8 15:46:46 UTC 2006
A sig11 is not handled correctly. Removing the partition table from a
disk with a mac label causes an endless loop.
ped_log2() returns -1, the input 'n' is 0.
(gdb) r /dev/sdb mklabel mac rm 1
Starting program: /dev/shm/xxx/sbin/parted /dev/sdb mklabel mac rm 1
Error: Partition map has no partition map entry!
Fix/Cancel? f
Program received signal SIGSEGV, Segmentation fault.
0x0fd6c924 in strcmp () from /lib/power4/libc.so.6
(gdb) bt
#0 0x0fd6c924 in strcmp () from /lib/power4/libc.so.6
#1 0x10009bc0 in command_line_get_ex_opt (prompt=0x1000e254 "", options=65) at ui.c:1031
#2 0x1000a83c in exception_handler (ex=0x1003d5f0) at ui.c:448
#3 0x0ff892f8 in do_throw () at exception.c:193
#4 0x0ff89444 in ped_exception_throw (ex_type=PED_EXCEPTION_ERROR, ex_opts=65, message=0xffdad64 "Partition map has no partition map entry!") at exception.c:237
#5 0x0ffc5b2c in _disk_add_part_map_entry (disk=0x1002d8d8, warn=1) at mac.c:209
#6 0x0ffc5d70 in mac_write (disk=0x1002d8d8) at mac.c:977
#7 0x0ff90ac0 in ped_disk_commit_to_dev (disk=0x1002d8d8) at disk.c:466
#8 0x0ff90b38 in ped_disk_commit (disk=0x1003f640) at disk.c:489
#9 0x10003a30 in do_rm (dev=<value optimized out>) at parted.c:1669
#10 0x10003348 in command_run (cmd=<value optimized out>, dev=0x0) at command.c:138
#11 0x10009904 in non_interactive_mode (dev=0xffc93138, cmd_list=<value optimized out>, argc=4, argv=0xffc9340c) at ui.c:1319
#12 0x10007884 in main (argc=<value optimized out>, argv=0xffc9340c) at parted.c:2245
More information about the parted-devel
mailing list