NetBSD Problem Report #55633
From www@netbsd.org Mon Aug 31 17:27:27 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 B9B5F1A923A
for <gnats-bugs@gnats.NetBSD.org>; Mon, 31 Aug 2020 17:27:27 +0000 (UTC)
Message-Id: <20200831172727.007AB1A923F@mollari.NetBSD.org>
Date: Mon, 31 Aug 2020 17:27:26 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: awk gets FPE_FLTDIV when building librump on an alpha builder
X-Send-Pr-Version: www-1.0
>Number: 55633
>Category: port-alpha
>Synopsis: awk gets FPE_FLTDIV when building librump on an alpha builder
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: thorpej
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 31 17:30:00 +0000 2020
>Closed-Date: Tue Sep 01 08:23:50 +0000 2020
>Last-Modified: Tue Sep 01 08:23:50 +0000 2020
>Originator: Jason Thorpe
>Release: netbsd-current as of 31 Aug, 2020
>Organization:
RISCy Business
>Environment:
NetBSD/alpha running netbsd-9-stable userland and 9.99.71 kernel
>Description:
Host system is DS25 running a netbsd-9-stable userland and a netbsd-current kernel. Standard netbsd-current build tools were build using build.sh.
When building librump, the awk script that supports rump symbol renaming encounters:
/home/thorpej/nbsd/tools/bin/nbawk: floating point exception: Floating point divide by zero
input record number 38, file
source line number 1
/home/thorpej/nbsd/tools/bin/nbawk: floating point exception: Floating point divide by zero
input record number 36, file
source line number 1
.
.
.
...which causes the symbol renaming to be incomplete, leading to subsequent rump-related build failures.
Substituting the host awk (netbsd-9-stable /usr/bin/awk) fixes the issue.
>How-To-Repeat:
Use build.sh to bootstrap the build tools on a NetBSD/alpha build host, and attempt to build librump.
>Fix:
>Release-Note:
>Audit-Trail:
From: Jason Thorpe <thorpej@me.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/55633: awk gets FPE_FLTDIV when building librump on an alpha
builder
Date: Mon, 31 Aug 2020 11:26:10 -0700
"cvs update -rnetbsd-9" in src/external/historical/nawk and rebuilding =
host-tool "nbawk" fixes the problem, so it's a change in awk itself =
that's causing the trouble.
-- thorpej
From: Jason Thorpe <thorpej@me.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/55633: awk gets FPE_FLTDIV when building librump on an alpha
builder
Date: Mon, 31 Aug 2020 15:49:48 -0700
> On Aug 31, 2020, at 11:26 AM, Jason Thorpe <thorpej@me.com> wrote:
>=20
> "cvs update -rnetbsd-9" in src/external/historical/nawk and rebuilding =
host-tool "nbawk" fixes the problem, so it's a change in awk itself =
that's causing the trouble.
The FPE occurs in is_number(), which is called with the argument =
"nanotime". The "r =3D=3D HUGE_VAL" comparison generates the SIGFFPE.
-- thorpej
Responsible-Changed-From-To: bin-bug-people->thorpej
Responsible-Changed-By: thorpej@NetBSD.org
Responsible-Changed-When: Tue, 01 Sep 2020 08:23:50 +0000
Responsible-Changed-Why:
Take.
State-Changed-From-To: open->closed
State-Changed-By: thorpej@NetBSD.org
State-Changed-When: Tue, 01 Sep 2020 08:23:50 +0000
State-Changed-Why:
>Unformatted:
(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.