NetBSD Problem Report #57473

From  Sun Jun 18 15:10:06 2023
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 480561A923E
	for <>; Sun, 18 Jun 2023 15:10:06 +0000 (UTC)
Message-Id: <>
Date: Sun, 18 Jun 2023 15:10:04 +0000 (UTC)
Subject: 9.3-RELEASE/amd64 base - mtree checksum mismatch usr/lib/i386/
X-Send-Pr-Version: www-1.0

>Number:         57473
>Category:       install
>Synopsis:       9.3-RELEASE/amd64 base - mtree checksum mismatch usr/lib/i386/
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 18 15:15:00 +0000 2023
>Originator:     Henryk Paluch
>Release:        9.3-RELEASE from NetBSD-9.3-amd64.iso
NetBSD netbsd-vm 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022 amd64
When verifying mtree of base.tar.xz set in 9.3-RELEASE there is reported single file mismatch (1st hash is expected, 2nd is found):

        sha256 (0xa6bc0eba3aa08db46f668ad10e6002feb62273b23ce020c86ec8b8f394680d2d, 0x5a99994d8af8c44d6a558267ea1a0e0fe3906b0bc3902be1656272b4347f5399)

Here is example how you can reproduce problem independent of installation (so we can rule out file corruption on extraction).

- curl package installed
- doas package installed and configured to allow to become root

How to reproduce:

curl -fLO
curl -fLO
grep -w base.tar.xz MD5 > MD5.base

# NOTE: MD5.base contains: MD5 (base.tar.xz) = 1ca2d3cc3d057eb6880da34a2b8012dc

md5 -c MD5.base # no error reported
mkdir -p unpack
doas tar xpf base.tar.xz -C unpack
cd unpack && doas mtree -e -f etc/mtree/set.base

        sha256 (0xa6bc0eba3aa08db46f668ad10e6002feb62273b23ce020c86ec8b8f394680d2d, 0x5a99994d8af8c44d6a558267ea1a0e0fe3906b0bc3902be1656272b4347f5399)

This behaviour was tested on 2 different NetBSD 9.3 installations - one VM under Linux/KVM another one bare-metal with same results.

However found two similar reports, but for other NetBSD versions and sometimes other libraries:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.