From nobody Sat Jul 9 14:57:50 2022 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9EFE117D29BA for ; Sat, 9 Jul 2022 14:57:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LgCtk3bL9z3RYm for ; Sat, 9 Jul 2022 14:57:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LgCtk2fTszqLK for ; Sat, 9 Jul 2022 14:57:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 269EvoVp084189 for ; Sat, 9 Jul 2022 14:57:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 269Evo3U084188 for java@FreeBSD.org; Sat, 9 Jul 2022 14:57:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sat, 09 Jul 2022 14:57:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657378670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7RwxuI4wFqNhTO/vrPITxE+nbtOE7gFR1QU4VR8Bud0=; b=XpYdNwuxTLyfFepDzVtB7V3L4WeeO6qHwz3JFbXZbrNZdPNDySs777SuNGfZ1cxg2RYNNr jXg//en+0PoSQHphOspYQ7tORrIt2Ih1NCHfggdXMQpGOdgP+IcMrJWLQ71o9hv6dbe+Dp H4Ml+mUjbNvdhpcnAmpFOFYqt++XvDq3aeLkYtMNuMHR4TddFjzKXe7kYYpklBOwTh21Ty NuF7oN03R/ZxfG8b/hF4fiNiXg5KYMf4DOHbZqAym+Y7uSoBBO/KJItx/4H2/b2RHYm2L6 h0I4oaSssByT+g29CZx//OyyuLpeqBzBWhDXzO4ZOYdQEpH/5JElA+txPvX/bQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657378670; a=rsa-sha256; cv=none; b=N8241HrsFtWGy1p5vABQxQt0Kz4dfV95V6rEMbOzFMTtznx+Y2DiSXVsRm9AlcLHJdYqsq VDs1ADRYA4mDvVgsPwNSEguESp7sjwKZkSKV/Q69UI2c/QazqEludUCEDNNI6Gog3GLF97 O37JpxCjLYNnceno91vw/1uI8u5KC1+9KSw4IwsgesO64kdvD4KnkC9YJ3lfmhKiocDXIk 0R9lTmvxHo3Q89Xf+1osZu1Vbff9BQ6oN7wmYHxPU2g2brrpEMoYA5cvydM4eIuNXGqtS/ u40AeHXjKeDw1Boui47Lc+4pRfkw35pwbwPRpIlN+kVWpFUsEbiLkdOBIt5JuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264065 --- Comment #17 from Dimitry Andric --- (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 .) Having said all that, there may be another workaround except building with = an older toolchain, which is at . 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.=