NetBSD Problem Report #60460

From www@netbsd.org  Sat Jul 18 14:55:24 2026
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 "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A75A51A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Jul 2026 14:55:24 +0000 (UTC)
Message-Id: <20260718145523.BB4851A923D@mollari.NetBSD.org>
Date: Sat, 18 Jul 2026 14:55:23 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: sparc fails to save/restore FPU registers on signal delivery
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60460
>Category:       port-sparc
>Synopsis:       sparc fails to save/restore FPU registers on signal delivery
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 18 15:00:00 +0000 2026
>Last-Modified:  Mon Jul 20 22:40:01 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, 8, 7, 6, 5, 4, ...
>Organization:
The SparcFPU Foundation, Inc.
>Environment:
>Description:
https://releng.netbsd.org/b5reports/sparc/2026/2026.07.17.19.25.53/test.html#kernel_t_signal_and_fpu_double

Test case: kernel/t_signal_and_fpu/double

Duration: 0.090689 seconds
Termination reason

FAILED: /tmp/build/2026.07.17.19.25.53-sparc/src/tests/kernel/t_signal_and_fpu.c:150: test_result=0x43ff4
Test case: kernel/t_signal_and_fpu/float

Duration: 0.082650 seconds
Termination reason

FAILED: /tmp/build/2026.07.17.19.25.53-sparc/src/tests/kernel/t_signal_and_fpu.c:150: test_result=0x506ce
Test case: kernel/t_signal_and_fpu/ldouble

Duration: 0.078114 seconds
Termination reason

FAILED: /tmp/build/2026.07.17.19.25.53-sparc/src/tests/kernel/t_signal_and_fpu.c:150: test_result=0x3e357
>How-To-Repeat:
cd /usr/tests/kernel && atf-run t_signal_and_fpu | atf-report
>Fix:
Yes, please!

#define FPU_CONTEXT in sys/arch/sparc/sparc/machdep.c, perhaps?

Or just remove the #ifdef?

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60460 CVS commit: src/tests/kernel
Date: Mon, 20 Jul 2026 22:37:18 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon Jul 20 22:37:18 UTC 2026

 Modified Files:
 	src/tests/kernel: t_signal_and_fpu.c

 Log Message:
 t_signal_and_fpu: Mark xfail on sparc.

 PR port-sparc/60460: sparc fails to save/restore FPU registers on
 signal delivery


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/t_signal_and_fpu.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 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.