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

JVMTI: Segfault in java_lang_StackTraceElement::create

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • hs25
    • hotspot

      Tests

      vm/mlvm/indy/func/jvmti/mergeCP_indy2manyDiff_b
      vm/mlvm/indy/func/jvmti/mergeCP_indy2manySame_b
      vm/mlvm/indy/func/jvmti/mergeCP_indy2none_b
      vm/mlvm/indy/func/jvmti/redefineClassInBootstrap

      crash with the following stack trace:

      Stack: [0x00007f9ab3304000,0x00007f9ab3405000], sp=0x00007f9ab3402fa0, free space=1019k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x8cdcab] java_lang_StackTraceElement::create(Handle, int, int, int, Thread*)+0x16b;; java_lang_StackTraceElement::create(Handle, int, int, int, Thread*)+0x16b
      V [libjvm.so+0x8d2f8b] java_lang_Throwable::get_stack_trace_element(oopDesc*, int, Thread*)+0x49b;; java_lang_Throwable::get_stack_trace_element(oopDesc*, int, Thread*)+0x49b
      V [libjvm.so+0x98b31f] JVM_GetStackTraceElement+0x12f;; JVM_GetStackTraceElement+0x12f
      j java.lang.Throwable.getStackTraceElement(I)Ljava/lang/StackTraceElement;+0
      j java.lang.Throwable.getOurStackTrace()[Ljava/lang/StackTraceElement;+51
      j java.lang.Throwable.printEnclosedStackTrace(Ljava/lang/Throwable$PrintStreamOrWriter;[Ljava/lang/StackTraceElement;Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;)V+76
      j java.lang.Throwable.printStackTrace(Ljava/lang/Throwable$PrintStreamOrWriter;)V+161
      j java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V+9
      j nsk.share.Log.printExceptionToString(Ljava/lang/Object;Ljava/lang/Throwable;)Ljava/lang/String;+24
      j nsk.share.Log.complain(Ljava/lang/Object;Ljava/lang/Throwable;)V+7
      j vm.mlvm.share.Env.complain(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V+13
      j vm.mlvm.share.MlvmTest.runMlvmTest(Ljava/lang/Class;)Z+159
      j vm.mlvm.share.MlvmTest.launch()V+133
      j vm.mlvm.share.MlvmTest.launch([Ljava/lang/String;)V+4
      j vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main([Ljava/lang/String;)V+1
      v ~StubRoutines::call_stub
      V [libjvm.so+0x8c1ace] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x188e;; JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x188e
      V [libjvm.so+0x920c08] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x598;; jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x598
      V [libjvm.so+0x921c49] jni_CallStaticVoidMethod+0x1f9;; jni_CallStaticVoidMethod+0x1f9
      C [libjli.so+0x7f24] JavaMain+0x844;; JavaMain+0x844

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j java.lang.Throwable.getStackTraceElement(I)Ljava/lang/StackTraceElement;+0
      j java.lang.Throwable.getOurStackTrace()[Ljava/lang/StackTraceElement;+51
      j java.lang.Throwable.printEnclosedStackTrace(Ljava/lang/Throwable$PrintStreamOrWriter;[Ljava/lang/StackTraceElement;Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;)V+76
      j java.lang.Throwable.printStackTrace(Ljava/lang/Throwable$PrintStreamOrWriter;)V+161
      j java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V+9
      j nsk.share.Log.printExceptionToString(Ljava/lang/Object;Ljava/lang/Throwable;)Ljava/lang/String;+24
      j nsk.share.Log.complain(Ljava/lang/Object;Ljava/lang/Throwable;)V+7
      j vm.mlvm.share.Env.complain(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V+13
      j vm.mlvm.share.MlvmTest.runMlvmTest(Ljava/lang/Class;)Z+159
      j vm.mlvm.share.MlvmTest.launch()V+133
      j vm.mlvm.share.MlvmTest.launch([Ljava/lang/String;)V+4
      j vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main([Ljava/lang/String;)V+1
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x00007f9aac18a000 JavaThread "Service Thread" daemon [_thread_blocked, id=825, stack(0x00007f9a7eaeb000,0x00007f9a7ebec000)]
        0x00007f9aac151800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=822, stack(0x00007f9a7ebec000,0x00007f9a7eced000)]
        0x00007f9aac14e800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=821, stack(0x00007f9a7eced000,0x00007f9a7edee000)]
        0x00007f9aac13a800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=820, stack(0x00007f9a7edee000,0x00007f9a7eeef000)]
        0x00007f9aac0fb000 JavaThread "Finalizer" daemon [_thread_blocked, id=819, stack(0x00007f9a7eeef000,0x00007f9a7eff0000)]
        0x00007f9aac0f8800 JavaThread "Reference Handler" daemon [_thread_blocked, id=818, stack(0x00007f9a7eff0000,0x00007f9a7f0f1000)]
      =>0x00007f9aac00b800 JavaThread "main" [_thread_in_vm, id=792, stack(0x00007f9ab3304000,0x00007f9ab3405000)]

      Other Threads:
        0x00007f9aac0ef000 VMThread [stack: 0x00007f9a7f0f1000,0x00007f9a7f1f2000] [id=817]
        0x00007f9aac18d800 WatcherThread [stack: 0x00007f9a7e9ea000,0x00007f9a7eaeb000] [id=826]


            coleenp Coleen Phillimore
            iveresov Igor Veresov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: