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

HotSpot crashes when macOS System Integrity Protection is disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • tbd
    • 21.0.3, 22, 23
    • hotspot
    • 22
    • aarch64
    • os_x

      HotSpot crashes when macOS System Integrity Protection is disabled (*).
      This issue appeared with JDK 22, and seems to be limited to aarch64.

      - 21 aarch64 works properly
      - 22 and 23 aarch64 crash with SIP disabled, work fine if SIP is re-enabled
      - 22 and 23 x64 works properly with SIP disabled

      Clearly, disabling SIP is not a common use-case.

      (*) https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection


      To reproduce
      ```
      % ./jdk-23-ea+6_macos-aarch64.jdk/Contents/Home/bin/java -version
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGBUS (0xa) at pc=0x0000000103acf8a4, pid=57590, tid=8707
      #
      # JRE version: (23.0+6) (build )
      # Java VM: OpenJDK 64-Bit Server VM (23-ea+6-400, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Problematic frame:
      # V [libjvm.dylib+0x45b8a4] CodeHeap::allocate(unsigned long)+0x1a4
      #
      # 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/xxx/Library/Java/JavaVirtualMachines/hs_err_pid57590.log
      #
      ```

            dcubed Daniel Daugherty
            ddelabassee David Delabassee
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: