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

GCBasher crashes in compiled version of HashMap.putVal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • 9
    • 9
    • hotspot
    • None

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000000101fe7ae2, pid=89539, tid=6403
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0-b122) (build 1.8.0-ea-b122)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b62-internal-201401091607.ehelin.hs-gc-to-hs mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # J 1073 C2 java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; (300 bytes) @ 0x0000000101fe7ae2 [0x0000000101fe76a0+0x442]
      #
      # Core dump written. Default location: /cores/core or core.89539

      Stack: [0x00000001019c1000,0x0000000101ac1000], sp=0x0000000101ac0650, free space=1021k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      J 1073 C2 java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; (300 bytes) @ 0x0000000101fe7ae2 [0x0000000101fe76a0+0x442]
      J 296 C2 Main$RCDH.cacheRawClass([B)V (97 bytes) @ 0x0000000101d8f34c [0x0000000101d8dd40+0x160c]
      J 572 C2 ClassFinder.cacheFromJar(Ljava/io/File;LRawClassDataHandler;)V (146 bytes) @ 0x0000000101e526dc [0x0000000101e51ca0+0xa3c]
      J 905 C1 ClassFinder.cacheClassData(Ljava/lang/String;LRawClassDataHandler;)V (69 bytes) @ 0x0000000101f3ac0c [0x0000000101f3a6a0+0x56c]
      J 841 C1 Main.loadClassData(Ljava/lang/String;LMain$RCDH;)V (47 bytes) @ 0x0000000101f0e604 [0x0000000101f0e1c0+0x444]
      j Main.main([Ljava/lang/String;)V+129
      v ~StubRoutines::call_stub
      V [libjvm.dylib+0x2c585a] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x6ae
      V [libjvm.dylib+0x2fa36a] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x1bf
      V [libjvm.dylib+0x2f35b3] jni_CallStaticVoidMethod+0x15d
      C [java+0x2c89] JavaMain+0x998
      C [libsystem_c.dylib+0x14772] _pthread_start+0x147
      C [libsystem_c.dylib+0x11a1] thread_start+0xd

      The hs_err file shows that we have just deoptimized HashMap.putVal just before crashing:
      Event: 123.836 Thread 0x00007fbedb000800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x0000000101fe9a88 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 203

            iveresov Igor Veresov
            ehelin Erik Helin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: