Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jul 2022 14:57:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 264065] java/openjdk8: Crashes on aarch64 when built with clang13: #  Internal Error (assembler_aarch64.hpp:237) .. guarantee(val < (1U << nbits)) failed: Field too big for insn
Message-ID:  <bug-264065-8522-W2FXIORp0O@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264065-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264065-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264065

--- Comment #17 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to Mikhail T. from comment #16)
> Take a step back and consider: we found a bug. Whether the bug is in the
> clang/llvm or in OpenJDK, it ought to be fixed at the source! FreeBSD pro=
ject
> certainly has a number of C and C++ experts to come up with a proper patch
> suitable for submission up one of the two streams.

FWIW, I have indeed tried to backport the OpenJDK upstream fix for
https://bugs.openjdk.org/browse/JDK-8229258 to older JDKs. But this is *ver=
y*
hairy and complicated, especially if you are not deeply invested into the J=
DK
sources.

OpenJDK upstream has apparently also drawn the same conclusion, and did not
officially backport the fix to OpenJDK 8, 9, 10, 11, 12 and 13. So I think =
they
just assume that you will compile an "old" JDK with a similarly "old"
toolchain.

(Note there is a pull request for OpenJDK 11 at
https://github.com/openjdk/jdk11u/pull/23, but that was never merged into t=
he
official repository, as far as I can see. This was also mentioned in
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258954#c3>.)

Having said all that, there may be another workaround except building with =
an
older toolchain, which is at
<https://github.com/battleblow/jdk11u/commit/305a68a90c722aa7a7b75589e24d5b=
5d554c96c1>.
This is applicable to JDK 11, but I guess it might also apply to JDK 8. I
believe that JDK 9 through 13 already expired, so we can ignore those.

Maybe somebody has the time to check that patch?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264065-8522-W2FXIORp0O>