Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6646812
Votes 0
Synopsis PIT: 6u10-b10 PIT build is DOA on Vista
Category java:classes_2d
Reported Against b10
Release Fixed 6u10(b10)
State 10-Fix Delivered, Verified, bug
Priority: 1-Very High
Related Bugs
Submit Date 03-JAN-2008
Description
6u10-b10 PIT build is broken on Windows Vista and launching any UI application causes a VM crash. Build works fine on WinXP. I am able to reproduce this on all Windows Vista versions. 

Here is the stacktrace of SwingSet2 Crash:
-------------------------------------------

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x2c0e376e, pid=3288, tid=2248
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b09 mixed mode, sharing windows-x86)
# Problematic frame:
# C  0x2c0e376e
#
# 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.
#

---------------  T H R E A D  ---------------

Current thread (0x00bf8c00):  JavaThread "main" [_thread_in_native, id=2248, stack(0x00390000,0x003e0000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x04359d3c

Registers:
EAX=0x04359d3c, EBX=0x760b0000, ECX=0x04359dec, EDX=0x000000ec
ESP=0x003debc8, EBP=0x003dec00, ESI=0x6db6b1dc, EDI=0x00bf8c00
EIP=0x2c0e376e, EFLAGS=0x00010206

Top of Stack: (sp=0x003debc8)
0x003debc8:   2c0e001b 01f79d11 00bf8d14 003dec08
0x003debd8:   017544b8 017544bc 003debe0 2c0e3788
0x003debe8:   003dec0c 2c93f458 00000000 2c93fc60
0x003debf8:   00000000 003dec10 003dec30 01f72da1
0x003dec08:   2ce034a0 01f78189 003dec10 2c0e37c2
0x003dec18:   003dec34 2c93f458 00000000 2c93fcb8
0x003dec28:   003dec10 003dec38 003dec58 01f72da1
0x003dec38:   003dec38 2c0e348f 003dec5c 2c93f458 

Instructions: (pc=0x2c0e376e)
0x2c0e375e:   df 2c 5d 01 00 00 00 00 00 00 60 fc 93 2c 00 00
0x2c0e376e:   00 00 68 00 01 2c 0c 00 00 00  customer  00 00 00 6b 00 


Stack: [0x00390000,0x003e0000],  sp=0x003debc8,  free space=314k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x2c0e376e
j  sun.awt.Win32GraphicsEnvironment.initDisplayWrapper()V+10
j  sun.awt.Win32GraphicsEnvironment.<clinit>()V+23
v  ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.Win32GraphicsEnvironment.initDisplay()V+0
j  sun.awt.Win32GraphicsEnvironment.initDisplayWrapper()V+10
j  sun.awt.Win32GraphicsEnvironment.<clinit>()V+23
v  ~StubRoutines::call_stub
j  sun.awt.windows.WToolkit.<clinit>()V+25
v  ~StubRoutines::call_stub
j  java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
j  java.awt.Toolkit$2.run()Ljava/lang/Object;+13
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
j  java.awt.Toolkit.getDefaultToolkit()Ljava/awt/Toolkit;+16
j  javax.swing.UIManager.<clinit>()V+138
v  ~StubRoutines::call_stub
j  SwingSet2.main([Ljava/lang/String;)V+5
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x01731400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5752, stack(0x04220000,0x04270000)]
  0x0172c000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5844, stack(0x041d0000,0x04220000)]
  0x0172b800 JavaThread "Attach Listener" daemon [_thread_blocked, id=4744, stack(0x04180000,0x041d0000)]
  0x01721000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5340, stack(0x04130000,0x04180000)]
  0x01715400 JavaThread "Finalizer" daemon [_thread_blocked, id=5740, stack(0x040e0000,0x04130000)]
  0x01714000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3632, stack(0x04090000,0x040e0000)]
=>0x00bf8c00 JavaThread "main" [_thread_in_native, id=2248, stack(0x00390000,0x003e0000)]

Other Threads:
  0x00bffc00 VMThread [stack: 0x04040000,0x04090000] [id=5060]
  0x01731c00 WatcherThread [stack: 0x04270000,0x042c0000] [id=5512]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 462K [0x24010000, 0x24110000, 0x244f0000)
  eden space 896K,  51% used [0x24010000, 0x240839a0, 0x240f0000)
  from space 64K,   0% used [0x240f0000, 0x240f0000, 0x24100000)
  to   space 64K,   0% used [0x24100000, 0x24100000, 0x24110000)
 tenured generation   total 4096K, used 0K [0x244f0000, 0x248f0000, 0x28010000)
   the space 4096K,   0% used [0x244f0000, 0x244f0000, 0x244f0200, 0x248f0000)
 compacting perm gen  total 12288K, used 116K [0x28010000, 0x28c10000, 0x2c010000)
   the space 12288K,   0% used [0x28010000, 0x2802d188, 0x2802d200, 0x28c10000)
    ro space 8192K,  66% used [0x2c010000, 0x2c561b00, 0x2c561c00, 0x2c810000)
    rw space 12288K,  52% used [0x2c810000, 0x2ce6bd00, 0x2ce6be00, 0x2d410000)

Dynamic libraries:
0x00400000 - 0x00423000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\bin\java.exe
0x777f0000 - 0x7790e000 	C:\Windows\system32\ntdll.dll
0x76560000 - 0x76638000 	C:\Windows\system32\kernel32.dll
0x77170000 - 0x7722f000 	C:\Windows\system32\ADVAPI32.dll
0x773f0000 - 0x774b3000 	C:\Windows\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\msvcr71.dll
0x6d970000 - 0x6dbc6000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\client\jvm.dll
0x760b0000 - 0x7614e000 	C:\Windows\system32\USER32.dll
0x774e0000 - 0x7752b000 	C:\Windows\system32\GDI32.dll
0x74860000 - 0x74893000 	C:\Windows\system32\WINMM.dll
0x76150000 - 0x761fa000 	C:\Windows\system32\msvcrt.dll
0x763c0000 - 0x76504000 	C:\Windows\system32\ole32.dll
0x77360000 - 0x773ec000 	C:\Windows\system32\OLEAUT32.dll
0x74820000 - 0x74858000 	C:\Windows\system32\OLEACC.dll
0x774c0000 - 0x774de000 	C:\Windows\system32\IMM32.DLL
0x76200000 - 0x762c7000 	C:\Windows\system32\MSCTF.dll
0x75ee0000 - 0x75f0c000 	C:\Windows\system32\apphelp.dll
0x77110000 - 0x77119000 	C:\Windows\system32\LPK.DLL
0x76330000 - 0x763ad000 	C:\Windows\system32\USP10.dll
0x10000000 - 0x10022000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\splashscreen.dll
0x74dd0000 - 0x74e0f000 	C:\Windows\system32\uxtheme.dll
0x000f0000 - 0x000f8000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\hpi.dll
0x76010000 - 0x76017000 	C:\Windows\system32\PSAPI.DLL
0x00110000 - 0x0011c000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\verify.dll
0x00b30000 - 0x00b4f000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\java.dll
0x00180000 - 0x0018f000 	y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\zip.dll
0x042c0000 - 0x04400000 	Y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\jre\bin\awt.dll
0x740a0000 - 0x740e1000 	C:\Windows\system32\WINSPOOL.DRV

VM Arguments:
java_command: SwingSet2.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=y:\disk05\2d-SQE\PIT\6uN\2008-01- customer -int.6u_2008q2\windows-i586\bin;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\X11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
USERNAME=admin
SHELL=C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe
DISPLAY=:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows Vista Build 6000 

CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht

Memory: 4k page, physical 1571004k(912472k free), swap 3389680k(2593636k free)

vm_info: Java HotSpot(TM) Client VM (11.0-b09) for windows-x86 JRE (1.6.0_10-ea-b09), built on Dec 19 2007 00:58:12 by "java_re" with MS VC++ 7.1

time: Thu Jan 03 17:20:42 2008
elapsed time: 3 seconds

------------------------------------------------------------------
The same crash can be reproduced with any UI application.

This is a blocker for the PIT on Vista and b10 is a beta candidate build.
Posted Date : 2008-01-03 12:14:28.0
Work Around
N/A
Evaluation
The problem was that I didn't put WINAPI in the
typedef of the DwmIsCompositionEnabled function, so it was 
corrupting the stack when I called it via the pointer.

I have no idea why did it work in fastdebug/debug
builds.

I have also updated the typedef for SetProcessDPIAware
to be on the safe side.
Posted Date : 2008-01-03 19:35:13.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang