cfdisk segfaults
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Fix Released
|
Medium
|
LaMont Jones |
Bug Description
$ sudo cfdisk /dev/hdc segfaults immediately, both on i386 and amd64 (current
Breezy version).
The stack trace is not very helpful:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x0000000000000000 in ?? ()
#2 0x0000000100000000 in ?? ()
#3 0x0000000000000003 in ?? ()
[...] just zeros
#105 0x0000000000000000 in ?? ()
#106 0x0000000006dcb674 in ?? ()
#107 0x0000000000400e1d in ?? ()
#108 0x00002aaaaaab2d43 in _dl_rtld_di_serinfo () from /lib64/
Previous frame inner to this frame (corrupt stack?)
The trace does not get any better when building with -g (and still -O2). The
segfault does not happen at all if building with -O0 or -O1 (*sigh*).
So a temporary workaround is to build with -O1 until this is sorted out.
util-linux (2.12p-5ubuntu2) breezy; urgency=low patches/ 60_opt_ O1.dpatch:
.
* debian/
- MCONFIG, configure: Build with -O1 instead of -O2 to work around cfdisk
segfault.
- Yay for upstream build systems which do not support specifying CFLAGS or
OPT without breaking.
- Ubuntu #13486
Temporary workaround for now.