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

JDK versions > 18.0.2.1 crash because of a bad memory access

XMLWordPrintable

    • arm
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      I am running macOS Sequoia Developer Beta (I am aware this is beta software, I know what I am doing), this is the relevant output of `system_profiler`.

      Hardware:
            Model Name: MacBook Pro
            Model Identifier: Mac14,7
            Model Number: Z16S0005FLL/A
            Chip: Apple M2
            Total Number of Cores: 8 (4 performance and 4 efficiency)
            Memory: 16 GB
            System Firmware Version: 11881.0.285.0.3
            OS Loader Version: 11881.0.285.0.3

      Software:
            System Version: macOS 15.1 (24B5009l)
            Kernel Version: Darwin 24.1.0
            Time since boot: 8 days, 8 hours, 36 minutes

      Memory:
            Memory: 16 GB
            Type: LPDDR5
            Manufacturer: Hynix



      A DESCRIPTION OF THE PROBLEM :
      I can run Java 18.0.2.1, anything above that doesn't work. Java gets terminated by a sigabrt, presumably from a private memory access. The log is shown below:


      REGRESSION : Last worked in version 18

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      - Use macOS Sequoia Developer Beta (build 24B5009l) and an Apple Silicon device
      - Install a new version of Java from the Java Download page
      - Restart your machine to ensure everything is ready
      - Run the `java` command
      - You will get a sigabrt

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      - Java should run perfectly and display a help message when run with no arguments, starting like:
      Usage: java [options] <mainclass> [args...]
                 (to execute a class)...
      ACTUAL -
      Instead, an error gets thrown:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGBUS (0xa) at pc=0x0000000104020a38, pid=66319, tid=6147
      #
      # JRE version: (22.0.2) (build )
      # Java VM: OpenJDK 64-Bit Server VM (22.0.2, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Problematic frame:
      # V [libjvm.dylib+0x384a38] CodeHeap::allocate(unsigned long)+0x15c
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/xxxxx/hs_err_pid66319.log
      #
      #

      CUSTOMER SUBMITTED WORKAROUND :
      - Use macOS's built-in (very old) version of Java
      - Use Java 18.0.2.1

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: