JDK-6800491 : Sequental execution of two JCK tests cause JCK agent crash in AWT thread -server -Xcomp
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-02-03
  • Updated: 2012-03-22
  • Resolved: 2009-05-05
Related Reports
Duplicate :  
Relates :  
Description
Steps to reproduce:
I have to admit I see no better idea then just filling interview and performing execution manually.

1. install JCK-runtime-7 b10 and JCK-extra-7 b10
2. Do command (substitute your real values) C:\jck\jck_b10>java -Xmx1024m -jar C:\jck\jck_b10\JCK-runtime-7\lib\jtjck.jar -g -JDK C:\jck\jck_b10\jdk1.7.0 
3. Go to JCK interview and remove all exclude lists.
4. Run active agent (substitute real values) with command 

"$PRODUCT/bin/java" -Xmx512m  -XX:PermSize=128m -XX:MaxPermSize=128m -Xfuture -cp "$PRODUCT/lib;$PRODUCT/lib/rt.jar;$TEST_SUITE/classes;$TEST_SUITE/lib/javatest.jar;$PRODUCT/lib/tools.jar" \
    "-Djava.security.policy=$TEST_SUITE/lib/jck.policy" \
    "-Djava.security.auth.policy=$TEST_SUITE/lib/java.auth.policy" \
    "-Djava.security.auth.login.config=$TEST_SUITE/lib/java.login.config" \
    "-Duser.home=$HOME" \
    "-Djava.ext.dirs=$TEST_SUITE/lib/extensions;${PRODUCT}/lib/ext;${PRODUCT}/jre/lib/ext " \
    -showversion \
    com.sun.javatest.agent.AgentMain \
    -active -activeHost 127.0.0.1 -activePort 1907 -concurrency 10

5. Edit configuration, set Test Execution Mode to "SameJVM" and fill several outstanding questions 
6. Go to tools/agent monitor menu item and check "listening" checkbox.
7. Find and execute api/java_awt/awt_focus_subsystem/focus_propertychangelistener/index.html#PropertyChangeListener3 ;test will pass
8. Find and execute api/java_awt/awt_focus_subsystem/focusable_windows/index.html#FocusableWindow3
test status wil be set to error; agent will crash.
JCK            : JCK7 b10
J2SE           : FAIL - JDK 7 b45 
Platform[s]    : FAIL - found on Windows XP 
switch/Mode    : FAIL - -server -Xcomp

Platform details:
OS: Windows XP Build 2600 Service Pack 3
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2096172k(192712k free), swap 4034284k(1564144k free)


Two tests:
api/java_awt/awt_focus_subsystem/focus_propertychangelistener/index.html\#PropertyChangeListener3 
and api/java_awt/awt_focus_subsystem/focusable_windows/index.html\#FocusableWindow3
cause crash of JCK agent if performed sequentially. Agent doesn't crash if only one test is performed.

Comments
EVALUATION This bug is a duplicate of another bug 6542975 - the ComCtl32 library crashes during handling the WM_IME_NOTIFY message. The bug 6542975 has been fixed in jdk7 b55 as a part of the fix for 6806217. I've verified that the crash doesn't occur during the JCK tests any more on jdk7 b55. Closing this bug.
05-05-2009

EVALUATION The stack trace for the crash is very close to stacks of the bugs 6723941, 6542975. The bugs have been fixed in 6 update but they're still open in jdk7. We'll need to check if it's a duplicate of one of these bugs.
06-02-2009