[Bug 1604] cfdisk doesn't run

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Sun Aug 14 22:17:08 PDT 2005


http://bugs.linuxfromscratch.org/show_bug.cgi?id=1604





------- Additional Comments From chris at beaker67.com  2005-08-14 23:17 -------
root at chris:/usr/src/util-linux-2.12q/fdisk# gdb --args ./cfdisk 
-P t GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and 
you are welcome to change it and/or distribute copies of it under 
certain conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details. This GDB was configured as "i686-pc-linux-gnu"...Using host 
libthread_db library "/lib/libthread_db.so.1". 
(gdb) run
Starting program: /usr/src/util-linux-2.12q/fdisk/cfdisk -P t

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()

I tried compiling cfdisk with optimizations, but util-linux 
apparently has a problem compiling anything with CFLAGS being set, 
and I couldn't figure out how to make it work. However, I noticed 
that util-linux 2.13-pre1 will work fine with CFLAGS (and yes, its 
cfdisk program has the same problem as the one in 2.12q) so I 
compiled that program with -O, and successfully ran it...

root at chris:/usr/src/util-linux-2.13-pre1/fdisk# ./cfdisk -P t
Partition Table for /dev/hda

         ---Starting---      ----Ending----    Start     Number of
 # Flags Head Sect Cyl   ID  Head Sect Cyl     Sector    Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- ----------- -----------
 1  0x80    1    1    0 0x07  254   63 1023          63    45592407
 2  0x80  254   63 1023 0x83  254   63 1023    45592470    35150220
 3  0x80  254   63 1023 0x83  254   63 1023    80742690    35150220
 4  0x00  254   63 1023 0x83  254   63 1023   115892910     1317330



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the lfs-book mailing list