JDK-8346216 : FunctionKeyTest.java fails on Linux - EDT blocked in CyclicBarrier
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,11,17,21,24
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: generic
  • Submitted: 2024-12-13
  • Updated: 2024-12-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Cloners :  
Description
The test fails with the following log on Linux in 8u

----------System.out:(7/94)----------
frame.windowActivated
e.id=1004
e.id=403
e.id=403
e.id=404
e.id=403
Timeout refired 240 times
----------System.err:(1/86)----------

"MainThread" #11 prio=5 os_prio=0 tid=0x0000790754148000 nid=0x11771 in Object.wait() [0x0000790718b25000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000f5b60a50> (a java.awt.EventQueue$1AWTInvocationLock)
        at java.lang.Object.wait(Object.java:502)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1343)
        - locked <0x00000000f5b60a50> (a java.awt.EventQueue$1AWTInvocationLock)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
        at FunctionKeyTest.main(FunctionKeyTest.java:111)
        at …
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run(Thread.java:750)

"AWT-EventQueue-0" #15 prio=6 os_prio=0 tid=0x00007906f0137800 nid=0x11776 waiting on condition [0x0000790718348000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000f5951ec0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:234)
        at java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:362)
        at FunctionKeyTest$FunctionKeyTester.handleEvent(FunctionKeyTest.java:163)
        at java.awt.Window.postEvent(Window.java:2755)
        at java.awt.Component.postEvent(Component.java:5204)
        at java.awt.Component.dispatchEventImpl(Component.java:4905)
        at java.awt.Component.dispatchEvent(Component.java:4711)
        at …
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comments
The FunctionKeyTest.java fails with such symptoms in all the releases.
13-12-2024

In this case, the java/awt/event/KeyEvent/FunctionKeyTest.java test passed. Yet it cannot dispose of the frame… because EDT is blocked on the CyclicBarrier in FunctionKeyTester.handleEvent as if another (key) event is expected. This kind of failure has been seen in 8u only so far.
13-12-2024