bin/138065: gpart dumps core

Oliver Lehmann oliver at
Sat Aug 22 12:20:07 UTC 2009

>Number:         138065
>Category:       bin
>Synopsis:       gpart dumps core
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 22 12:20:06 UTC 2009
>Originator:     Oliver Lehmann
>Release:        FreeBSD 7.2-STABLE i386
System: FreeBSD 8.0-BETA2 i386

when trying to create a partition on an empty disk using gpart it segfaults
when /dev/ is added in front of the device name:

# gpart create -s GPT /dev/da2
da2 created
# gpart add -t freebsd-ufs /dev/da2
Segmentation fault (core dumped)
# gpart add -t freebsd-ufs da2
da2p1 added

it also happens when I use MBR:

# gpart delete -i 1 da2
da2p1 deleted
# gpart destroy da2
da2 destroyed
# gpart create -s MBR da2
da2 created
# gpart add -t freebsd /dev/da2
Segmentation fault (core dumped)
# gpart add -t freebsd da2
da2s1 added

This seems not occur for gmirror devices:

# swapoff /dev/mirror/gm0s1b
# gpart delete -i 2 mirror/gm0s1
mirror/gm0s1b deleted
# gpart add -b 1572864 -s 262144 -t freebsd-swap -i 2 /dev/mirror/gm0s1
mirror/gm0s1b added
# swapon /dev/mirror/gm0s1b

- add a new single empty disk to your system
- configure this disk with gpart, prepend /dev to your devicenames



More information about the freebsd-bugs mailing list