JDK-4816519 : VM crash in WColor.getDefaultColor under jtreg
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2_03,6
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_nt,windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2003-02-11
  • Updated: 2014-10-15
  • Resolved: 2007-02-08
Related Reports
Relates :  
Description
Name: agR10216			Date: 02/11/2003

###@###.###

This bug can be reproduced occasionally, but it prevents us
from running tests.
Here is the .jtr file for an empty test,
test/java/awt/TEMPLATE/AutomaticAppletTest.html:


#Test Results (version 2)
#Mon Feb 10 20:17:21 MSK 2003
#checksum:41f4bf52f950a8d2
#-----testdescription-----
$file=Y:\\gas\\mantis\\test\\java\\awt\\TEMPLATE\\AutomaticAppletTest.html
$root=Y:\\gas\\mantis\\test
author=Your Name: area= XXX_CHANGE_THIS
keywords=bug9999999
run=USER_SPECIFIED applet AutomaticAppletTest.html\r\n
source=AutomaticAppletTest.html
title=Explanation

#-----environment-----

#-----testresult-----
description=file:///Y:/gas/mantis/test/java/awt/TEMPLATE/AutomaticAppletTest.html
end=Mon Feb 10 20:17:21 MSK 2003
environment=regtest
execStatus=Passed. Execution successful
javatestOS=Windows NT 4.0 (x86)
javatestVersion=2.1.6
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build applet
start=Mon Feb 10 20:17:18 MSK 2003
status=Passed. Execution successful
test=java/awt/TEMPLATE/AutomaticAppletTest.html
work=D:\\work\\test\\w\\JTwork\\java\\awt\\TEMPLATE

#section:script_messages
----------messages:(4/212)*----------
JDK under test: (W:\\JDK1.4.2b16\\windows-i586)
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b16)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b16, mixed mode)

#section:build
----------messages:(3/106)----------
command: build AutomaticAppletTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. No need to compile: AutomaticAppletTest.java

#section:applet
----------messages:(3/142)----------
command: applet AutomaticAppletTest.html
reason: User specified action: run applet AutomaticAppletTest.html
elapsed time (seconds): 3.695
----------System.out:(63/3263)*----------
Any messages for the tester will display here.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x1C36513C
Function=Java_sun_awt_windows_WColor_getDefaultColor+0x5C8C
Library=W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\awt.dll

Current Java thread:
        at sun.awt.windows.WToolkit.eventLoop(Native Method)
        at sun.awt.windows.WToolkit.run(WToolkit.java:262)
        at java.lang.Thread.run(Thread.java:534)

Dynamic libraries:
0x00400000 - 0x00406000         W:\\JDK1.4.2b16\\windows-i586\\bin\\java.exe
0x77F60000 - 0x77FBE000         C:\\WINNT\\System32\\ntdll.dll
0x77DC0000 - 0x77DFF000         C:\\WINNT\\system32\\ADVAPI32.dll
0x77F00000 - 0x77F5E000         C:\\WINNT\\system32\\KERNEL32.dll
0x77E70000 - 0x77EC5000         C:\\WINNT\\system32\\USER32.dll
0x77ED0000 - 0x77EFC000         C:\\WINNT\\system32\\GDI32.dll
0x77E10000 - 0x77E67000         C:\\WINNT\\system32\\RPCRT4.dll
0x78000000 - 0x78044000         C:\\WINNT\\system32\\MSVCRT.dll
0x08000000 - 0x08135000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\client\\jvm.dll
0x77FD0000 - 0x77FFA000         C:\\WINNT\\System32\\WINMM.dll
0x6BC00000 - 0x6BC16000         C:\\WINNT\\System32\\snd93x.dll
0x00900000 - 0x0090B000         C:\\WINNT\\System32\\alcxnt.dll
0x6BD00000 - 0x6BD07000         C:\\WINNT\\System32\\alswwtnt.dll
0x10000000 - 0x10007000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\hpi.dll
0x77BF0000 - 0x77BF7000         C:\\WINNT\\System32\\rpcltc1.dll
0x00920000 - 0x0092E000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\verify.dll
0x00930000 - 0x00948000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\java.dll
0x00950000 - 0x0095D000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\zip.dll
0x1C2F0000 - 0x1C3F7000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\awt.dll
0x77C00000 - 0x77C18000         C:\\WINNT\\System32\\WINSPOOL.DRV
0x76AB0000 - 0x76AB5000         C:\\WINNT\\System32\\IMM32.dll
0x77B20000 - 0x77BD7000         C:\\WINNT\\system32\\ole32.dll
0x1C420000 - 0x1C470000         W:\\JDK1.4.2b16\\windows-i586\\jre\\bin\\fontmanager.dll
0x77130000 - 0x77156000         C:\\WINNT\\System32\\ddraw.dll
0x76AA0000 - 0x76AA6000         C:\\WINNT\\System32\\INDICDLL.dll
0x48000000 - 0x48067000         C:\\WINNT\\System32\\RICHED20.DLL
0x76AC0000 - 0x76ADD000         C:\\WINNT\\System32\\imagehlp.dll
0x71DC0000 - 0x71DCA000         C:\\WINNT\\System32\\PSAPI.DLL

Heap at VM Abort:
Heap
 def new generation   total 576K, used 423K [0x10010000, 0x100b0000, 0x109e0000)
  eden space 512K,  70% used [0x10010000, 0x10069c18, 0x10090000)
  from space 64K, 100% used [0x100a0000, 0x100b0000, 0x100b0000)
  to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
 tenured generation   total 1408K, used 89K [0x109e0000, 0x10b40000, 0x18010000)
   the space 1408K,   6% used [0x109e0000, 0x109f67f8, 0x109f6800, 0x10b40000)
 compacting perm gen  total 4096K, used 3010K [0x18010000, 0x18410000, 0x1c010000)
   the space 4096K,  73% used [0x18010000, 0x18300830, 0x18300a00, 0x18410000)

Local Time = Mon Feb 10 20:17:21 2003
Elapsed Time = 3
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b16 mixed mode)
#
# An error report file has been saved as hs_err_pid364.log.
# Please refer to the file for further information.
#
----------System.err:(1/16)----------
STATUS:Passed.
result: Passed. Execution successful


test result: Passed. Execution successful

###@###.### 2002-02-11
======================================================================

Comments
EVALUATION the crash is not reproducible using JDK 6 / JDK 7. feel free to reopen the bug if the problem still occurs.
08-02-2007

EVALUATION Unfortunately, I couldn't reproduce this crash using 1.4.2, mustang in my environment (Win XP, SP2). It's very likely that the bug was fixed somehow (see exact closed issue - 5018872). So retargeted it. Will investigate more detail if it's still reproducible using mustang somewhere.
12-09-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
27-09-2004

WORK AROUND Name: agR10216 Date: 02/11/2003 ======================================================================
27-09-2004

EVALUATION Java_sun_awt_windows_WColor_getDefaultColor is owned by AWT. ###@###.### 2003-02-13 Name: agR10216 Date: 02/17/2003 I couldn't reproduce this bug on Win2000 nor on WinXP. The bug seems to be reproducible only on WinNT. ###@###.### 2003-02-17 ======================================================================
17-02-2003