bin/90299: Segmentation fault in fdisk

soko1 sokolhacker at mail.ru
Mon Dec 12 10:10:21 PST 2005


>Number:         90299
>Category:       bin
>Synopsis:       Segmentation fault in fdisk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 12 18:10:01 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


More information about the freebsd-bugs mailing list