NetBSD Problem Report #57384
From www@netbsd.org Sat Apr 29 19:57:52 2023
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))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 631231A923F
for <gnats-bugs@gnats.NetBSD.org>; Sat, 29 Apr 2023 19:57:52 +0000 (UTC)
Message-Id: <20230429195750.D3D8D1A9241@mollari.NetBSD.org>
Date: Sat, 29 Apr 2023 19:57:50 +0000 (UTC)
From: c@bow.st
Reply-To: c@bow.st
To: gnats-bugs@NetBSD.org
Subject: zpool import -a # coredumps with long lvm volume names.
X-Send-Pr-Version: www-1.0
>Number: 57384
>Category: bin
>Synopsis: zpool import -a # coredumps with long lvm volume names.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 29 20:00:00 +0000 2023
>Originator: Mathew, Cherry G.
>Release: 10.0_BETA
>Organization:
Self
>Environment:
NetBSD x200s 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Tue Apr 25 16:17:59 UTC 2023 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
I have several lvm volumes with long prefixes.
...
ACTIVE '/dev/zfs-cache/dom0' [10.00 GiB] inherit
ACTIVE '/dev/zfs-cache/byi-web' [8.00 GiB] inherit
ACTIVE '/dev/zfs-cache/netbsd-builder-swap' [4.00 GiB] inherit
ACTIVE '/dev/zfs-cache/netbsd-proxy-swap' [2.00 GiB] inherit
ACTIVE '/dev/zfs-cache/netbsd-webapps-swap' [4.00 GiB] inherit
...
These show up truncated in the sysctl MIB entry hw.disknames as follows:
... zfs--cache-dom0 zfs--cache-byi- zfs--cache-netb zfs--cache-netb zfs--cache-netb ...
Taylor Campbel (riastradh@) helped narrow this down to zpool being unable to handle duplicates, when it consults hw.disknames.
Please either document, or fix.
>How-To-Repeat:
x200s# zpool import -a
Assertion failed: (avl_find() succeeded inside avl_add()), file /usr/src/external/cddl/osnet/lib/libavl/../../dist/common/avl/avl.c, line 649.
[1] Abort trap (core dumped) zpool import -a
x200s#
>Fix:
(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-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.