Segmentation fault in JVM_LookupLambdaProxyClassFromArchive

Alexey Genus genus.alexey at gmail.com
Wed Aug 7 20:03:52 UTC 2024


Hi, Aleksey,

Thank you for your input, it led to a very fruitful investigation. I
checked Loom, your binaries in fastdebug and release modes, etc.
Without going into too much detail, I believe the root cause is
related to the Alpine Linux distribution. I was able to replicate
(almost) the same error using amazon corretto when I looked for a
fastdebug musl build:
https://gist.github.com/genuss/ed652253feb724964d142567e429dc2b.

By the way, I noticed that Amazon Corretto nightly builds are not
available in fastdebug mode for Alpine Linux distributions. I thought
you might find this interesting. In the meantime, I plan to build my
own fastdebug JDK to confirm my suspicions.


Alexey Genus



On Wed, 7 Aug 2024 at 11:41, Aleksey Shipilev <shipilev at amazon.de> wrote:
>
> Hi,
>
> On 07.08.24 11:22, Alexey Genus wrote:
> > Based on my observations, the segmentation fault was introduced in
> > version 22.0.2, as version 22.0.1 works fine. It also works fine on my
> > M1 Mac, but fails on linux amd64.
>
> Yes, it can be a CDS bug. But I also see Continuations on the failure stack, so it might be
> Loom-related? I see a couple of CDS- and Loom-related changes here:
>    https://builds.shipilev.net/backports-monitor/release-notes-22.0.2.html
>
> > The hs_err log file is uploaded here
> > https://gist.github.com/genuss/e2afaef603332298ea1666c7014c1ca8
>
> The si_addr for the crash is weird:
>    siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00007fcaf7fe56cc
>
> ...as it does not relate to any mapping.
>
> I think these would be good next steps:
>   1. This happened on Alpine, does the issue reproduce on other Linux-es?
>   2. Are you able to build the JDK from source? Can you bisect between jdk-22.0.1-ga and
> jdk-22.0.2-ga tags from this repo: https://github.com/openjdk/jdk22u/tags ?
>   3. Otherwise, can you try with fastdebug binaries? You can use one from here, if this is
> convenient: https://builds.shipilev.net/openjdk-jdk22/
>
> -Aleksey
>
>
>
> Amazon Web Services Development Center Germany GmbH
> Krausenstr. 38
> 10117 Berlin
> Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
> Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
> Sitz: Berlin
> Ust-ID: DE 365 538 597


More information about the hotspot-runtime-dev mailing list