JDK-8263408 : applications/ctw/modules/java_desktop.java failed "assert(use == polladr) failed: the use should be a safepoint polling"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: aarch64
  • Submitted: 2021-03-11
  • Updated: 2021-03-11
  • Resolved: 2021-03-11
Related Reports
Duplicate :  
Description
The following test failed in the JDK17 CI:

applications/ctw/modules/java_desktop.java

Here's a snippet from the log file:

Executed CTW for all 2726 classes in modules:java.desktop(at /opt/mach5/mesos/work_dir/jib-master/install/jdk-17+13-1009/linux-aarch64-debug.jdk/jdk-17/fastdebug/lib/modules)
----------System.err:(25/1752)----------
There were 1 errors:[
java.lang.Error: modules_java_desktop_0: failed during compilation of class #625 : com/sun/media/sound/RealTimeSequencer$DataPump
	at sun.hotspot.tools.ctw.CtwRunner.startCtwforAllClasses(CtwRunner.java:215)
	at sun.hotspot.tools.ctw.CtwRunner.run(CtwRunner.java:119)
	at sun.hotspot.tools.ctw.CtwRunner.main(CtwRunner.java:65)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:831)

java.lang.AssertionError: There were 1 errors:[{modules_java_desktop_0: failed during compilation of class #625 : com/sun/media/sound/RealTimeSequencer$DataPump}]
	at sun.hotspot.tools.ctw.CtwRunner.run(CtwRunner.java:134)
	at sun.hotspot.tools.ctw.CtwRunner.main(CtwRunner.java:65)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:831)

JavaTest Message: Test threw exception: java.lang.AssertionError
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: There were 1 errors:[{modules_java_desktop_0: failed during compilation of class #625 : com/sun/media/sound/RealTimeSequencer$DataPump}]


Here's snippets from the hs_err_pid file:

#  Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14968/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/499e2f8f-4dc8-452c-b9cf-31cd535027da/runs/77ab8ff2-7226-4f08-81eb-d38cbd19688b/workspace/open/src/hotspot/share/opto/loopTransform.cpp:3711), pid=221251, tid=221264
#  assert(use == polladr) failed: the use should be a safepoint polling
#
# JRE version: Java(TM) SE Runtime Environment (17.0+13) (fastdebug build 17-ea+13-LTS-1009)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+13-LTS-1009, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x11d6c30]  PhaseIdealLoop::match_fill_loop(IdealLoopTree*, Node*&, Node*&, Node*&, Node*&)+0xbe0

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

Current thread (0x0000fffcfc524850):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=221264, stack(0x0000fffcdc1e0000,0x0000fffcdc3e0000)]


Current CompileTask:
C2: 133501 19154   !b  4       com.sun.media.sound.RealTimeSequencer$DataPump::makeDisabledArray (183 bytes)

Stack: [0x0000fffcdc1e0000,0x0000fffcdc3e0000],  sp=0x0000fffcdc3d9c50,  free space=2023k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x11d6c30]  PhaseIdealLoop::match_fill_loop(IdealLoopTree*, Node*&, Node*&, Node*&, Node*&)+0xbe0
V  [libjvm.so+0x11d6f28]  PhaseIdealLoop::intrinsify_fill(IdealLoopTree*) [clone .part.0]+0xa4
V  [libjvm.so+0x11d7d88]  PhaseIdealLoop::do_intrinsify_fill()+0x218
V  [libjvm.so+0x120ab58]  PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0xec8
V  [libjvm.so+0x97f4cc]  PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x28c
V  [libjvm.so+0x97cc0c]  Compile::Optimize()+0xf3c
V  [libjvm.so+0x97df70]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0xf50
V  [libjvm.so+0x7b7eac]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x178
V  [libjvm.so+0x98d3ec]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x9b8
V  [libjvm.so+0x98dfa4]  CompileBroker::compiler_thread_loop()+0x324
V  [libjvm.so+0x16d4d10]  JavaThread::thread_main_inner()+0x280
V  [libjvm.so+0x16dd4b8]  Thread::call_run()+0xf8
V  [libjvm.so+0x1411930]  thread_native_entry(Thread*)+0x120
C  [libpthread.so.0+0x76e0]  start_thread+0x198

Since this is a Tier2 failure, I'm starting this bug off as a P3.
Comments
This is duplicate of JDK-8263352.
11-03-2021