JDK-6587850 : PIT: D3D: Terminating a FullScreen application causes a VM crash
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u5
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-08-01
  • Updated: 2010-04-02
  • Resolved: 2007-09-12
Related Reports
Relates :  
Description
Launch an application that would push a frame in to FS exclusive mode. When the frame is in FS mode, go to the command prompt and press 'CTRL + C'. You will notice a VM crash. 

This is reproducible on WinXP with 6u4-b01 PIT build and not reproducible on 6u3. I reproduced it on WinXP-Nvidia GeForce 7600 GS, with the latest driver installed. 

Here is the crash log: 
----------------------
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4fdf6040, pid=2744, tid=3168
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-ea-b02 mixed mode windows-x86)
# Problematic frame:
# C  0x4fdf6040
#
# 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 (0x0adb7000):  JavaThread "AWT-Windows" daemon [_thread_in_native, id=3168, stack(0x0b050000,0x0b0a0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x4fdf6040

Registers:
EAX=0x7ffae000, EBX=0x00000000, ECX=0x40000000, EDX=0x00000002
ESP=0x0b09f880, EBP=0x0b09f8a8, ESI=0x4fdf6040, EDI=0x0b09f8e4
EIP=0x4fdf6040, EFLAGS=0x00010202

Top of Stack: (sp=0x0b09f880)
0x0b09f880:   7e418734 000f04e0 00000210 00010002
0x0b09f890:   001204ca 4fdf6040 dcbaabcd 00000000
0x0b09f8a0:   0b09f8e4 4fdf6040 0b09f910 7e418816
0x0b09f8b0:   4fdf6040 000f04e0 00000210 00010002
0x0b09f8c0:   001204ca 00000000 000f04e0 00000001
0x0b09f8d0:   00000014 00000001 00000000 00000000
0x0b09f8e0:   00000010 00000000 7ffae000 00000000
0x0b09f8f0:   00000000 00000000 0b09f8c4 0b09f4a4 

Instructions: (pc=0x4fdf6040)
0x4fdf6030:   
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]

Stack: [0x0b050000,0x0b0a0000],  sp=0x0b09f880,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x4fdf6040
C  [USER32.dll+0x8816]
C  [USER32.dll+0xb4c0]
C  [USER32.dll+0xb50c]
C  [ntdll.dll+0xeae3]
C  [USER32.dll+0x8734]
C  [USER32.dll+0x8816]
C  [USER32.dll+0xb89b]
C  [USER32.dll+0xb903]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)

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

Java Threads: ( => current thread )
  0x0aaca800 JavaThread "Thread-1" daemon [_thread_in_native, id=2508, stack(0x0b2a0000,0x0b2f0000)]
  0x0aada400 JavaThread "SIGINT handler" daemon [_thread_blocked, id=1932, stack(0x0b250000,0x0b2a0000)]
  0x00296400 JavaThread "DestroyJavaVM" [_thread_blocked, id=380, stack(0x008c0000,0x00910000)]
  0x0adcd800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3780, stack(0x0b110000,0x0b160000)]
=>0x0adb7000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3168, stack(0x0b050000,0x0b0a0000)]
  0x0adb6400 JavaThread "AWT-Shutdown" [_thread_blocked, id=3144, stack(0x0b000000,0x0b050000)]
  0x0aac8000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1004, stack(0x0afb0000,0x0b000000)]
  0x0aaa0400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3348, stack(0x0acf0000,0x0ad40000)]
  0x0aa9dc00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=956, stack(0x0aca0000,0x0acf0000)]
  0x0aa99800 JavaThread "Attach Listener" daemon [_thread_blocked, id=3140, stack(0x0ac50000,0x0aca0000)]
  0x0aa98800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1972, stack(0x0ac00000,0x0ac50000)]
  0x0aa89000 JavaThread "Finalizer" daemon [_thread_blocked, id=3464, stack(0x0abb0000,0x0ac00000)]
  0x0aa84c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=1488, stack(0x0ab60000,0x0abb0000)]

Other Threads:
  0x0aa81c00 VMThread [stack: 0x0ab10000,0x0ab60000] [id=2144]
  0x0aab2000 WatcherThread [stack: 0x0ad40000,0x0ad90000] [id=1816]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 847K [0x02990000, 0x02a90000, 0x02e70000)
  eden space 896K,  94% used [0x02990000, 0x02a63dd0, 0x02a70000)
  from space 64K,   0% used [0x02a70000, 0x02a70000, 0x02a80000)
  to   space 64K,   0% used [0x02a80000, 0x02a80000, 0x02a90000)
 tenured generation   total 4096K, used 0K [0x02e70000, 0x03270000, 0x06990000)
   the space 4096K,   0% used [0x02e70000, 0x02e70000, 0x02e70200, 0x03270000)
 compacting perm gen  total 12288K, used 4662K [0x06990000, 0x07590000, 0x0a990000)
   the space 12288K,  37% used [0x06990000, 0x06e1d8e8, 0x06e1da00, 0x07590000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00423000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\bin\java.exe
0x7c900000 - 0x7c9b0000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 	C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 	C:\WINDOWS\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\msvcr71.dll
0x6d880000 - 0x6dad0000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\client\jvm.dll
0x7e410000 - 0x7e4a0000 	C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 	C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 	C:\WINDOWS\system32\WINMM.dll
0x76390000 - 0x763ad000 	C:\WINDOWS\system32\IMM32.DLL
0x6d330000 - 0x6d338000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d830000 - 0x6d83c000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\verify.dll
0x6d3d0000 - 0x6d3ef000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\java.dll
0x6d870000 - 0x6d87f000 	y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\zip.dll
0x6d0b0000 - 0x6d1eb000 	Y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\awt.dll
0x73000000 - 0x73026000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x77c10000 - 0x77c68000 	C:\WINDOWS\system32\msvcrt.dll
0x774e0000 - 0x7761d000 	C:\WINDOWS\system32\ole32.dll
0x6d2d0000 - 0x6d323000 	Y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\windows-i586\jre\bin\fontmanager.dll
0x74720000 - 0x7476b000 	C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 	C:\WINDOWS\system32\msctfime.ime
0x77120000 - 0x771ac000 	C:\WINDOWS\system32\OLEAUT32.DLL

VM Arguments:
java_command: FullScreenTest
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=y:/disk05/2d-SQE/PIT/6u4/2007-07-31.6u4/windows-i586
PATH=y:\disk05\2d-SQE\PIT\6u4\2007-07-31.6u4\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:\PROGRA~1\ULTRAE~1;C:\PROGRA~1\IDMCOM~1\ULTRAE~1;C:\adabas\bin;C:\adabas\pgm
USERNAME=admin
SHELL=C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe
DISPLAY=:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2

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

Memory: 4k page, physical 1047276k(427876k free), swap 1734072k(1231780k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0_03-ea-b02) for windows-x86, built on Jul 25 2007 02:58:27 by "java_re" with unknown MS VC++:1310

time: Wed Aug 01 17:35:47 2007
elapsed time: 13 seconds
--------------------------------------------------------------

I have attached the test to the bug report. Run the test. A frame would come up with a button. Click on the button. Frame will be pushed in FS mode. Return to the command prompt and press CTRL+C. You will see a VM crash.

Comments
EVALUATION Closing as not reproducible - it's been addressed by another fix.
12-09-2007

EVALUATION I have tested with builds(b02 and b03) and crash can't not reproducible.
12-09-2007

EVALUATION Could the submitter please try this again on the latest build? I can't reproduce the crash on my hw even with b01 so I can't verify, but I've fixed a crash on exit bug in b02 (6588870), so I think this bug could have been another manifestation.
05-09-2007