From owner-freebsd-bugs@FreeBSD.ORG Sat Aug 22 12:20:07 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B6D4106568F for ; Sat, 22 Aug 2009 12:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33E798FC1F for ; Sat, 22 Aug 2009 12:20:07 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7MCK7OV021334 for ; Sat, 22 Aug 2009 12:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7MCK7B3021333; Sat, 22 Aug 2009 12:20:07 GMT (envelope-from gnats) Resent-Date: Sat, 22 Aug 2009 12:20:07 GMT Resent-Message-Id: <200908221220.n7MCK7B3021333@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Lehmann Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF7A31065694 for ; Sat, 22 Aug 2009 12:13:12 +0000 (UTC) (envelope-from olivleh1@avocado.salatschuessel.net) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id 4F38A8FC19 for ; Sat, 22 Aug 2009 12:13:12 +0000 (UTC) Received: (qmail 6371 invoked by uid 0); 22 Aug 2009 11:47:49 -0000 Message-Id: <20090822114749.6370.qmail@avocado.salatschuessel.net> Date: 22 Aug 2009 11:47:49 -0000 From: Oliver Lehmann To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Oliver Lehmann Subject: bin/138065: gpart dumps core X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Lehmann List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2009 12:20:07 -0000 >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: