[Regression] AArch64: log and cos/sin intrinsics give incorrect results

Bug #1796982 reported by dann frazier on 2018-10-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-lts (Ubuntu)
Critical
Unassigned
Cosmic
Critical
Unassigned

Bug Description

Upstream bug: https://bugs.openjdk.java.net/browse/JDK-8211105
Reference (w/ workaround): http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2018-September/000155.html

$ cat LogTest.java
public class LogTest {
    public static void main(String[] args) {
        double x = 4.9E-324;
        System.out.println(Math.log(x));
        System.out.println(StrictMath.log(x));
    }
}

$ cat CosTest.java
public class CosTest {
    public static void main(String[] args) {
        System.out.println(Math.cos(1647100));
    }
}

$ javac LogTest.java

With 10.0.2+13-1ubuntu1 (correct):
$ java LogTest
-744.4400719213812
-744.4400719213812

With 11~28-3ubuntu1 (incorrect):
$ java LogTest
-710.989276736877
-744.4400719213812

$ javac CosTest.java
With 10.0.2+13-1ubuntu1 (correct):
$ java CosTest
0.7833030468809974

With 11~28-3ubuntu1 (incorrect):
$ java CosTest
-0.2745634094819721

dann frazier (dannf) on 2018-10-09
summary: - [Regression] AArch64: Math.log intrinsic gives incorrect results
+ [Regression] AArch64: log and cos/sin intrinsics give incorrect results
description: updated
dann frazier (dannf) on 2018-11-07
description: updated
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-lts - 11.0.1+13-3ubuntu1

---------------
openjdk-lts (11.0.1+13-3ubuntu1) disco; urgency=medium

  * Sync packages with 11.0.1+13-3:
    - Tighten dependency on debhelper on recent releases. Closes: #911694.
    - Reproducible properties file header when SOURCE_DATE_EPOCH is specified.
      Closes: #914278.
    - Add SOURCE_DATE_EPOCH support to the javadoc tool. Closes: #783938.
    - Disable AArch64 intrinsics for sin, cos and log. Closes: #910188.
      LP: #1796982.
    - Add support for DEB_BUILD_OPTIONS=terse. Closes: #912211.

 -- Matthias Klose <email address hidden> Fri, 30 Nov 2018 12:15:34 +0100

Changed in openjdk-lts (Ubuntu):
status: New → Fix Released
dann frazier (dannf) on 2018-12-03
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers