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

[lworld] SIGSEGV in interpreter with -XX:-UseTLAB

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • hotspot

      Running test/hotspot/jtreg/compiler/valhalla/valuetypes/TestArrays.java with -DVerifyIR=false -Xint -XX:-UseTLAB crashes:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f7b72fdc16c, pid=8532, tid=8533

      Stack: [0x00007f7b74d04000,0x00007f7b74e05000], sp=0x00007f7b74e03228, free space=1020k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x11af16c]
      j compiler.valhalla.valuetypes.MyValue1.<init>(IJSLjava/lang/Integer;[IQcompiler/valhalla/valuetypes/MyValue2;Qcompiler/valhalla/valuetypes/MyValue2;I)Qcompiler/valhalla/valuetypes/MyValue1;+62
      j compiler.valhalla.valuetypes.MyValue1.setZ(Qcompiler/valhalla/valuetypes/MyValue1;S)Qcompiler/valhalla/valuetypes/MyValue1;+29
      j compiler.valhalla.valuetypes.MyValue1.createWithFieldsInline(IJ)Qcompiler/valhalla/valuetypes/MyValue1;+19
      j compiler.valhalla.valuetypes.TestArrays.test58_verifier(Z)V+33
      j jdk.internal.reflect.GeneratedMethodAccessor46.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+63
      j jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base
      j compiler.valhalla.valuetypes.ValueTypeTest.run([Ljava/lang/Class;)V+318
      j compiler.valhalla.valuetypes.ValueTypeTest.run([Ljava/lang/String;[Ljava/lang/Class;)V+43
      j compiler.valhalla.valuetypes.TestArrays.main([Ljava/lang/String;)V+29
      v ~StubRoutines::call_stub
      V [libjvm.so+0xde250c] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x73c
      V [libjvm.so+0xecbe85] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) [clone .isra.167] [clone .constprop.258]+0x275
      V [libjvm.so+0xef4f2f] jni_CallStaticVoidMethod+0x1ff
      C [libjli.so+0x4ce3] JavaMain+0xbd3
      C [libjli.so+0x8189] ThreadJavaMain+0x9

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j compiler.valhalla.valuetypes.MyValue1.<init>(IJSLjava/lang/Integer;[IQcompiler/valhalla/valuetypes/MyValue2;Qcompiler/valhalla/valuetypes/MyValue2;I)Qcompiler/valhalla/valuetypes/MyValue1;+62
      j compiler.valhalla.valuetypes.MyValue1.setZ(Qcompiler/valhalla/valuetypes/MyValue1;S)Qcompiler/valhalla/valuetypes/MyValue1;+29
      j compiler.valhalla.valuetypes.MyValue1.createWithFieldsInline(IJ)Qcompiler/valhalla/valuetypes/MyValue1;+19
      j compiler.valhalla.valuetypes.TestArrays.test58_verifier(Z)V+33
      j jdk.internal.reflect.GeneratedMethodAccessor46.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+63
      j jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base
      j compiler.valhalla.valuetypes.ValueTypeTest.run([Ljava/lang/Class;)V+318
      j compiler.valhalla.valuetypes.ValueTypeTest.run([Ljava/lang/String;[Ljava/lang/Class;)V+43
      j compiler.valhalla.valuetypes.TestArrays.main([Ljava/lang/String;)V+29
      v ~StubRoutines::call_stub

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: