NetBSD Problem Report #60331

From gson@gson.org  Sun Jun 14 13:50:16 2026
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0F7CB1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Jun 2026 13:50:16 +0000 (UTC)
Message-Id: <20260614135009.A3523254542@guava.gson.org>
Date: Sun, 14 Jun 2026 16:50:09 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: Easily triggered sysinst segfault
X-Send-Pr-Version: 3.95
X-From4GNATS: "Andreas Gustafsson via gnats" <gnats-admin@NetBSD.org>

>Number:         60331
>Category:       install
>Synopsis:       Easily triggered sysinst segfault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 14 13:55:00 +0000 2026
>Closed-Date:    Mon Jun 22 17:44:26 +0000 2026
>Last-Modified:  Wed Jun 24 07:15:01 +0000 2026
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2026.06.14.02.10.58
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

On a freshly installed NetBSD-current system, start sysinst from the
shell and make the following selections:

a: Installation messages in English
e: Utility menu
d: Partition a disk
x: Finish partitioning

This results in:

[1]   Segmentation fault (core dumped) sysinst

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: install/60331: Easily triggered sysinst segfault
Date: Sun, 14 Jun 2026 17:55:37 +0200

 On Sun, Jun 14, 2026 at 01:55:00PM +0000, Andreas Gustafsson via gnats wrote:
 > On a freshly installed NetBSD-current system, start sysinst from the
 > shell and make the following selections:
 > 
 > a: Installation messages in English
 > e: Utility menu
 > d: Partition a disk
 > x: Finish partitioning
 > 
 > This results in:
 > 
 > [1]   Segmentation fault (core dumped) sysinst

 I can not reproduce this - maybe it is related to your available disks
 or pre-configured raid/cgd/... ?

 Martin

From: Andreas Gustafsson <gson@gson.org>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@netbsd.org
Subject: Re: install/60331: Easily triggered sysinst segfault
Date: Sun, 14 Jun 2026 20:32:51 +0300

 Martin Husemann via gnats wrote:
 >  I can not reproduce this - maybe it is related to your available disks
 >  or pre-configured raid/cgd/... ?

 Quite possibly.  The VM where I noticed the issue is using MBR
 partitioning, and when I tried the same sysinst selections on a VM
 using GPT partitioning, I couldn't reproduce the issue, either.

 On the machine where the problem appeared, the dmesg output includes:

   wd0: 3072 MB, 6241 cyl, 16 head, 63 sec, 512 bytes/sect x 6291456 sectors
   ...
   root on wd0a dumps on wd0b

 and on the one where I couldn't reproduce it:

   wd0: 2048 MB, 4161 cyl, 16 head, 63 sec, 512 bytes/sect x 4194304 sectors
   dk0 at wd0: "9d3a7eb9-b2d1-4815-b958-4e03783330cf", 3800960 blocks at 64, type: ffs
   dk1 at wd0: "5fc58598-78c4-4aa8-8140-5b928df58c64", 393216 blocks at 3801024, type: swap
   ...
   root on dk0 dumps on dk

 Also, the former is hosted on Linux/qemu/kvm, and the latter on NetBSD/qemu/nvmm.
 -- 
 Andreas Gustafsson, gson@gson.org

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60331 CVS commit: src/usr.sbin/sysinst
Date: Sun, 21 Jun 2026 16:47:37 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Jun 21 16:47:37 UTC 2026

 Modified Files:
 	src/usr.sbin/sysinst: partman.c

 Log Message:
 PR 60331: deal with the machine not having any disk available for
 partitioning when leaving the extended partitioning menu.


 To generate a diff of this commit:
 cvs rdiff -u -r1.57 -r1.58 src/usr.sbin/sysinst/partman.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Mon, 22 Jun 2026 17:44:26 +0000
State-Changed-Why:
Confirmed fixed.  Thanks.


From: "Julian Coleman" <jdc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60331 CVS commit: [netbsd-11] src/usr.sbin/sysinst
Date: Wed, 24 Jun 2026 07:14:10 +0000

 Module Name:	src
 Committed By:	jdc
 Date:		Wed Jun 24 07:14:09 UTC 2026

 Modified Files:
 	src/usr.sbin/sysinst [netbsd-11]: Makefile.inc gpt.c label.c msg.mi.de
 	    msg.mi.en msg.mi.es msg.mi.fr msg.mi.pl partman.c util.c
 	src/usr.sbin/sysinst/arch/amd64 [netbsd-11]: Makefile
 	src/usr.sbin/sysinst/arch/i386 [netbsd-11]: Makefile
 	src/usr.sbin/sysinst/arch/sparc64 [netbsd-11]: Makefile

 Log Message:
 Pull up the following revisions, requested by martin in ticket #319:

 x usr.sbin/sysinst/Makefile.inc			1.53
 usr.sbin/sysinst/arch/amd64/Makefile		1.3
 usr.sbin/sysinst/arch/i386/Makefile		1.3
 usr.sbin/sysinst/arch/sparc64/Makefile		1.2
 usr.sbin/sysinst/gpt.c				1.33
 usr.sbin/sysinst/label.c			1.52
 usr.sbin/sysinst/msg.mi.de			1.56-1.58
 usr.sbin/sysinst/msg.mi.en			1.57-1.59
 usr.sbin/sysinst/msg.mi.es			1.47-1.49
 usr.sbin/sysinst/msg.mi.fr			1.50-1.52
 usr.sbin/sysinst/msg.mi.pl			1.53-1.55
 usr.sbin/sysinst/partman.c			1.58
 usr.sbin/sysinst/util.c				1.79,1.80

 	sysinst(8): PR 60331, 60224, 60133, 60333, 60334:
 	various installer fixes:
 	 - deal with the machine not having any disk available
 	   for partitioning when leaving the extended partitioning menu.
 	 - add a message when base32 (and simmilar) sets are missing
 	   on a CD image
 	 - deal with GPT size differing from disk size
 	 - fix bugs when deleting partitions after starting with the
 	   default partitions


 To generate a diff of this commit:
 cvs rdiff -u -r1.50 -r1.50.2.1 src/usr.sbin/sysinst/Makefile.inc
 cvs rdiff -u -r1.32 -r1.32.4.1 src/usr.sbin/sysinst/gpt.c
 cvs rdiff -u -r1.51 -r1.51.4.1 src/usr.sbin/sysinst/label.c
 cvs rdiff -u -r1.53.2.1 -r1.53.2.2 src/usr.sbin/sysinst/msg.mi.de
 cvs rdiff -u -r1.54.2.1 -r1.54.2.2 src/usr.sbin/sysinst/msg.mi.en
 cvs rdiff -u -r1.44.2.1 -r1.44.2.2 src/usr.sbin/sysinst/msg.mi.es
 cvs rdiff -u -r1.48 -r1.48.2.1 src/usr.sbin/sysinst/msg.mi.fr
 cvs rdiff -u -r1.50.2.1 -r1.50.2.2 src/usr.sbin/sysinst/msg.mi.pl
 cvs rdiff -u -r1.57 -r1.57.4.1 src/usr.sbin/sysinst/partman.c
 cvs rdiff -u -r1.77.4.1 -r1.77.4.2 src/usr.sbin/sysinst/util.c
 cvs rdiff -u -r1.2 -r1.2.14.1 src/usr.sbin/sysinst/arch/amd64/Makefile
 cvs rdiff -u -r1.2 -r1.2.14.1 src/usr.sbin/sysinst/arch/i386/Makefile
 cvs rdiff -u -r1.1 -r1.1.42.1 src/usr.sbin/sysinst/arch/sparc64/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.