This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Math errors
- From: Jim Wilson <jimw at sifive dot com>
- To: Alistair Francis <alistair23 at gmail dot com>
- Cc: Joseph Myers <joseph at codesourcery dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 6 Jan 2020 17:29:26 -0800
- Subject: Re: Math errors
- References: <CAKmqyKNQXGVriszbWvfyAys-8aoe-ShWDqXr9H7fMs9M8Htm5A@mail.gmail.com> <alpine.DEB.2.21.1912302227040.17472@digraph.polyomino.org.uk> <alpine.DEB.2.21.1912302229041.17472@digraph.polyomino.org.uk> <CAKmqyKO6tkQjTkP85z3PoX13Y+Xgd1S6zZZo0HjZQsSMW=E=9A@mail.gmail.com>
On Thu, Jan 2, 2020 at 6:18 PM Alistair Francis <alistair23@gmail.com> wrote:
> There are a handful of math tests that seem to fail, but if I manually
> run the test a few times I will eventually get a pass. Any hints on
> what to do there?
There is a known bug in the RISC-V linux port where FP regs can leak
across fork and exec. This is normally not a fatal problem, except
for some tests that assume that the FP exception flags are clear on
program start. This can be false if they were set in the parent
process, which can cause some glibc math test failures. This can
result in failures that appear/disappear when run manually versus from
the testsuite driver. There are only about 5 tests that are affected.
The bug was finally fixed about a year and a half after I first
reported it. That happened only a few months ago. If you don't have
a recent enough version of the linux kernel you may not have the fix.
Jim