NetBSD Problem Report #59366

From www@netbsd.org  Sun Apr 27 15:46:18 2025
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)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9F4E21A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 27 Apr 2025 15:46:18 +0000 (UTC)
Message-Id: <20250427154617.8910E1A923C@mollari.NetBSD.org>
Date: Sun, 27 Apr 2025 15:46:17 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: compat32: missing machdep.unaligned_sigbus
X-Send-Pr-Version: www-1.0

>Number:         59366
>Category:       port-arm
>Synopsis:       compat32: missing machdep.unaligned_sigbus
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 27 15:50:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The AlignedBSD Armory, Inc(ompatible).
>Environment:
NetBSD 10.99.14 (GENERIC64) #489: Fri Apr 25 10:50:12 CEST 2025 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64
>Description:
Test case: lib/libc/gen/t_siginfo/sigbus_adraln

Duration: 0.007380 seconds
Termination reason

FAILED: /work/src/tests/lib/libc/gen/t_siginfo.c:472: rv == 0 not met

    464 ATF_TC_BODY(sigbus_adraln, tc)
    465 {
    466 	struct sigaction sa;
    467 
    468 #if defined(__alpha__) || defined(__arm__)
    469 	int rv, val;
    470 	size_t len = sizeof(val);
    471 	rv = sysctlbyname("machdep.unaligned_sigbus", &val, &len, NULL, 0);
    472 	ATF_REQUIRE(rv == 0);
    473 	if (val == 0)
    474 		atf_tc_skip("No SIGBUS signal for unaligned accesses");
    475 #endif

https://nxr.netbsd.org/xref/src/tests/lib/libc/gen/t_siginfo.c#464
>How-To-Repeat:
cd /usr/tests/lib/libc/gen
atf-run t_siginfo | atf-report
>Fix:
Yes, please!

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.