NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/59366: compat32: missing machdep.unaligned_sigbus



>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@localhost:/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!



Home | Main Index | Thread Index | Old Index