NetBSD Problem Report #58746

From mlelstv@arnold.1st.de  Sat Oct 12 13:21:26 2024
Return-Path: <mlelstv@arnold.1st.de>
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 BDF111A923D
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Oct 2024 13:21:26 +0000 (UTC)
Message-Id: <20241012132044.721BFBC161@arnold.1st.de>
Date: Sat, 12 Oct 2024 15:20:44 +0200 (CEST)
From: mlelstv@netbsd.org
Reply-To: mlelstv@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: aarch64 compat_netbsd32_16: Exec format error
X-Send-Pr-Version: 3.95

>Number:         58746
>Notify-List:    riastradh@NetBSD.org
>Category:       kern
>Synopsis:       aarch64 compat_netbsd32_16: Exec format error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    thorpej
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 12 13:25:00 +0000 2024
>Last-Modified:  Sat Oct 12 17:01:46 +0000 2024
>Originator:     Michael van Elst
>Release:        NetBSD 10.0_STABLE
>Organization:

>Environment:


System: NetBSD victory.netbsd.org 10.0_STABLE NetBSD 10.0_STABLE (VICTORY) #5: Sat Oct 12 07:26:49 UTC 2024 spz@franklin.NetBSD.org:/home/netbsd/10/evbarm-aarch64/obj/sys/arch/evbarm/compile/VICTORY evbarm
Architecture: aarch64
Machine: evbarm
>Description:
Running 32bit code in a netbsd-9 chroot on netbsd-10 (or -current)
requires COMPAT_16.

On aarch64 this fails. A kernel with COMPAT_16 doesn't build
and the compatibility module fails to load with the error:

compat_netbsd32_16: Exec format error

and dmesg entries showing missing symbols:
[     8.816073] kobj_checksyms, 1004: [compat_16]: linker error: symbol `sendsig_sigcontext' not found
[     8.826074] kobj_checksyms, 1004: [compat_16]: linker error: symbol `esigcode' not found
[     8.836073] kobj_checksyms, 1004: [compat_16]: linker error: symbol `compat_16_sys___sigreturn14' not found
[     8.846073] kobj_checksyms, 1004: [compat_16]: linker error: symbol `sigcode' not found

>How-To-Repeat:
Try to bulk build python312 for netbsd-9/earmv{6,7}hf on aarch64.
>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->thorpej
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Sat, 12 Oct 2024 17:01:46 +0000
Responsible-Changed-Why:
Can you take a look?  This is the Arm version of PR 58225.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 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.