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

Test fails with assert(depth < max_critical_stack_depth) failed: can't have more than 10 critical frames

XMLWordPrintable

      The following test failed in the JDK24 CI:

      applications/runthese/RunThese30M.java

      Here's snippets from the hs_err_pid file:

      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6321/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/edcbf15c-2740-474f-a92d-9208796b4c81/runs/2c05e4c1-3c17-4125-ac4d-17b894aed7ec/workspace/open/src/hotspot/share/prims/scopedMemoryAccess.cpp:64), pid=40633, tid=83907
      # assert(depth < max_critical_stack_depth) failed: can't have more than 10 critical frames
      #
      # JRE version: Java(TM) SE Runtime Environment (24.0+13) (fastdebug build 24-ea+13-1406)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-ea+13-1406, mixed mode, tiered, compressed class ptrs, z gc, bsd-aarch64)
      # Core dump will be written. Default location: core.40633

      <snip>

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

      Current thread (0x0000000112934610): JavaThread "Thread-1689" daemon [_thread_in_vm, id=83907, stack(0x0000000883124000,0x0000000883327000) (2060K)]

      Stack: [0x0000000883124000,0x0000000883327000], sp=0x0000000883322130, free space=2040k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x112f898] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x544 (scopedMemoryAccess.cpp:64)
      V [libjvm.dylib+0x1130048] VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*)+0x0
      V [libjvm.dylib+0x5499c0] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0xf288f0] ScopedAsyncExceptionHandshake::do_thread(Thread*)+0x0
      V [libjvm.dylib+0xf280e8] CloseScopedMemoryClosure::do_thread(Thread*)+0xd8
      V [libjvm.dylib+0x7ac380] HandshakeOperation::do_handshake(JavaThread*)+0x5c
      V [libjvm.dylib+0x7ae204] HandshakeState::process_by_self(bool, bool)+0x2b8
      V [libjvm.dylib+0xf227dc] SafepointMechanism::process(JavaThread*, bool, bool)+0x80
      V [libjvm.dylib+0xf208dc] ThreadSafepointState::handle_polling_page_exception()+0x450
      V [libjvm.dylib+0xf202e0] SafepointSynchronize::handle_polling_page_exception(JavaThread*)+0x128
      v ~SafepointBlob 0x000000014f60d290
      j java.util.concurrent.ConcurrentHashMap$Traverser.<init>([Ljava/util/concurrent/ConcurrentHashMap$Node;III)V+1 java.base@24-ea
      j java.util.concurrent.ConcurrentHashMap$BaseIterator.<init>([Ljava/util/concurrent/ConcurrentHashMap$Node;IIILjava/util/concurrent/ConcurrentHashMap;)V+6 java.base@24-ea
      j java.util.concurrent.ConcurrentHashMap$ValueIterator.<init>([Ljava/util/concurrent/ConcurrentHashMap$Node;IIILjava/util/concurrent/ConcurrentHashMap;)V+8 java.base@24-ea
      j java.util.concurrent.ConcurrentHashMap$ValuesView.iterator()Ljava/util/Iterator;+30 java.base@24-ea
      j jdk.internal.loader.NativeLibraries.find(Ljava/lang/String;)J+23 java.base@24-ea
      j java.lang.ClassLoader.findNativeInternal(Ljava/lang/ClassLoader;Ljava/lang/String;)J+8 java.base@24-ea
      j java.lang.ClassLoader.findNative(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J+2 java.base@24-ea
      v ~StubRoutines::call_stub 0x000000014f534180
      V [libjvm.dylib+0x853abc] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x444
      V [libjvm.dylib+0x853070] JavaCalls::call_static(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0xe8
      V [libjvm.dylib+0xdaed84] NativeLookup::lookup_style(methodHandle const&, char*, char const*, int, bool, JavaThread*)+0x348
      V [libjvm.dylib+0xdaf224] NativeLookup::lookup_entry(methodHandle const&, JavaThread*)+0x84
      V [libjvm.dylib+0xdaf668] NativeLookup::lookup_base(methodHandle const&, JavaThread*)+0x4c
      V [libjvm.dylib+0xdaf8cc] NativeLookup::lookup(methodHandle const&, JavaThread*)+0x88
      V [libjvm.dylib+0x84317c] InterpreterRuntime::prepare_native_call(JavaThread*, Method*)+0x128
      j java.nio.MappedMemoryUtils.isLoaded0(JJJ)Z+0 java.base@24-ea
      j java.nio.MappedMemoryUtils.isLoaded(JZJ)Z+47 java.base@24-ea
      j java.nio.Buffer$2.isLoaded(JZJ)Z+4 java.base@24-ea
      j jdk.internal.misc.ScopedMemoryAccess.isLoadedInternal(Ljdk/internal/foreign/MemorySessionImpl;JZJ)Z+16 java.base@24-ea
      j jdk.internal.misc.ScopedMemoryAccess.isLoaded(Ljdk/internal/foreign/MemorySessionImpl;JZJ)Z+7 java.base@24-ea
      j jdk.internal.foreign.MappedMemorySegmentImpl.isLoaded()Z+31 java.base@24-ea
      j javasoft.sqe.tests.api.java.lang.foreign.MemorySegment.ContentTests.loadTest01()V+45
      J 9033 c1 java.lang.invoke.LambdaForm$DMH+0x0000380000291000.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;)V java.base@24-ea (14 bytes) @ 0x000000014899811c [0x0000000148997c80+0x000000000000049c]
      J 5525 c1 java.lang.invoke.LambdaForm$MH+0x0000380000293000.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (36 bytes) @ 0x00000001484e9644 [0x00000001484e91c0+0x0000000000000484]
      J 10571 c1 jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (92 bytes) @ 0x0000000148b93458 [0x0000000148b91b00+0x0000000000001958]
      J 10564 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (108 bytes) @ 0x0000000148b8889c [0x0000000148b882c0+0x00000000000005dc]
      j com.oracle.tck.lib.autd2.processors.tc.DefaultNoArgTestCaseMethodSetting.lambda$process$0(Lcom/oracle/tck/lib/autd2/TestCaseContext;)Ljava/lang/Object;+12
      j com.oracle.tck.lib.autd2.processors.tc.DefaultNoArgTestCaseMethodSetting$$Lambda+0x00003800010c9240.call()Ljava/lang/Object;+4
      j com.oracle.tck.lib.autd2.processors.tc.DefaultThreadRunning.process(Lcom/oracle/tck/lib/autd2/TestCaseContext$TestCaseLifePhase;Lcom/oracle/tck/lib/autd2/TestCaseContext;)V+4
      j com.oracle.tck.lib.autd2.processors.tc.DefaultThreadRunning.process(Lcom/oracle/tck/lib/autd2/LifePhase;Lcom/oracle/tck/lib/autd2/Context;)V+9
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateThroughProcessorsUntilAllAreDone(Lcom/oracle/tck/lib/autd2/Context;Ljava/util/TreeMap;Lcom/oracle/tck/lib/autd2/LifePhase;Ljava/util/List;)V+123
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateLifePhases(Lcom/oracle/tck/lib/autd2/Context;[Lcom/oracle/tck/lib/autd2/LifePhase;)V+72
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateTestCaseLifePhase(Lcom/oracle/tck/lib/autd2/TestCaseContext;)Lcom/oracle/tck/lib/autd2/TestResult;+29
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.runTestCaseAsNeeded(Lcom/oracle/tck/lib/autd2/TestCaseContext;)Lcom/oracle/tck/lib/autd2/TestResult;+1
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.lambda$process$0(Lcom/oracle/tck/lib/autd2/TestGroupContext;Lcom/oracle/tck/lib/autd2/TestCaseContext;)V+24
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases$$Lambda+0x00003800010ce968.accept(Ljava/lang/Object;)V+12
      J 939 c1 java.lang.Iterable.forEach(Ljava/util/function/Consumer;)V java.base@24-ea (39 bytes) @ 0x00000001480cd1a4 [0x00000001480cce00+0x00000000000003a4]
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.process(Lcom/oracle/tck/lib/autd2/TestGroupContext$TestGroupLifePhase;Lcom/oracle/tck/lib/autd2/TestGroupContext;)V+13
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.process(Lcom/oracle/tck/lib/autd2/LifePhase;Lcom/oracle/tck/lib/autd2/Context;)V+9
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateThroughProcessorsUntilAllAreDone(Lcom/oracle/tck/lib/autd2/Context;Ljava/util/TreeMap;Lcom/oracle/tck/lib/autd2/LifePhase;Ljava/util/List;)V+123
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateLifePhases(Lcom/oracle/tck/lib/autd2/Context;[Lcom/oracle/tck/lib/autd2/LifePhase;)V+72
      j com.oracle.tck.lib.autd2.TestRunner.performRun(Lcom/oracle/tck/lib/autd2/TestGroupContext;Ljava/util/Set;Ljava/util/Set;)V+275
      j com.oracle.tck.lib.autd2.TestRunner.run(Ljava/lang/Object;Ljava/io/PrintWriter;Ljava/io/PrintWriter;Ljava/util/Set;Ljava/util/Set;[Ljava/lang/String;)Lcom/oracle/tck/lib/autd2/TestResult;+183
      j com.oracle.tck.lib.autd2.AUTD2.run(Ljavasoft/sqe/javatest/Test;Ljava/io/PrintWriter;Ljava/io/PrintWriter;[Ljava/lang/String;)Ljavasoft/sqe/javatest/Status;+46
      j com.oracle.tck.lib.autd2.AUTD2.run(Ljavasoft/sqe/javatest/Test;[Ljava/lang/String;)Ljavasoft/sqe/javatest/Status;+62
      j javasoft.sqe.tests.api.java.lang.foreign.MemorySegment.ContentTests.main([Ljava/lang/String;)V+8
      J 6205 c1 java.lang.invoke.LambdaForm$DMH+0x0000380000148000.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)V java.base@24-ea (14 bytes) @ 0x000000014861a3a8 [0x000000014861a2c0+0x00000000000000e8]
      J 6206 c1 java.lang.invoke.LambdaForm$MH+0x00003800001d3800.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (38 bytes) @ 0x0000000148619eec [0x0000000148619d80+0x000000000000016c]
      J 10571 c1 jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (92 bytes) @ 0x0000000148b93124 [0x0000000148b91b00+0x0000000000001624]
      J 8787 c1 applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.lambda$runTest$1(Ljava/lang/reflect/Method;[Ljava/lang/Object;JLjava/lang/String;)V (44 bytes) @ 0x00000001481cde9c [0x00000001481cdc40+0x000000000000025c]
      J 8786 c1 applications.kitchensink.process.stress.modules.JckStressModule$TestRunner$$Lambda+0x00003800001c4e78.run()V (24 bytes) @ 0x00000001487db868 [0x00000001487db740+0x0000000000000128]
      J 6168 c1 java.lang.Thread.run()V java.base@24-ea (23 bytes) @ 0x000000014860bbd4 [0x000000014860ba80+0x0000000000000154]
      v ~StubRoutines::call_stub 0x000000014f534180
      V [libjvm.dylib+0x853abc] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x444
      V [libjvm.dylib+0x852798] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x218
      V [libjvm.dylib+0x852978] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x6c
      V [libjvm.dylib+0x9defc0] thread_entry(JavaThread*, JavaThread*)+0x12c
      V [libjvm.dylib+0x889cc0] JavaThread::thread_main_inner()+0x1dc
      V [libjvm.dylib+0x1070364] Thread::call_run()+0xf4
      V [libjvm.dylib+0xe1d908] thread_native_entry(Thread*)+0x138
      C [libsystem_pthread.dylib+0x7240] _pthread_start+0x94
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      v ~SafepointBlob 0x000000014f60d290
      j java.util.concurrent.ConcurrentHashMap$Traverser.<init>([Ljava/util/concurrent/ConcurrentHashMap$Node;III)V+1 java.base@24-ea
      j java.util.concurrent.ConcurrentHashMap$BaseIterator.<init>([Ljava/util/concurrent/ConcurrentHashMap$Node;IIILjava/util/concurrent/ConcurrentHashMap;)V+6 java.base@24-ea
      j java.util.concurrent.ConcurrentHashMap$ValueIterator.<init>([Ljava/util/concurrent/ConcurrentHashMap$Node;IIILjava/util/concurrent/ConcurrentHashMap;)V+8 java.base@24-ea
      j java.util.concurrent.ConcurrentHashMap$ValuesView.iterator()Ljava/util/Iterator;+30 java.base@24-ea
      j jdk.internal.loader.NativeLibraries.find(Ljava/lang/String;)J+23 java.base@24-ea
      j java.lang.ClassLoader.findNativeInternal(Ljava/lang/ClassLoader;Ljava/lang/String;)J+8 java.base@24-ea
      j java.lang.ClassLoader.findNative(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J+2 java.base@24-ea
      v ~StubRoutines::call_stub 0x000000014f534180
      j java.nio.MappedMemoryUtils.isLoaded0(JJJ)Z+0 java.base@24-ea
      j java.nio.MappedMemoryUtils.isLoaded(JZJ)Z+47 java.base@24-ea
      j java.nio.Buffer$2.isLoaded(JZJ)Z+4 java.base@24-ea
      j jdk.internal.misc.ScopedMemoryAccess.isLoadedInternal(Ljdk/internal/foreign/MemorySessionImpl;JZJ)Z+16 java.base@24-ea
      j jdk.internal.misc.ScopedMemoryAccess.isLoaded(Ljdk/internal/foreign/MemorySessionImpl;JZJ)Z+7 java.base@24-ea
      j jdk.internal.foreign.MappedMemorySegmentImpl.isLoaded()Z+31 java.base@24-ea
      j javasoft.sqe.tests.api.java.lang.foreign.MemorySegment.ContentTests.loadTest01()V+45
      J 9033 c1 java.lang.invoke.LambdaForm$DMH+0x0000380000291000.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;)V java.base@24-ea (14 bytes) @ 0x000000014899811c [0x0000000148997c80+0x000000000000049c]
      J 5525 c1 java.lang.invoke.LambdaForm$MH+0x0000380000293000.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (36 bytes) @ 0x00000001484e9644 [0x00000001484e91c0+0x0000000000000484]
      J 10571 c1 jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (92 bytes) @ 0x0000000148b93458 [0x0000000148b91b00+0x0000000000001958]
      J 10564 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (108 bytes) @ 0x0000000148b8889c [0x0000000148b882c0+0x00000000000005dc]
      j com.oracle.tck.lib.autd2.processors.tc.DefaultNoArgTestCaseMethodSetting.lambda$process$0(Lcom/oracle/tck/lib/autd2/TestCaseContext;)Ljava/lang/Object;+12
      j com.oracle.tck.lib.autd2.processors.tc.DefaultNoArgTestCaseMethodSetting$$Lambda+0x00003800010c9240.call()Ljava/lang/Object;+4
      j com.oracle.tck.lib.autd2.processors.tc.DefaultThreadRunning.process(Lcom/oracle/tck/lib/autd2/TestCaseContext$TestCaseLifePhase;Lcom/oracle/tck/lib/autd2/TestCaseContext;)V+4
      j com.oracle.tck.lib.autd2.processors.tc.DefaultThreadRunning.process(Lcom/oracle/tck/lib/autd2/LifePhase;Lcom/oracle/tck/lib/autd2/Context;)V+9
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateThroughProcessorsUntilAllAreDone(Lcom/oracle/tck/lib/autd2/Context;Ljava/util/TreeMap;Lcom/oracle/tck/lib/autd2/LifePhase;Ljava/util/List;)V+123
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateLifePhases(Lcom/oracle/tck/lib/autd2/Context;[Lcom/oracle/tck/lib/autd2/LifePhase;)V+72
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateTestCaseLifePhase(Lcom/oracle/tck/lib/autd2/TestCaseContext;)Lcom/oracle/tck/lib/autd2/TestResult;+29
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.runTestCaseAsNeeded(Lcom/oracle/tck/lib/autd2/TestCaseContext;)Lcom/oracle/tck/lib/autd2/TestResult;+1
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.lambda$process$0(Lcom/oracle/tck/lib/autd2/TestGroupContext;Lcom/oracle/tck/lib/autd2/TestCaseContext;)V+24
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases$$Lambda+0x00003800010ce968.accept(Ljava/lang/Object;)V+12
      J 939 c1 java.lang.Iterable.forEach(Ljava/util/function/Consumer;)V java.base@24-ea (39 bytes) @ 0x00000001480cd1a4 [0x00000001480cce00+0x00000000000003a4]
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.process(Lcom/oracle/tck/lib/autd2/TestGroupContext$TestGroupLifePhase;Lcom/oracle/tck/lib/autd2/TestGroupContext;)V+13
      j com.oracle.tck.lib.autd2.processors.tg.RunningTestCases.process(Lcom/oracle/tck/lib/autd2/LifePhase;Lcom/oracle/tck/lib/autd2/Context;)V+9
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateThroughProcessorsUntilAllAreDone(Lcom/oracle/tck/lib/autd2/Context;Ljava/util/TreeMap;Lcom/oracle/tck/lib/autd2/LifePhase;Ljava/util/List;)V+123
      j com.oracle.tck.lib.autd2.AUTD2Utils.iterateLifePhases(Lcom/oracle/tck/lib/autd2/Context;[Lcom/oracle/tck/lib/autd2/LifePhase;)V+72
      j com.oracle.tck.lib.autd2.TestRunner.performRun(Lcom/oracle/tck/lib/autd2/TestGroupContext;Ljava/util/Set;Ljava/util/Set;)V+275
      j com.oracle.tck.lib.autd2.TestRunner.run(Ljava/lang/Object;Ljava/io/PrintWriter;Ljava/io/PrintWriter;Ljava/util/Set;Ljava/util/Set;[Ljava/lang/String;)Lcom/oracle/tck/lib/autd2/TestResult;+183
      j com.oracle.tck.lib.autd2.AUTD2.run(Ljavasoft/sqe/javatest/Test;Ljava/io/PrintWriter;Ljava/io/PrintWriter;[Ljava/lang/String;)Ljavasoft/sqe/javatest/Status;+46
      j com.oracle.tck.lib.autd2.AUTD2.run(Ljavasoft/sqe/javatest/Test;[Ljava/lang/String;)Ljavasoft/sqe/javatest/Status;+62
      j javasoft.sqe.tests.api.java.lang.foreign.MemorySegment.ContentTests.main([Ljava/lang/String;)V+8
      J 6205 c1 java.lang.invoke.LambdaForm$DMH+0x0000380000148000.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)V java.base@24-ea (14 bytes) @ 0x000000014861a3a8 [0x000000014861a2c0+0x00000000000000e8]
      J 6206 c1 java.lang.invoke.LambdaForm$MH+0x00003800001d3800.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (38 bytes) @ 0x0000000148619eec [0x0000000148619d80+0x000000000000016c]
      J 10571 c1 jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@24-ea (92 bytes) @ 0x0000000148b93124 [0x0000000148b91b00+0x0000000000001624]
      J 8787 c1 applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.lambda$runTest$1(Ljava/lang/reflect/Method;[Ljava/lang/Object;JLjava/lang/String;)V (44 bytes) @ 0x00000001481cde9c [0x00000001481cdc40+0x000000000000025c]
      J 8786 c1 applications.kitchensink.process.stress.modules.JckStressModule$TestRunner$$Lambda+0x00003800001c4e78.run()V (24 bytes) @ 0x00000001487db868 [0x00000001487db740+0x0000000000000128]
      J 6168 c1 java.lang.Thread.run()V java.base@24-ea (23 bytes) @ 0x000000014860bbd4 [0x000000014860ba80+0x0000000000000154]
      v ~StubRoutines::call_stub 0x000000014f534180
      Lock stack of current Java thread (top to bottom):

      --------------------------------------------------------------------------------


      Since the failing assertion is in
      src/hotspot/share/prims/scopedMemoryAccess.cpp,
      I'm starting this bug off in core-libs/java.lang.foreign for initial triage.

            mcimadamore Maurizio Cimadamore
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: