Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8353237

[AArch64] Incorrect result of VectorizedHashCode intrinsic on Cortex-A53

XMLWordPrintable

    • b24
    • aarch64
    • linux

        ADDITIONAL SYSTEM INFORMATION :
        Hardware: Raspberry PI 3B
        OS: Linux raspberrypi 6.6.74+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
        Java: openjdk 24 2025-03-18
        OpenJDK Runtime Environment (build 24+36-3646)
        OpenJDK 64-Bit Server VM (build 24+36-3646, mixed mode, sharing)

        A DESCRIPTION OF THE PROBLEM :
        Running a simple Spring Boot jar application on JDK 24 (Linux/AArch64) fails with a ClassNotFoundException.
        * The same application runs fine on JDK 23.0.2
        * The same application runs fine on JDK 24 on Windows/x64

        The application consists of the demo application downloaded from https://start.spring.io/ and packaged as a jar by Maven.

        REGRESSION : Last worked in version 23.0.2

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        * Download a project from https://start.spring.io/ with the settings: Maven build, Java language, Spring Boot 3.4.4 (also tried 3.5.0-M3), jar packaging, Java 21 (also tried 24), no extra dependencies
        * Extract the project to a directory
        * Build the project using:
        mvn package
        * Unpack the jar:
        java -Djarmode=tools -jar demo-0.0.1-SNAPSHOT.jar extract
        * Run the app:
        java -jar demo-0.0.1-SNAPSHOT/demo-0.0.1-SNAPSHOT.jar

        (I also found that running -Djarmode=tools in JDK 24 on Linux/AArch64 failed with a ClassNotFoundException, albeit with a different class and stacktrace).

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        App runs and outputs something like:

          . ____ _ __ _ _
         /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
        ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
         \\/ ___)| |_)| | | | | || (_| | ) ) ) )
          ' |____| .__|_| |_|_| |_\__, | / / / /
         =========|_|==============|___/=/_/_/_/

         :: Spring Boot :: (v3.4.4)

        2025-03-29T13:38:32.829+11:00 INFO 58508 --- [demo] [ main] com.example.demo.DemoApplication : Starting DemoApplication v0.0.1-SNAPSHOT using Java 23.0.2 with PID 58508 (/home/pi/demo-0.0.1-SNAPSHOT/demo-0.0.1-SNAPSHOT.jar started by pi in /home/pi)
        2025-03-29T13:38:32.852+11:00 INFO 58508 --- [demo] [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
        2025-03-29T13:38:36.894+11:00 INFO 58508 --- [demo] [ main] com.example.demo.DemoApplication : Started DemoApplication in 7.276 seconds (process running for 9.302)
        ACTUAL -
        Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
                at org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:202)
                at com.example.demo.DemoApplication.main(DemoApplication.java:11)
        Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
                at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
                at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)

        ---------- BEGIN SOURCE ----------
        As described above.
        ---------- END SOURCE ----------

              avoitylov Aleksei Voitylov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: