NetBSD Problem Report #53107
From msaitoh@five.execsw.org Mon Mar 19 06:21:49 2018
Return-Path: <msaitoh@five.execsw.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 692B87A167
for <gnats-bugs@gnats.NetBSD.org>; Mon, 19 Mar 2018 06:21:49 +0000 (UTC)
Message-Id: <20180319062147.3D6D788612B@five.execsw.org>
Date: Mon, 19 Mar 2018 15:21:47 +0900 (JST)
From: msaitoh@execsw.org
Reply-To: msaitoh@execsw.org
To: gnats-bugs@NetBSD.org
Subject: gpt(8) with no device argument problems
X-Send-Pr-Version: 3.95
>Number: 53107
>Category: bin
>Synopsis: gpt(8) with no device argument problems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: mlelstv
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 19 06:25:00 +0000 2018
>Closed-Date: Sun Nov 20 08:00:14 +0000 2022
>Last-Modified: Sun Nov 20 08:00:14 +0000 2022
>Originator: msaitoh@execsw.org
>Release: NetBSD 8.99.12
>Organization:
>Environment:
netbsd-8 or -current
Architecture: x86_64
Machine: amd64
>Description:
On netbsd-8 or -current:
gpt show -a
Segmentation fault (core dumped)
Other than "set -l" and "type -l" take device argument.
If no device argument with such command, it dumps core.
gpt(8)'s SYNOPSIS says:
SYNOPSIS
gpt [-nrqv] [-m mediasize] [-s sectorsize] [-T timestamp] command
[command_options] device
It's incorrect for "set -l" and "type -l"
>How-To-Repeat:
See above.
>Fix:
Fix both code and the manual.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->mlelstv
Responsible-Changed-By: mlelstv@NetBSD.org
Responsible-Changed-When: Mon, 19 Mar 2018 07:03:03 +0000
Responsible-Changed-Why:
I have a fix
State-Changed-From-To: open->analyzed
State-Changed-By: mlelstv@NetBSD.org
State-Changed-When: Mon, 19 Mar 2018 07:03:03 +0000
State-Changed-Why:
problem is understood
State-Changed-From-To: analyzed->closed
State-Changed-By: mlelstv@NetBSD.org
State-Changed-When: Sun, 20 Nov 2022 08:00:14 +0000
State-Changed-Why:
Fixed in main.c 1.11
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.