From nobody@FreeBSD.org  Mon Dec 12 18:00:18 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B29FA16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Dec 2005 18:00:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CFBAD43D6B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Dec 2005 18:00:09 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBCI09FB015017
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Dec 2005 18:00:09 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBCI091k015016;
	Mon, 12 Dec 2005 18:00:09 GMT
	(envelope-from nobody)
Message-Id: <200512121800.jBCI091k015016@www.freebsd.org>
Date: Mon, 12 Dec 2005 18:00:09 GMT
From: soko1 <sokolhacker@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Segmentation fault in fdisk
X-Send-Pr-Version: www-2.3

>Number:         90299
>Category:       bin
>Synopsis:       Segmentation fault in fdisk(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 12 18:10:01 GMT 2005
>Closed-Date:    Thu May 24 21:42:35 GMT 2007
>Last-Modified:  Thu May 24 21:42:35 GMT 2007
>Originator:     soko1
>Release:        6.0-STABLE
>Organization:
sokolsoft (sokolsoft.org.ru)
>Environment:
%FreeBSD  6.0-STABLE FreeBSD 6.0-STABLE #0: Fri Dec  2 23:10:42 UTC 2005     root@:/usr/src/sys/i386/compile/GENERIC  i386
%cat /usr/src/.ctm_status
src-6 179

>Description:
#fdisk -B -b /dev/da0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=57461 heads=16 sectors/track=255 (4080 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=57461 heads=16 sectors/track=255 (4080 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 23037147 (11248 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 23037210, size 5526360 (2698 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 28563570, size 205872975 (100523 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
<UNUSED>
Do you want to change the boot code? [n] y 
We haven't changed the partition table yet.  This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=57461 heads=16 sectors/track=255 (4080 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=57461 heads=16 sectors/track=255 (4080 blks/cyl)

Information from DOS bootblock is:
1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 23037147 (11248 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 254/ sector 63
2: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 23037210, size 5526360 (2698 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63
3: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 28563570, size 205872975 (100523 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63
4: <UNUSED>
Should we write new partition table? [n] y

Segmentation fault (core dumped)
----
fdisk.core in http://sokolsoft.org.ru/tmp/fdisk.core.bz2
>How-To-Repeat:
#fdisk -B -b /dev/da0
>Fix:
              
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Apr 27 09:32:29 UTC 2007 
State-Changed-Why:  
To submitter: does the same problem still recur in 6.2? 


Responsible-Changed-From-To: freebsd-bugs->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Apr 27 09:32:29 UTC 2007 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=90299 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu May 24 21:42:15 UTC 2007 
State-Changed-Why:  
Feedback timeout (3 weeks). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90299 
>Unformatted:
