[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-fdisk] Debian bug 463720 - segfault using /dev/sda [SOLUTION]
From: |
Christian |
Subject: |
Re: [bug-fdisk] Debian bug 463720 - segfault using /dev/sda [SOLUTION] |
Date: |
Sun, 28 Dec 2008 14:17:55 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221 |
~/# ./fdisk -l /dev/hda
GNU Fdisk 1.1
Copyright (C) 1998 - 2006 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Floating point exception
I will examine it tomorrow and try to fix the bug.
Thank's for report!!! :)
Christian.
_______________________________________________
Bug-fdisk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-fdisk
Stupid bug! :)
Solution is very simple: change "src/ui.c" line 720:
fdisk_do_list_devices(&disk);
removing the `&' operator:
fdisk_do_list_devices(disk);
After recompiling GNU fdisk we have:
~/# ./fdisk -l /dev/hda
GNU Fdisk 1.1
Copyright (C) 1998 - 2006 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Disk /dev/hda: 30 GB, 30014046720 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1825 14659281 c Linux
/dev/hda2 1826 2434 4883760 83 Linux
/dev/hda3 2435 2497 498015 82 Linux swap
/dev/hda4 2498 3649 9245407 83 Linux
~/#
Happy partition lists! ;)
Christian.