[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

            Bug ID: 234689
           Summary: java/openjdk8: Math.asin() (and StrictMath.asin())
                    seem to be broken
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: [hidden email]
          Reporter: [hidden email]
          Assignee: [hidden email]
             Flags: maintainer-feedback?([hidden email])
 Attachment #200862 text/plain
         mime type:

Created attachment 200862
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200862&action=edit
Java test program

In openjdk8 (v8.192.26) the Math.asin() method returns wrong values. This can
be reproduced by the attached test program (CheckMathIssue.java). Previous
versions (e.g. 8.172) did return correct results. The comments in the test
program show results of the test program for four different platforms:
- FreeBSD 11.2 openjdk8-8.192
- FreeBSD 11.2 openjdk8-8.172
- MacOs 10.14 Oracle JDK 8.192
- Linux OSMC (ARM) 4.14 openjdk8-8.191

The latter three return identical (and correct) results. So, there seems to be
a bug in  the current version of openjdk8.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

maintainer-feedback requested: [Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
Bugzilla Automation <[hidden email]> has asked freebsd-java mailing list
<[hidden email]> for maintainer-feedback:
Bug 234689: java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be
broken
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689



--- Description ---
In openjdk8 (v8.192.26) the Math.asin() method returns wrong values. This can
be reproduced by the attached test program (CheckMathIssue.java). Previous
versions (e.g. 8.172) did return correct results. The comments in the test
program show results of the test program for four different platforms:
- FreeBSD 11.2 openjdk8-8.192
- FreeBSD 11.2 openjdk8-8.172
- MacOs 10.14 Oracle JDK 8.192
- Linux OSMC (ARM) 4.14 openjdk8-8.191

The latter three return identical (and correct) results. So, there seems to be
a bug in  the current version of openjdk8.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

Kubilay Kocak <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           See Also|                            |https://bugs.freebsd.org/bu
                   |                            |gzilla/show_bug.cgi?id=2345
                   |                            |79
           Keywords|                            |needs-qa

--- Comment #1 from Kubilay Kocak <[hidden email]> ---
This may be related to bug 234579, if not the underlying cause of it.

If it is the same issue, please:

1) Set this issue as "Blocks" bug 234579, or
2) Close this issue as a duplicate of 234579, and update the summary of the
latter to:

java/openjdk8: Math.asin() and StrictMath.asin() broken (affects at least
math/geogebra)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |234579


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234579
[Bug 234579] math/geogebra: angles broken
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

--- Comment #2 from Tobias C. Berner <[hidden email]> ---
Given that it works going back to the previous version, and me noticing the
issue on december 12, the bug must have been introduced in one of the following
:


------------------------------------------------------------------------
r487219 | glewis | 2018-12-11 04:23:57 +0100 (Di., 11 Dez. 2018) | 5 lines

. Fix build on gcc based architectures (e.g. powerpc64)

PR:             233883
Submitted by:   Piotr Kubaj <[hidden email]>

------------------------------------------------------------------------
r486983 | glewis | 2018-12-08 20:09:28 +0100 (Sa., 08 Dez. 2018) | 5 lines

. Fix SCTP support.

PR:             230321
Submitted by:   Timo Voelker <[hidden email]>

------------------------------------------------------------------------
r486976 | glewis | 2018-12-08 19:43:56 +0100 (Sa., 08 Dez. 2018) | 5 lines

. Fix compilation on powerpc64

PR:             223834
Submitted by:   Curtis Hamilton <[hidden email]>

------------------------------------------------------------------------
r486973 | glewis | 2018-12-08 19:35:30 +0100 (Sa., 08 Dez. 2018) | 4 lines

. Update to 8u192.

PR:             230364

------------------------------------------------------------------------
r485094 | jkim | 2018-11-16 18:30:17 +0100 (Fr., 16 Nov. 2018) | 7 lines

- Fix reversed ccache version detection logic.  Enable ccache support.
- Use '-pthread' for Clang.  Clang supports '-pthread' on all BSDs except
for Darwin. [1]

Reported by:    Achilleas Mantzios <[hidden email]> [1]
Tested by:      Achilleas Mantzios <[hidden email]> [1]

------------------------------------------------------------------------

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #3 from [hidden email] ---
This also breaks astro/josm and astro/osmosis.

(angles show up as multiples of 90 degrees, or results manifest as NaN)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

Tobias C. Berner <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|maintainer-feedback?(java@F |maintainer-feedback-
                   |reeBSD.org)                 |

--- Comment #4 from Tobias C. Berner <[hidden email]> ---
java@, any opinions or progress?

Mfg Tobias

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #5 from [hidden email] ---
I have seen the same thing, but with Math.atan2 (which is the same as
StrictMath.atan2), so that function is also broken.

I have seen it working correctly on 1.8.0.162 and 1.8.0.172 and incorrectly on
1.8.0.192b26. I have made a full diff of 1.8.0.162 and 1.8.0.192 in the
java.lang native code (implementing StrictMath.c), and there are no differences
there, so it might be build-related (maybe clang vs gcc)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

--- Comment #6 from [hidden email] ---
I have reverted my openjdk8 package to openjdk8-8.181.13_1 (and locked it
to prevent automatic pkg upgrade). It was built locally with a poudriere.
That version is the last version I have that is working correctly (with
astro/josm and astro/osmosis).

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 234689] java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234689

Greg Lewis <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
           Assignee|[hidden email]            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "[hidden email]"