[Parted-maintainers] Bug#463720: gnu-fdisk: gfdisk -l /dev/sda segfaults; sfdisk -l /dev/sda ok

Arthur Marsh arthur.marsh at internode.on.net
Sat Dec 20 14:49:33 UTC 2008


Package: gnu-fdisk
Version: 1.1-1
Followup-For: Bug #463720


when I run gfdisk -l /dev/sda I get a segfault:

_llseek(3, 2146830336, [2146830336], SEEK_SET) = 0
read(3, 
"\353X\220MSWIN4.1\0\2\10(\0\2\0\0\0\0\370\0\0?\0\377\0\4\373?\0K"..., 
512) = 512
_llseek(3, 32256, [32256], SEEK_SET)    = 0
read(3, 
"\353<\220MSWIN4.1\0\2 at A\0\2\0\2\0\0\370\0\1?\0\377\0?\0\0\0\206"..., 
512) = 512
write(1, "\n"..., 1
)                    = 1
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

The "other" fdisk, reports:

sfdisk -l /dev/sda

Disk /dev/sda: 1019 cylinders, 134 heads, 62 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 1019/134/62).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 
0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+    260     261-   2096451    6  FAT16
/dev/sda2        261     526     266    2136645    f  W95 Ext'd (LBA)
                end: (c,h,s) expected (526,254,63) found (525,254,63)
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5        261+    526     266-   2136613+   b  W95 FAT32

The hard disk is reported as:

EATA/DMA 2.0x: Copyright (C) 1994-2003 Dario Ballabio.
EATA config options -> tm:1, lc:y, mq:16, rs:y, et:n, ip:y, ep:n, pp:y.
EATA0: 2.0C, PCI 0xe010, IRQ 5, BMST, SG 122, MB 64.
EATA0: wide SCSI support enabled, max_id 16, max_lun 8.
EATA0: SCSI channel 0 enabled, host target ID 7.
scsi1 : EATA/DMA 2.0x rev. 8.10.00
scsi 1:0:6:0: Direct-Access     IBM      DCAS-34330W      S65A PQ: 0 
ANSI: 2
scsi 1:0:6:0: cmds/lun 16, sorted, simple tags.
sd 1:0:6:0: [sda] 8466688 512-byte hardware sectors (4335 MB)
sd 1:0:6:0: [sda] Write Protect is off
sd 1:0:6:0: [sda] Mode Sense: b3 00 00 08
sd 1:0:6:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
support DPO or FUA
sd 1:0:6:0: [sda] 8466688 512-byte hardware sectors (4335 MB)
sd 1:0:6:0: [sda] Write Protect is off
sd 1:0:6:0: [sda] Mode Sense: b3 00 00 08
sd 1:0:6:0: [sda] Write cache: enabled, read cache: enabled, doesn't 
support DPO or FUA
 sda: sda1 sda2 < sda5 >
sd 1:0:6:0: [sda] Attached SCSI disk

Please also note that I get lock-ups loading eata on 2.6.23 and later 
kernels, but can load eata on 2.6.18 and 2.6.22 kernels successfully.

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-git1 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnu-fdisk depends on:
ii  libc6          2.7-16                    GNU C Library: Shared libraries
ii  libncurses5    5.7+20081213-1            shared libraries for terminal hand
ii  libparted1.8-1 1.8.8.git.2008.03.24-11.1 The GNU Parted disk partitioning s
ii  libreadline5   5.2-3                     GNU readline and history libraries
ii  libuuid1       1.41.3-1                  universally unique id library

gnu-fdisk recommends no packages.

gnu-fdisk suggests no packages.

-- no debconf information





More information about the Parted-maintainers mailing list