NetBSD Problem Report #59871

From www@netbsd.org  Wed Dec 31 13:14:05 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) 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 B8D9A1A923C
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 31 Dec 2025 13:14:04 +0000 (UTC)
Message-Id: <20251231131403.450001A923D@mollari.NetBSD.org>
Date: Wed, 31 Dec 2025 13:14:03 +0000 (UTC)
From: nikola@radojevic.rs
Reply-To: nikola@radojevic.rs
To: gnats-bugs@NetBSD.org
Subject: Tailscale on i386 was built with SSE enabled and crashes on hardware without SSE
X-Send-Pr-Version: www-1.0

>Number:         59871
>Category:       pkg
>Synopsis:       Tailscale on i386 was built with SSE enabled and crashes on hardware without SSE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bsiegert
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 31 13:15:00 +0000 2025
>Last-Modified:  Fri Jan 02 17:30:06 +0000 2026
>Originator:     Nikola Radojevi&#263;
>Release:        10.1
>Organization:
/
>Environment:
NetBSD i486-netbsd 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
Tailscale on i386 (which actually targets 486) crashes on my hardware with an "Illegal instruction" exception. When I opened the coredump in gdb, the offending instruction was `xorps  %xmm0,%xmm0`, which a 486 class cpu doesn't have. Go's toolchain does support the option of using softfloats instead, unfortunately not x87.
>How-To-Repeat:
Install tailscale and run tailscaled, you'll get:
```
i486-netbsd$ tailscaled
[1]   Illegal instruction (core dumped) tailscaled
```
>Fix:
The go toolchain should be instruction to use softfloats instead, they don't support x87 and 486 class cpus don't have SSE

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 31 Dec 2025 13:17:03 +0000
Responsible-Changed-Why:
Ryo, can you please give it a look?
(over to MAINTAINER)


Responsible-Changed-From-To: ryoon->bsiegert
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 31 Dec 2025 13:31:48 +0000
Responsible-Changed-Why:
That's more a general Go problem for actual 486 or similar.

Benny, can you please give it a look?
(over to lang/go* MAINTAINER)


From: nikola <nikola@radojevic.rs>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/59871: Tailscale on i386 was built with SSE enabled and
 crashes on hardware without SSE
Date: Wed, 31 Dec 2025 14:23:05 +0100

 On 25/12/31 01:15PM, gnats-admin@netbsd.org wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `pkg/59871'.
 > The individual assigned to look at your
 > report is: pkg-manager. 
 > 
 > >Category:       pkg
 > >Responsible:    pkg-manager
 > >Synopsis:       Tailscale on i386 was built with SSE enabled and crashes on hardware without SSE
 > >Arrival-Date:   Wed Dec 31 13:15:00 +0000 2025
 > 

 Also, it's probably a good idea to use the softfloat option for all go
 packages, not just tailscale. :)

From: Benny Siegert <bsiegert@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, nikola@radojevic.rs
Subject: Re: pkg/59871: Tailscale on i386 was built with SSE enabled and
 crashes on hardware without SSE
Date: Wed, 31 Dec 2025 18:05:49 +0000 (UTC)

 On Wed, 31 Dec 2025, nikola wrote:

 > Also, it's probably a good idea to use the softfloat option for all go
 > packages, not just tailscale. :)

 This is exactly my question. Are you asking to use Softfloat for all Go 
 packages on i386? By default or as an option?

 -- 
 Benny

From: nikola <nikola@radojevic.rs>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/59871: Tailscale on i386 was built with SSE enabled and
 crashes on hardware without SSE
Date: Fri, 2 Jan 2026 14:50:11 +0100

 >  This is exactly my question. Are you asking to use Softfloat for all Go 
 >  packages on i386? By default or as an option?

 Well since the i386 port targets i486, it would make sense to use
 softfloats for every package. I guess, for sse, defining a separate
 target would make sense, but also, I imagine that's a significant amount
 of work.

From: nikola <nikola@radojevic.rs>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/59871: Tailscale on i386 was built with SSE enabled and
 crashes on hardware without SSE
Date: Fri, 2 Jan 2026 11:22:22 +0100

 >  This is exactly my question. Are you asking to use Softfloat for all Go 
 >  packages on i386? By default or as an option?

 Well since the i386 port targets i486, it would make sense to use
 softfloats for every package. I guess, for sse, defining a separate
 target would make sense, but also, I imagine that's a significant amount
 of work.

>Unformatted:

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-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.