NetBSD Problem Report #59265
From www@netbsd.org Mon Apr 7 00:50:15 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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9C90E1A923C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 7 Apr 2025 00:50:15 +0000 (UTC)
Message-Id: <20250407005014.950191A923E@mollari.NetBSD.org>
Date: Mon, 7 Apr 2025 00:50:14 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: t_strtod:strtod_hex test is failing
X-Send-Pr-Version: www-1.0
>Number: 59265
>Category: port-vax
>Synopsis: t_strtod:strtod_hex test is failing
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-vax-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 07 00:55:00 +0000 2025
>Originator: Taylor R Campbell
>Release: current
>Organization:
The StrtoBSD Vaxination
>Environment:
>Description:
*** Check failed: /tmp/build/2025.04.04.21.52.19-vax/src/tests/lib/libc/stdlib/t_strtod.c:123: end != str + 4: str=0x1190a end=0x1190c
*** Check failed: /tmp/build/2025.04.04.21.52.19-vax/src/tests/lib/libc/stdlib/t_strtod.c:124: d=0=0x0p+0 signbit=0
*** Check failed: /tmp/build/2025.04.04.21.52.19-vax/src/tests/lib/libc/stdlib/t_strtod.c:132: d=0=0x0p+0 signbit=0
https://releng.netbsd.org/b5reports/vax/2025/2025.04.04.21.52.19/test.html#lib_libc_stdlib_t_strtod_strtod_hex
Not sure why strtod is only consuming `-0' and ignoring `x0'.
The sign bit tests are failing because VAX floating-point doesn't have signed zeroes.
>How-To-Repeat:
cd /usr/tests/lib/libc/stdlib
atf-run t_strtod | atf-report
>Fix:
1. Not sure how to fix the first problem, that it consumes only `-0' and not the following `x0'.
2. Conditionalize the signbit tests on whether the machine has signed zeroes. Or maybe write them as: signbit(d) == signbit(-0.)
(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-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.