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

compiler/ciReplay tests crash with "assert(false) failed: Possible safepoint reached by thread that does not allow it"

XMLWordPrintable

      Bunch of ciReplay tests fail with

      # Internal Error (/workspace/open/src/hotspot/share/runtime/javaThread.cpp:373), pid=4028475, tid=4028506
      # assert(false) failed: Possible safepoint reached by thread that does not allow it
      #
      # JRE version: Java(TM) SE Runtime Environment (24.0) (fastdebug build 24-internal-2024-09-25-1504053.ekaterina.pavlova.layden.premain)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-internal-2024-09-25-1504053.ekaterina.pavlova.layden.premain, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xf46c08] JavaThread::check_possible_safepoint() [clone .part.0]+0x28



      Current thread (0x00007f41903ea010): JavaThread "C1 CompilerThread0" daemon [_thread_in_vm, id=4028506, stack(0x00007f4169dff000,0x00007f4169eff000) (1024K)]


      Current CompileTask:
      C1: 154 W0.0 Q0.0 153 b 3 compiler.ciReplay.TestDumpReplayCommandFoo::test (18 bytes)

      Stack: [0x00007f4169dff000,0x00007f4169eff000], sp=0x00007f4169efc3a0, free space=1012k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xf46c08] JavaThread::check_possible_safepoint() [clone .part.0]+0x28 (javaThread.cpp:373)
      V [libjvm.so+0xf48d61] JavaThread::check_possible_safepoint()+0x51 (javaThread.cpp:373)
      V [libjvm.so+0xf48da1] JavaThread::check_for_valid_safepoint_state()+0x21 (javaThread.cpp:397)
      V [libjvm.so+0x1437f46] MemAllocator::Allocation::verify_before()+0x86 (memAllocator.cpp:161)
      V [libjvm.so+0x143b089] MemAllocator::allocate() const+0x79 (memAllocator.cpp:82)
      V [libjvm.so+0xea5906] InstanceKlass::allocate_instance(JavaThread*)+0x86 (collectedHeap.inline.hpp:36)
      V [libjvm.so+0xf31270] java_lang_String::basic_create(int, bool, JavaThread*)+0x60 (javaClasses.cpp:273)
      V [libjvm.so+0xf3822c] java_lang_String::create_from_symbol(Symbol*, JavaThread*)+0x5c (javaClasses.cpp:378)
      V [libjvm.so+0x1855c28] SystemDictionary::link_method_handle_constant(Klass*, int, Klass*, Symbol*, Symbol*, JavaThread*)+0x48 (systemDictionary.cpp:2365)
      V [libjvm.so+0xaa60b5] ConstantPool::resolve_constant_at_impl(constantPoolHandle const&, int, int, bool*, JavaThread*)+0x11e5 (constantPool.cpp:1273)
      V [libjvm.so+0x92ca47] ciEnv::process_invokedynamic(constantPoolHandle const&, int, JavaThread*)+0x237 (constantPool.hpp:717)
      V [libjvm.so+0x92d7ce] ciEnv::find_dynamic_call_sites()+0xa4e (ciEnv.cpp:1643)
      V [libjvm.so+0x92da69] ciEnv::dump_replay_data_helper(outputStream*)+0xc9 (ciEnv.cpp:1720)
      V [libjvm.so+0x92e1c2] ciEnv::dump_replay_data(outputStream*)+0x112 (ciEnv.cpp:1746)
      V [libjvm.so+0x92e560] ciEnv::dump_replay_data(int)+0xe0 (ciEnv.cpp:1761)
      V [libjvm.so+0x77a716] Compilation::compile_java_method()+0x706 (c1_Compilation.cpp:413)
      V [libjvm.so+0x77ad7e] Compilation::compile_method()+0x21e (c1_Compilation.cpp:483)
      V [libjvm.so+0x77b467] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x307 (c1_Compilation.cpp:613)
      V [libjvm.so+0x77d07a] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x18a (c1_Compiler.cpp:279)
      V [libjvm.so+0xa6ccbf] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xaff (compileBroker.cpp:2610)
      V [libjvm.so+0xa6ef98] CompileBroker::compiler_thread_loop()+0x6a8 (compileBroker.cpp:2256)
      V [libjvm.so+0xf4992c] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:761)
      V [libjvm.so+0x18b4e36] Thread::call_run()+0xb6 (thread.cpp:236)
      V [libjvm.so+0x158b7bf] thread_native_entry(Thread*)+0x24f (os_linux.cpp:858)


      when running with AOT cache with AOT class linking enabled.


      The list of failed tests:

      test/hotspot/jtreg/compiler/ciReplay/TestInliningProtectionDomain.java
      test/hotspot/jtreg/compiler/ciReplay/TestIncrementalInlining.java
      test/hotspot/jtreg/compiler/ciReplay/TestDumpReplayCommandLine.java
      test/hotspot/jtreg/compiler/ciReplay/TestNullStaticField.java
      test/hotspot/jtreg/compiler/ciReplay/TestNoClassFile.java
      test/hotspot/jtreg/compiler/print/CompileCommandMemLimit.java



      Steps to reproduce> TESTED_JAVA/bin/java -XX:AOTMode=create -XX:AOTConfiguration=TESTED_JAVA/lib/classlist -XX:+AOTClassLinking -XX:AOTCache=app.aot

      > bash jib.sh make -- run-test TEST=open/test/hotspot/jtreg/compiler/ciReplay/TestInliningProtectionDomain.java TEST_VM_OPTS="-XX:AOTCache=app.aot"

            Unassigned Unassigned
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: