JDK-6834525 : PIT: RowToleranceTransitivityTest test fail with crash on rhel4 x86 and rhel 5x86
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_redhat_5.0
  • CPU: x86
  • Submitted: 2009-04-27
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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.
JDK 7
7 b60Fixed
Related Reports
Relates :  
Relates :  
Description
jdk: /net/spb-cyclops/export/IntegrationBuilds/7/2009-04-27-042403.ss145989.jdk7-swing-pit-with-awt/

reg test: closed/java/awt/Focus/SortingFocusTraversalPolicy/RowToleranceTransitivityTest/ fail with crash on rhel4 x86 and rhel5 x86 on jdk7b57_awt_swing_pit

This test failed on jdk7b55 but passed on jdk7b53. Not always reproduced(90%).
I set the priority of this bug to p2 because it fail with crash but jtreg report that this test passed. Test should be fixed before lower priority.
crash log  and jtr file attached.

jtreg logs: 
#Test Results (version 2)
#Mon Apr 27 18:40:42 MSD 2009
#checksum:7bf7a2829dfd40fd
#-----testdescription-----
$file=/export/results/test/closed/java/awt/Focus/SortingFocusTraversalPolicy/RowToleranceTransitivityTest/RowToleranceTransitivityTest.html
.......................
.......................
.......................
alse,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=JCheckBox]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00a68bbf, pid=27526, tid=2829937568
#
# JRE version: 7.0
# Java VM: Java HotSpot(TM) Client VM (16.0-b01-2009-04-27-042403.ss145989.jdk7-swing-pit-with-awt mixed mode linux-x86 )
# Problematic frame:
# C  [libX11.so.6+0x58bbf]  XkbTranslateKeyCode+0x2f
#
# An error report file with more information is saved as:
# /export/results/JTwork/scratch/hs_err_pid27526.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
----------System.err:(1/15)----------
STATUS:Passed.
result: Passed. Execution successful 

Steps to reproduce:
1 login to the computer.
2 mkdir /tmp/tempresults
2 cd /tmp/tempresults
3 export DISPLAY=:0
4 xhost +
5 run /set/stt/newroot/results/1.7.0/b57/pit/regression/RowToleranceTransitivityTest/run.sh

Comments
EVALUATION This rather strange test reveals such a problem: it is possible to have a [key] event still in process in XToolkit.dispatchEvent() and at the same time have shutdown hook of XToolkit finished (and XKB resources freed). This particular situation may be fixed by asserting in a proper place that XKB is not freed. I didn't check how about XAWTXSettings or XSystemTrayPeer.
05-05-2009