Bug 103954 - fdisk segfaults on adding logical partition
Summary: fdisk segfaults on adding logical partition
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: util-linux
Version: beta1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-08 12:31 UTC by Leonard den Ottolander
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-09-11 11:51:05 UTC
Embargoed:


Attachments (Terms of Use)
patch to fix fdisk primary problem (906 bytes, patch)
2003-09-08 13:21 UTC, Leonard den Ottolander
no flags Details | Diff

Description Leonard den Ottolander 2003-09-08 12:31:35 UTC
Description of problem:

 I reported a problem when creating a primary partition with fdisk when all
extended partitions are used for RH 7.3 (bug #67898). The patch I supplied fixed
the problem and was added to RH 8.0.

 For Severn the patch is no longer available. The issue was "fixed" upstream,
but the logic is flawed. The current situation is that if all extended
partitions are used up adding a new partition will also ask if you want to add a
logical partition. Choosing this option makes fdisk segfault:

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       765   6144831    b  Win95 FAT32
/dev/hda2           766      1530   6144862+   b  Win95 FAT32
/dev/hda3          1531     14217 101908327+   f  Win95 Ext'd (LBA)
/dev/hda5          1531      2805  10241406    b  Win95 FAT32
/dev/hda6          2806      3315   4096543+   b  Win95 FAT32
/dev/hda7          3316      3825   4096543+   b  Win95 FAT32
/dev/hda8          3826      3966   1132551   82  Linux swap
/dev/hda9          3967     10378  51504358+  83  Linux
/dev/hda10        10379     10890   4112608+  83  Linux
/dev/hda11        10891     11402   4112608+  83  Linux
/dev/hda12        11403     11914   4112608+  83  Linux
/dev/hda13        11915     12426   4112608+  83  Linux
/dev/hda14        12427     12938   4112608+  83  Linux
/dev/hda15        12939     13450   4112608+  83  Linux
/dev/hda16        13451     14217   6160896   83  Linux
 
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
Segmentation fault (core dumped)

Please revert to the patch that I supplied with bug #67898.

Version-Release number of selected component (if applicable):
util-linux-2.11y-25

Comment 1 Leonard den Ottolander 2003-09-08 13:21:37 UTC
Created attachment 94299 [details]
patch to fix fdisk primary problem

The patch makes that fdisk only offers the ability to add a primary partition
when all logical partitions are used.

Comment 2 Elliot Lee 2003-09-11 11:32:49 UTC
Applied.

Comment 3 Leonard den Ottolander 2003-09-11 13:25:54 UTC
Good. I contacted the upstream maintainer Andries Brouwer <aeb> about
this issue as well, but I didn't receive a reply (yet).



Note You need to log in before you can comment on or make changes to this bug.