bug-fdisk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-fdisk] Debian bug 463720 - segfault using /dev/sda


From: Christian
Subject: [bug-fdisk] Debian bug 463720 - segfault using /dev/sda
Date: Sun, 28 Dec 2008 01:13:48 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221

Arthur Marsh wrote:

Hi, has this list seen and discussed the bug reported at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463720

I have recently installed Debian unstable on a machine with a SCSI disk on a DPT 2044W SCSI controller, and am concerned that gfisk -l /dev/sda crashes with a segmentation fault.

I am happy to recompile gfdisk from source or provide other information to help identify the problem.

Regards,

Arthur.


_______________________________________________
Bug-fdisk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-fdisk

I try to use GNU fdisk (version 1.1) with `/dev/hda', wich is the hd where my GNU system live, and I get the same warning about "used partition(s)". If I select to cancel the operation I don't get Segmentation
Violation signal but something goes wrong with partition tables.
I try to comment out line 1268 of src/common.c and recompile fdisk:

   ~/# ./fdisk /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.

   Using /dev/hda
   Command (m for help): s
   Warning: Partition(s) on /dev/hda are being used.
      i   Ignore
      c   Cancel
   c
   Command (m for help): p

   Disk /dev/hda: 30 GB, 30014046720 bytes
   255 heads, 63 sectors/track, 3649 cylinders
   Units = cylinders of 16065 * 512 = 8225280 bytes

   ...

So, comment out "src/common.c line 1268"

   ped_disk_destroy (*disk);

And recompile GNU fdisk seem to be enough. But i get a strange error with fdisk -l:

   ~/# ./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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]