NetBSD Problem Report #59752

From riz@pomegranate.tastylime.net  Mon Nov 10 18:09:47 2025
Return-Path: <riz@pomegranate.tastylime.net>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 412871A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Nov 2025 18:09:47 +0000 (UTC)
Message-Id: <20251110180232.077F464F9D4@pomegranate.tastylime.net>
Date: Mon, 10 Nov 2025 18:02:32 +0000 (UTC)
From: riz@NetBSD.org
Reply-To: riz@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: crash in sysinst installing 11-BETA
X-Send-Pr-Version: 3.95

>Number:         59752
>Category:       install
>Synopsis:       Crash in sysinst installing NetBSD 11.0_BETA
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 10 18:10:00 +0000 2025
>Last-Modified:  Mon Nov 10 18:20:13 +0000 2025
>Originator:     riz@NetBSD.org
>Release:        NetBSD 11.0_BETA
>Organization:

>Environment:
System: NetBSD  11.0_BETA NetBSD 11.0_BETA (GENERIC) #0: Tue Oct 28 15:00:36 UTC 2025  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	When trying to install to the booted SSD, sysinst crashes when "Use default partition sizes"
	is chosen.
>How-To-Repeat:
	This may be a "don't do that" situation, but a crash is less than ideal.

	I booted a USB SSD with the install image on it, intending to install to the
	same disk:

[     5.740742] sd0: 465 GB, 476940 cyl, 64 head, 32 sec, 512 bytes/sect x 976773168 sectors
[     5.840088] sd0: fabricating a geometry
[     6.070087] sd0: GPT GUID: dbe14200-b40e-11f0-8000-000000000000
[     6.080088] dk0 at sd0: "EFI system", 262144 blocks at 2048, type: msdos
[     6.158654] dk1 at sd0: "NBImgRoot", 4853760 blocks at 264192, type: ffs
[     7.890086] boot device: sd0[     5.690290] sd0: fabricating a geometry

	When installing, I chose "Install NetBSD to hard disk", then selected sd0 for
the install.  (sd0 (466G, PSSD T7) was the menu selection). The geometry was fine,
so at the "What would you like to do?" menu, I chose "c: Use default partition sizes"
and ... Boom:

          │assertion "parts->num_part == 0" failed: file "/usr/src/usr.sbin/sysinst/arch/amd64/../../bsddisklabel.c", line 1738, function "replace_by_default"ons                            │
[1]   Abort trap (core dumped) ${cmd} different partitions (not GPT) │
          │ x: Cancel                                                │
To return to the installer, quit this shell by typing 'exit' or ^D.──┘


>Fix:
	none given - I assume I'll be able to work around this, but the crash isn't great.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Mon, 10 Nov 2025 18:20:13 +0000
Responsible-Changed-Why:
take


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.