Date: 22 Aug 2009 11:47:49 -0000 From: Oliver Lehmann <oliver@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Oliver Lehmann <oliver@FreeBSD.org> Subject: bin/138065: gpart dumps core Message-ID: <20090822114749.6370.qmail@avocado.salatschuessel.net> Resent-Message-ID: <200908221220.n7MCK7B3021333@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138065 >Category: bin >Synopsis: gpart dumps core >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 22 12:20:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Oliver Lehmann >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: System: FreeBSD 8.0-BETA2 i386 >Description: 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 >How-To-Repeat: - add a new single empty disk to your system - configure this disk with gpart, prepend /dev to your devicenames >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090822114749.6370.qmail>