NetBSD Problem Report #60551
From www@netbsd.org Thu Aug 6 23:11:22 2026
Return-Path: <www@netbsd.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 "YR2" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4EA661A9252
for <gnats-bugs@gnats.NetBSD.org>; Thu, 6 Aug 2026 23:11:22 +0000 (UTC)
Message-Id: <20260806231121.1373E1A9253@mollari.NetBSD.org>
Date: Thu, 6 Aug 2026 23:11:21 +0000 (UTC)
From: tekk@sdf.org
Reply-To: tekk@sdf.org
To: gnats-bugs@NetBSD.org
Subject: Installer Segfaults While Setting Up CGD
X-Send-Pr-Version: www-1.0
X-From4GNATS: "tekk@sdf.org via gnats" <gnats-admin@NetBSD.org>
>Number: 60551
>Category: install
>Synopsis: Installer Segfaults While Setting Up CGD
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: martin
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 06 23:15:00 +0000 2026
>Last-Modified: Sun Aug 09 17:30:04 +0000 2026
>Originator: Danny Wilkins
>Release: 10.1, 11, possibly others
>Organization:
>Environment:
NetBSD 11.0 NetBSD 11.0 (GENERIC) #0: Thu Jul 30 15:23:12 UTC 2026 mkrepro@mkrepro.NetBSD.org:/usr/src/cys/arch/amd64/compile/GENERIC amd64
>Description:
While setting up a CGD partition, the installer segmentation faults after selecting the partition and choosing the "Encrypt" menu option. This occurs on both GPT and MBR partitioned disks.
>How-To-Repeat:
Quickest way:
Start sysinst
Enter the Utility Menu
Partition A Disk
Choose the hard drive.
Partition as GPT, create a partition. The type doesn't matter.
Accept the partitioning
Select the newly created partition in the extended partitioning menu
Select "encrypt"
The installer segfaults.
>Fix:
No fix, but a workaround:
Running cgdconfig commands manually works fine.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: install-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Fri, 07 Aug 2026 05:57:01 +0000
Responsible-Changed-Why:
take
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/60551: Installer Segfaults While Setting Up CGD
Date: Fri, 7 Aug 2026 07:56:18 +0200
Still happens in -current:
#0 0xf67e2a28 in strlen () from /usr/lib/libc.so.12x: Exit x
#1 0xf67b052c in __vfprintf_unlocked_l (fp=fp@entry=0xf68a89e0 <usual+352>,
loc=<optimized out>, fmt0=fmt0@entry=0xbe47034 "%-15s: %s",
ap=ap@entry=0xfff51738) at /work/src/lib/libc/stdio/vfwprintf.c:1317
#2 0xf67b3df4 in vfprintf (fp=0xf68a89e0 <usual+352>,
fmt0=fmt0@entry=0xbe47034 "%-15s: %s", ap=ap@entry=0xfff51738)
at /work/src/lib/libc/compat/../locale/setlocale_local.h:97
#3 0xf698b4b8 in vw_printw (win=win@entry=0xf65dc6e0,
fmt=0xbe47034 "%-15s: %s", ap=ap@entry=0xfff51738)
at /work/src/lib/libcurses/printw.c:138
#4 0xf698b68c in wprintw (win=win@entry=0xf65dc6e0,
fmt=fmt@entry=0xbe47034 "%-15s: %s") at /work/src/lib/libcurses/printw.c:79
#5 0x0be2dae4 in pm_cgd_edit_menufmt (m=<optimized out>, opt=<optimized out>,
arg=0xf65c0540)
at /work/src/usr.sbin/sysinst/arch/macppc/../../partman.c:1302
#6 0x0be01638 in draw_menu_line (m=m@entry=0xf63881c0, opt=opt@entry=4,
cury=cury@entry=5, arg=arg@entry=0xf65c0540, text=0x0) at menu_defs.c:2885
#7 0x0be018a8 in draw_menu (m=m@entry=0xf63881c0, arg=arg@entry=0xf65c0540)
at menu_defs.c:2946
#8 0x0be04d04 in process_req (m=<optimized out>, arg=<optimized out>,
req=<optimized out>) at menu_defs.c:3199
#9 process_menu (num=<optimized out>, num@entry=43, arg=arg@entry=0xf65c0540)
at menu_defs.c:3297
#10 0x0be2d950 in pm_edit (menu_entries_count=menu_entries_count@entry=7,
menu_fmt=menu_fmt@entry=0xbe2da70 <pm_cgd_edit_menufmt>,
action=action@entry=0xbe330f4 <pm_cgd_set_value>,
check_fun=check_fun@entry=0xbe31554 <pm_cgd_check>,
entry_init=entry_init@entry=0xbe31620 <pm_cgd_init>,
entry_init_arg=<optimized out>, dev_ptr=0xf65c0540,
dev_ptr_delta=dev_ptr_delta@entry=0, s=s@entry=0xbe738d4 <cgds_t_info>)
at /work/src/usr.sbin/sysinst/arch/macppc/../../partman.c:340
I will have a look.
Martin
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/60551 (Installer Segfaults While Setting Up CGD)
Date: Sun, 9 Aug 2026 19:26:51 +0200
I think the confusion is about calling pm_cgd_edit_old (wrong in this case)
and pm_cgd_edit_new (to convert the selected partition into a cgd device
first time).
Martin
>Unformatted:
(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.