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

[macosx-aarch64] Crash with SIGBUS in MarkActivationClosure::do_code_blob during vmTestbase/nsk/jvmti/.../bi04t002 test run

XMLWordPrintable

    • b31
    • aarch64
    • os_x

        Intermittent, looks like it requires at least -XX:+TieredCompilation. Have only been seen in macosx-aarch64 so far.

        Sample output:

        # Problematic frame:
        # V [libjvm.dylib+0xecb800] MarkActivationClosure::do_code_blob(CodeBlob*)+0x74
        ...
        Current thread (0x000000013082ec20): JavaThread "MainThread" [_thread_in_vm, id=23555, stack(0x000000016e0cc000,0x000000016e2cf000)]

        Stack: [0x000000016e0cc000,0x000000016e2cf000], sp=0x000000016e2cce30, free space=2051k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.dylib+0xecb800] MarkActivationClosure::do_code_blob(CodeBlob*)+0x74
        V [libjvm.dylib+0xf271e8] JavaThread::nmethods_do(CodeBlobClosure*)+0xe0
        V [libjvm.dylib+0x7523fc] HandshakeOperation::do_handshake(JavaThread*)+0x70
        V [libjvm.dylib+0x753dc4] HandshakeState::process_self_inner()+0x244
        V [libjvm.dylib+0x753a94] HandshakeState::process_by_self()+0x134
        V [libjvm.dylib+0xdec9e4] SafepointMechanism::process_if_requested_slow(JavaThread*)+0x30
        V [libjvm.dylib+0x2af970] ThreadBlockInVM::~ThreadBlockInVM()+0xf4
        V [libjvm.dylib+0xacf0a8] JvmtiRawMonitor::simple_wait(Thread*, long)+0x1e4
        V [libjvm.dylib+0xacf478] JvmtiRawMonitor::raw_wait(long, Thread*)+0x64
        V [libjvm.dylib+0xaa76e4] JvmtiEnv::RawMonitorWait(JvmtiRawMonitor*, long)+0x64
        C [libbi04t002.dylib+0x977c] syncDebuggeeStatus(JNIEnv_*, _jvmtiEnv*, int)+0x574
        C [libbi04t002.dylib+0x91d0] Java_nsk_share_jvmti_DebugeeClass_checkStatus+0x64
        J 4797 nsk.share.jvmti.DebugeeClass.checkStatus(I)I (0 bytes) @ 0x0000000119714a44 [0x0000000119714940+0x0000000000000104]
        C 0x0000000125222928

        Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
        J 4797 nsk.share.jvmti.DebugeeClass.checkStatus(I)I (0 bytes) @ 0x0000000119714a44 [0x0000000119714940+0x0000000000000104]
        j nsk.jvmti.scenarios.bcinstr.BI04.bi04t002.runIt([Ljava/lang/String;Ljava/io/PrintStream;)I+40
        j nsk.jvmti.scenarios.bcinstr.BI04.bi04t002.run([Ljava/lang/String;Ljava/io/PrintStream;)I+9
        j nsk.jvmti.scenarios.bcinstr.BI04.bi04t002.main([Ljava/lang/String;)V+9
        v ~StubRoutines::call_stub
        J 4597 jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (0 bytes) @ 0x00000001196cfaf0 [0x00000001196cfa00+0x00000000000000f0]
        J 4595 c1 jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (150 bytes) @ 0x0000000111eb1bb4 [0x0000000111eaf280+0x0000000000002934]
        J 4593 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (10 bytes) @ 0x0000000111eb4be0 [0x0000000111eb4980+0x0000000000000260]
        J 4559 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (65 bytes) @ 0x0000000111f077d4 [0x0000000111f06d40+0x0000000000000a94]
        J 4543 c1 com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V (476 bytes) @ 0x0000000111f0d274 [0x0000000111f0a200+0x0000000000003074]
        J 4539 c1 java.lang.Thread.run()V java.base@17-internal (17 bytes) @ 0x0000000111f98250 [0x0000000111f97fc0+0x0000000000000290]
        v ~StubRoutines::call_stub

              akozlov Anton Kozlov
              enikitin Evgeny Nikitin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: