aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

JDK17-24: zLinux: Segmentation fault seen while changing focus between awt elements

Open adamfarley opened this issue 6 months ago • 3 comments

Summary A Segmentation fault can be seen on zLinux machines when the user switches focus between multiple awt elements over 20 times.

Details

Here are some useful facts:

  1. This issue is seen across several zLinux machines, and I've yet to find a machine that this issue doesn't occur on.

  2. On JDK17, this issue is first seen on jdk-17.0.13+1, and is not present in jdk-17.0.12+7.

  • Note: There are 881 file changes during this period. List here.
  1. While this issue is seen clearly in builds that far back, I see no sign of this issue in the March release of JDK24, so it's possible that this is some form of machine configuration issue.

  2. I don't think it's a memory problem, as adding the following code to the testcase's iterative loop shows no lack of free memory within the jvm.

Runtime.getRuntime().freeMemory();
  1. The test runs to completion 100% of the time if the JIT is disabled.

  2. The test passes on JDK11, but fails on JDK 17, 21, and 24.

Minimal testcase

Prep: Make sure you have a display set up, and that the DISPLAY environment variable is set to the appropriate value.

Command: java FocusTest.java

FocusTest.java.txt

Success: Test passed at 100 iterations.

Failure: Test fails with Segmentation fault.

adamfarley avatar Apr 25 '25 13:04 adamfarley