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

JVM crashes with "aux_index does not match even or odd indices"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • tbd
    • 23
    • hotspot
    • aarch64

      I noticed this crash in one of the tier testing jobs against JDK mainline. The java/awt/color/ICC_ColorSpace/ToFromCIEXYZRoundTrip.java test failed due to the JVM crash. This happened on macos M1 system. The crash report looks like:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (concurrentHashTable.inline.hpp:682), pid=97920, tid=25859
      # fatal error: aux_index does not match even or odd indices
      #
      # JRE version: Java(TM) SE Runtime Environment (23.0) (build 23-internal-2024-05-31-0834004.jaikiran.pai.jdk)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (23-internal-2024-05-31-0834004.jaikiran.pai.jdk, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.97920
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      ...

      Host: "Macmini9,1" arm64, 8 cores, 16G, Darwin 21.3.0, macOS 12.2 (21D49)
      Time: Fri May 31 11:40:56 2024 GMT elapsed time: 80.981431 seconds (0d 0h 1m 20s)

      --------------- T H R E A D ---------------

      Current thread (0x0000000126008200): JavaThread "C1 CompilerThread0" daemon [_thread_in_vm, id=25859, stack(0x0000000171220000,0x0000000171423000) (2060K)]


      Current CompileTask:
      C1:80981 1639658 3 java.lang.ref.Reference::<init> (25 bytes)

      Stack: [0x0000000171220000,0x0000000171423000], sp=0x0000000171421bc0, free space=2054k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x9f6fb8] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x53c (concurrentHashTable.inline.hpp:682)
      V [libjvm.dylib+0x2d1e0c] DebuggingContext::~DebuggingContext()+0x0
      V [libjvm.dylib+0x38ee7c] G1CodeRootSetHashTable::G1CodeRootSetHashTable()+0x0
      V [libjvm.dylib+0x38e4d8] G1CodeRootSetHashTable::insert(nmethod*)+0xac
      V [libjvm.dylib+0x7ed82c] nmethod::oops_do(OopClosure*, bool)+0x6c
      V [libjvm.dylib+0x3988a0] G1CollectedHeap::register_nmethod(nmethod*)+0x34
      V [libjvm.dylib+0x7eb7d8] nmethod::nmethod(Method*, CompilerType, int, int, int, int, unsigned char*, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*)+0x494
      V [libjvm.dylib+0x7ea728] nmethod::new_nmethod(methodHandle const&, int, int, CodeOffsets*, int, DebugInformationRecorder*, Dependencies*, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, CompLevel, char*, int, JVMCINMethodData*)+0x208
      V [libjvm.dylib+0x20b814] ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, bool, int, RTMState)+0x568
      V [libjvm.dylib+0x1546bc] Compilation::compile_method()+0x254
      V [libjvm.dylib+0x1548f8] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x188
      V [libjvm.dylib+0x156148] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x5c
      V [libjvm.dylib+0x29d10c] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3c0
      V [libjvm.dylib+0x29cb64] CompileBroker::compiler_thread_loop()+0x3c8
      V [libjvm.dylib+0x4b048c] JavaThread::thread_main_inner()+0xa4
      V [libjvm.dylib+0x980788] Thread::call_run()+0xc8
      V [libjvm.dylib+0x81ca18] thread_native_entry(Thread*)+0x118
      C [libsystem_pthread.dylib+0x7240] _pthread_start+0x94

            coleenp Coleen Phillimore
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: