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

Assert((!has_last_Java_frame() && java_call_counter() == 0) || (has_last_Java_frame() && java_call_counter() > 0)) failed: unexpected frame info: has_last_frame=false, java_call_counter=1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 24
    • hotspot
    • aarch64
    • linux

      On Linux aarch64, we run into this assertion (jtreg test java/awt/font/TextLayout/FontLayoutStressTest.java) ; foreign.abi. can be seen in the stacktrace so it might be related to this functionality .

      # Internal Error (/priv/jenkins/client-home/workspace/openjdk-jdk-dev-linux_aarch64-dbg/jdk/src/hotspot/share/runtime/javaThread.cpp:1347), pid=20612, tid=21065
      # assert((!has_last_Java_frame() && java_call_counter() == 0) || (has_last_Java_frame() && java_call_counter() > 0)) failed: unexpected frame info: has_last_frame=false, java_call_counter=1

      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xdcb550] JavaThread::verify_frame_info() [clone .part.0]+0x40 (javaThread.cpp:1347)
      V [libjvm.so+0xdd66f8] JavaThread::oops_do_no_frames(OopClosure*, NMethodClosure*)+0x358 (lockStack.inline.hpp:43)
      V [libjvm.so+0x178d854] Thread::oops_do(OopClosure*, NMethodClosure*)+0x90 (thread.cpp:448)
      V [libjvm.so+0x17a3b10] Threads::possibly_parallel_threads_do(bool, ThreadClosure*)+0x1c0 (threads.cpp:265)
      V [libjvm.so+0x17a51f4] Threads::possibly_parallel_oops_do(bool, OopClosure*, NMethodClosure*)+0x24 (threads.cpp:1170)
      V [libjvm.so+0xc5ac20] G1RootProcessor::process_java_roots(G1RootClosures*, G1GCPhaseTimes*, unsigned int)+0x80 (g1RootProcessor.cpp:180)
      V [libjvm.so+0xc5b560] G1RootProcessor::evacuate_roots(G1ParScanThreadState*, unsigned int)+0x70 (g1RootProcessor.cpp:61)
      V [libjvm.so+0xc6c614] G1EvacuateRegionsTask::scan_roots(G1ParScanThreadState*, unsigned int)+0x24 (g1YoungCollector.cpp:669)
      V [libjvm.so+0xc6cb38] G1EvacuateRegionsBaseTask::work(unsigned int)+0x98 (g1YoungCollector.cpp:656)
      V [libjvm.so+0x18d2ebc] WorkerThread::run()+0x98 (workerThread.cpp:70)
      V [libjvm.so+0x178e114] Thread::call_run()+0xb0 (thread.cpp:234)
      V [libjvm.so+0x13b06c8] thread_native_entry(Thread*)+0x138 (os_linux.cpp:858)
      C [libpthread.so.0+0x8748] start_thread+0x188
      JavaThread 0x0000ffff344cd090 (nid = 21037) was being processed
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      v ~RuntimeStub::nep_invoker_blob 0x0000ffff9bd4268c
      j java.lang.invoke.LambdaForm$MH+0x0000ffff744a04b0.invoke(Ljava/lang/Object;JFJJJIIIIIFFIIJJ)V+47 java.base@24-internal
      j java.lang.invoke.LambdaForm$MH+0x0000ffff74481870.invokeExact_MT(Ljava/lang/Object;JFJJJIIIIIFFIIJJLjava/lang/Object;)V+49 java.base@24-internal
      j jdk.internal.foreign.abi.DowncallStub+0x000003f801004000.invoke(Ljava/lang/foreign/SegmentAllocator;Ljava/lang/foreign/MemorySegment;FLjava/lang/foreign/MemorySegment;Ljava/lang/foreign/MemorySegment;Ljava/lang/foreign/MemorySegment;IIIIIFFIILjava/lang/foreign/MemorySegment;Ljava/lang/foreign/MemorySegment;)V+369 java.base@24-internal
      j java.lang.invoke.LambdaForm$DMH+0x0000ffff74448400.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;FLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IIIIIFFIILjava/lang/Object;Ljava/lang/Object;)V+42 java.base@24-internal
      j java.lang.invoke.LambdaForm$MH+0x0000ffff7449fd40.invoke(Ljava/lang/Object;FLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IIIIIFFIILjava/lang/Object;Ljava/lang/Object;)V+84 java.base@24-internal
      j java.lang.invoke.LambdaForm$MH+0x0000ffff74480428.invokeExact_MT(Ljava/lang/Object;FLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;IIIIIFFIILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V+46 java.base@24-internal
      j sun.font.HBShaper.lambda$shape$0(Ljava/awt/geom/Point2D$Float;[F[CFLjava/lang/foreign/MemorySegment;IIIIII)V+79 java.desktop@24-internal
      j sun.font.HBShaper$$Lambda+0x000003f801029a08.run()V+44 java.desktop@24-internal
      j jdk.internal.vm.ScopedValueContainer.runWithoutScope(Ljava/lang/Runnable;)V+21 java.base@24-internal
      j jdk.internal.vm.ScopedValueContainer.run(Ljava/lang/Runnable;)V+7 java.base@24-internal
      j java.lang.ScopedValue$Carrier.runWith(Ljava/lang/ScopedValue$Snapshot;Ljava/lang/Runnable;)V+9 java.base@24-internal
      j java.lang.ScopedValue$Carrier.run(Ljava/lang/Runnable;)V+29 java.base@24-internal
      j sun.font.HBShaper.shape(Lsun/font/Font2D;Lsun/font/FontStrike;F[FLjava/lang/foreign/MemorySegment;[CLsun/font/GlyphLayout$GVData;IIIILjava/awt/geom/Point2D$Float;II)V+48 java.desktop@24-internal
      j sun.font.SunLayoutEngine.layout(Lsun/font/FontStrikeDesc;[FFIILsun/font/TextRecord;ILjava/awt/geom/Point2D$Float;Lsun/font/GlyphLayout$GVData;)V+75 java.desktop@24-internal
      j sun.font.GlyphLayout$EngineRecord.layout()V+102 java.desktop@24-internal
      J 1710 c1 sun.font.GlyphLayout.layout(Ljava/awt/Font;Ljava/awt/font/FontRenderContext;[CIIILsun/font/StandardGlyphVector;)Lsun/font/StandardGlyphVector; java.desktop@24-internal (683 bytes) @ 0x0000ffff9482739c [0x0000ffff94824c40+0x000000000000275c]
      j java.awt.Font.layoutGlyphVector(Ljava/awt/font/FontRenderContext;[CIII)Ljava/awt/font/GlyphVector;+19 java.desktop@24-internal
      j FontLayoutStressTest.doLayout()D+15
      j FontLayoutStressTest.lambda$main$0(Ljava/util/concurrent/CyclicBarrier;DLjava/util/concurrent/atomic/AtomicReference;)V+23
      j FontLayoutStressTest$$Lambda+0x000003f801001218.run()V+12
      j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@24-internal
      j java.lang.Thread.run()V+19 java.base@24-internal
      v ~StubRoutines::call_stub 0x0000ffff9b9f1190

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: