NetBSD Problem Report #55841

From www@netbsd.org  Sat Dec  5 08:20:22 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B246B1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  5 Dec 2020 08:20:22 +0000 (UTC)
Message-Id: <20201205082021.963351A923B@mollari.NetBSD.org>
Date: Sat,  5 Dec 2020 08:20:21 +0000 (UTC)
From: jbryn@students.wcpss.net
Reply-To: jbryn@students.wcpss.net
To: gnats-bugs@NetBSD.org
Subject: Mowitz: mfpmath=sse segfaults on gcc10/i386
X-Send-Pr-Version: www-1.0

>Number:         55841
>Category:       pkg
>Synopsis:       Mowitz: mfpmath=sse segfaults on gcc10/i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 05 08:25:00 +0000 2020
>Originator:     Jackson Bryn
>Release:        NetBSD-current 9.99.76
>Organization:
N/A
>Environment:
build.localdomain 9.99.76 NetBSD 9.99.76 (GENERIC) #0: Mon Nov 30 07:53:42 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
Mowitz segfaults in draw_segment due to SSE optimization causing undefined behavior. Tested this on a Haswell CPU in 32-bit mode, VMWare.
>How-To-Repeat:
Install siag and Mowitz with mfpmath=sse (also used -O2, march/mtune=bonnell, and -fomit-frame-pointer + -pipe). Make sure to use lang/gcc10 to give exact reproduction.
>Fix:
Workaround is to just force -mfpmath to 387.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.