1. STEPS TO REPRODUCE 2. MITIGATING STEPS 1. STEPS TO REPRODUCE ===================== # create 4G sparse empty in tmp, and register as loop0 dd of=/tmp/blocks bs=1M count=0 seek=4096 sudo losetup -f /tmp/blocks # use gparted without problems on the single block dev sudo ./src/gpartedbin /dev/loop0 # no problem # create an empty MSDOS partition table (device label) sudo ./src/gpartedbin /dev/loop0 # no problem # create any primary partition of any known type, and # refresh (CTRL+R) or restart sudo ./src/gpartedbin /dev/loop0 # no problem # create any partition of type 'unformatted' (raw) and # after applying it in gparted window, the refresh # immediately bails out with the reported stack trace sudo gdb --args ./src/gpartedbin /dev/loop0 (gdb) break main (gdb) run (gdb) break abort (gdb) break exit (gdb) catch throw (gdb) run # create the raw partition and apply, after 'ok' # (close?) gparted crashes on refreshing devices (gdb) bt # (see comment #6) # remove the raw partition (using fdisk, dd etc) sudo ./src/gpartedbin /dev/loop0 # no problem 2. MITIGATING STEPS =================== Seeing as the crash occurs in a conditional block active only when BTRFS_SUPPORT is enabled, I thought about ./configure --disable-btrfs ./make -s sudo ./src/gpartedbin Lo and behold: problem gone. Other problems may still lurk, see my patch on https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/617885