-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
7
-
x86
-
windows_vista
I have an application that does a screen capture of the desktop and keeps rotating/zooming this image from within an app controlled rendering loop. The application uses a buffer strategy with accelerated front and back buffers to render the image. When the app is running, I am bringing up the console and pressing CTRL + C. This causes the VM to crash instead of exiting gracefully.
This crash is not consistant and occurs intermittently. I got the crash 4 out of 10 times. I reproduced it with jdk7-b33 2D PIT build on WinVista installed with Nvidia GeForce 8400M GS. I am unable to reproduce it with 6u10.
To reproduce the bug, run the attached test (java BufferTest 1). You will see the desktop image rotating and scaling. When the image turns vertical, press CTRL + C. Try this a few times and you will see a VM crash.
Here is the crash log:
-----------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2160, tid=4712
#
# Java VM: Java HotSpot(TM) Client VM (14.0-b01 mixed mode windows-x86 )
# Problematic frame:
# C 0x00000000
#
# 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 (0x0c02d800): JavaThread "AWT-Windows" daemon [_thread_in_native, id=4712, stack(0x0c940000,0x0c990000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x01c88500, EBX=0x00000001, ECX=0x0c02e3c8, EDX=0x00000004
ESP=0x0c98f988, EBP=0x0c98f9b4, ESI=0x0c02d914, EDI=0x0c02e3c8
EIP=0x00000000, EFLAGS=0x00010293
Top of Stack: (sp=0x0c98f988)
0x0c98f988: 0c266450 0c98fa30 0000981a 00000000
0x0c98f998: 0c98fa30 0c98faec 0c02d914 0c98f98c
0x0c98f9a8: 0c98fa48 0c286ef8 00000001 0c98f9e0
0x0c98f9b8: 76d7f8d2 004804c2 0000981a 0c02e3c8
0x0c98f9c8: 00000000 0000981a dcbaabcd 00000000
0x0c98f9d8: 0c98fa30 0000981a 0c98fa58 76d7f794
0x0c98f9e8: 0c265f20 004804c2 0000981a 0c02e3c8
0x0c98f9f8: 00000000 dc723fda 0c98faf4 0c98faec
Instructions: (pc=0x00000000)
0xfffffff0:
Stack: [0x0c940000,0x0c990000], sp=0x0c98f988, free space=318k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WToolkit.eventLoop()V+0
j sun.awt.windows.WToolkit.run()V+69
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0c074400 JavaThread "Thread-1" daemon [_thread_in_native, id=172, stack(0x0ff90000,0x0ffe0000)]
0x0c070c00 JavaThread "SIGINT handler" daemon [_thread_blocked, id=5456, stack(0x0fef0000,0x0ff40000)]
0x0c066c00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2668, stack(0x0f170000,0x0f1c0000)]
=>0x0c02d800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4712, stack(0x0c940000,0x0c990000)]
0x0c02d000 JavaThread "AWT-Shutdown" [_thread_blocked, id=840, stack(0x0c8f0000,0x0c940000)]
0x01cff800 JavaThread "Java2D Disposer" daemon [_thread_in_native, id=5752, stack(0x0c860000,0x0c8b0000)]
0x01cb2400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4968, stack(0x0bf30000,0x0bf80000)]
0x01cac000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5588, stack(0x0bee0000,0x0bf30000)]
0x01cab000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1480, stack(0x0be90000,0x0bee0000)]
0x01ca0400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3108, stack(0x0be40000,0x0be90000)]
0x01c8ec00 JavaThread "Finalizer" daemon [_thread_blocked, id=5744, stack(0x0bdf0000,0x0be40000)]
0x01c8a000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4752, stack(0x0bda0000,0x0bdf0000)]
0x01c11c00 JavaThread "main" [_thread_in_native, id=4560, stack(0x00360000,0x003b0000)]
Other Threads:
0x01c86c00 VMThread [stack: 0x0bd50000,0x0bda0000] [id=5908]
0x01cb4c00 WatcherThread [stack: 0x0bf80000,0x0bfd0000] [id=3500]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 32K [0x03d00000, 0x03e00000, 0x041e0000)
eden space 896K, 3% used [0x03d00000, 0x03d083a0, 0x03de0000)
from space 64K, 0% used [0x03de0000, 0x03de0000, 0x03df0000)
to space 64K, 0% used [0x03df0000, 0x03df0000, 0x03e00000)
tenured generation total 11044K, used 8298K [0x041e0000, 0x04ca9000, 0x07d00000)
the space 11044K, 75% used [0x041e0000, 0x049fab70, 0x049fac00, 0x04ca9000)
compacting perm gen total 12288K, used 5089K [0x07d00000, 0x08900000, 0x0bd00000)
the space 12288K, 41% used [0x07d00000, 0x081f84c8, 0x081f8600, 0x08900000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00423000 c:\jdk\7\b33\bin\java.exe
0x76f70000 - 0x77097000 C:\Windows\system32\ntdll.dll
0x770e0000 - 0x771bb000 C:\Windows\system32\kernel32.dll
0x75a40000 - 0x75b06000 C:\Windows\system32\ADVAPI32.dll
0x76ad0000 - 0x76b92000 C:\Windows\system32\RPCRT4.dll
0x76d60000 - 0x76dfd000 C:\Windows\system32\USER32.dll
0x758c0000 - 0x7590b000 C:\Windows\system32\GDI32.dll
0x744f0000 - 0x7468e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\COMCTL32.dll
0x75940000 - 0x759ea000 C:\Windows\system32\msvcrt.dll
0x75b20000 - 0x75b78000 C:\Windows\system32\SHLWAPI.dll
0x76e00000 - 0x76e1e000 C:\Windows\system32\IMM32.DLL
0x757f0000 - 0x758b8000 C:\Windows\system32\MSCTF.dll
0x771c0000 - 0x771c9000 C:\Windows\system32\LPK.DLL
0x769d0000 - 0x76a4d000 C:\Windows\system32\USP10.dll
0x7c340000 - 0x7c396000 c:\jdk\7\b33\jre\bin\msvcr71.dll
0x6d8c0000 - 0x6db14000 c:\jdk\7\b33\jre\bin\client\jvm.dll
0x73ea0000 - 0x73ed2000 C:\Windows\system32\WINMM.dll
0x76e20000 - 0x76f64000 C:\Windows\system32\ole32.dll
0x76cd0000 - 0x76d5d000 C:\Windows\system32\OLEAUT32.dll
0x73e60000 - 0x73e99000 C:\Windows\system32\OLEACC.dll
0x75620000 - 0x7564c000 C:\Windows\system32\apphelp.dll
0x10000000 - 0x10008000 c:\jdk\7\b33\jre\bin\hpi.dll
0x75750000 - 0x75757000 C:\Windows\system32\PSAPI.DLL
0x00210000 - 0x0021c000 c:\jdk\7\b33\jre\bin\verify.dll
0x00240000 - 0x0025f000 c:\jdk\7\b33\jre\bin\java.dll
0x00220000 - 0x0022f000 c:\jdk\7\b33\jre\bin\zip.dll
0x0c1d0000 - 0x0c300000 C:\jdk\7\b33\jre\bin\awt.dll
0x731f0000 - 0x73232000 C:\Windows\system32\WINSPOOL.DRV
0x75ca0000 - 0x767af000 C:\Windows\system32\SHELL32.dll
0x744b0000 - 0x744ef000 C:\Windows\system32\uxtheme.dll
0x0c830000 - 0x0c858000 C:\jdk\7\b33\jre\bin\fontmanager.dll
0x0c8b0000 - 0x0c8e1000 C:\jdk\7\b33\jre\bin\t2k.dll
0x0d050000 - 0x0d071000 C:\Program Files\WIDCOMM\Bluetooth Software\btkeyind.dll
0x0fe30000 - 0x0fe4a000 C:\Program Files\Dell\QuickSet\dadkeyb.dll
VM Arguments:
java_command: BufferTest 1
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=c:\jdk\7\b33
PATH=c:\jdk\7\b33\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\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Subversion\bin;C:\Program Files\Mercurial;C:\Program Files\OpenSSH\bin;
USERNAME=Praveen
SHELL=C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe
DISPLAY=:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6001 Service Pack 1
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2094396k(891676k free), swap 4194303k(3032848k free)
vm_info: Java HotSpot(TM) Client VM (14.0-b01) for windows-x86 JRE (1.7.0-ea-b31), built on Jul 17 2008 03:01:08 by "java_re" with MS VC++ 7.1
time: Sun Aug 03 22:56:10 2008
elapsed time: 3 seconds
This crash is not consistant and occurs intermittently. I got the crash 4 out of 10 times. I reproduced it with jdk7-b33 2D PIT build on WinVista installed with Nvidia GeForce 8400M GS. I am unable to reproduce it with 6u10.
To reproduce the bug, run the attached test (java BufferTest 1). You will see the desktop image rotating and scaling. When the image turns vertical, press CTRL + C. Try this a few times and you will see a VM crash.
Here is the crash log:
-----------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2160, tid=4712
#
# Java VM: Java HotSpot(TM) Client VM (14.0-b01 mixed mode windows-x86 )
# Problematic frame:
# C 0x00000000
#
# 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 (0x0c02d800): JavaThread "AWT-Windows" daemon [_thread_in_native, id=4712, stack(0x0c940000,0x0c990000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x01c88500, EBX=0x00000001, ECX=0x0c02e3c8, EDX=0x00000004
ESP=0x0c98f988, EBP=0x0c98f9b4, ESI=0x0c02d914, EDI=0x0c02e3c8
EIP=0x00000000, EFLAGS=0x00010293
Top of Stack: (sp=0x0c98f988)
0x0c98f988: 0c266450 0c98fa30 0000981a 00000000
0x0c98f998: 0c98fa30 0c98faec 0c02d914 0c98f98c
0x0c98f9a8: 0c98fa48 0c286ef8 00000001 0c98f9e0
0x0c98f9b8: 76d7f8d2 004804c2 0000981a 0c02e3c8
0x0c98f9c8: 00000000 0000981a dcbaabcd 00000000
0x0c98f9d8: 0c98fa30 0000981a 0c98fa58 76d7f794
0x0c98f9e8: 0c265f20 004804c2 0000981a 0c02e3c8
0x0c98f9f8: 00000000 dc723fda 0c98faf4 0c98faec
Instructions: (pc=0x00000000)
0xfffffff0:
Stack: [0x0c940000,0x0c990000], sp=0x0c98f988, free space=318k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WToolkit.eventLoop()V+0
j sun.awt.windows.WToolkit.run()V+69
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0c074400 JavaThread "Thread-1" daemon [_thread_in_native, id=172, stack(0x0ff90000,0x0ffe0000)]
0x0c070c00 JavaThread "SIGINT handler" daemon [_thread_blocked, id=5456, stack(0x0fef0000,0x0ff40000)]
0x0c066c00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2668, stack(0x0f170000,0x0f1c0000)]
=>0x0c02d800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4712, stack(0x0c940000,0x0c990000)]
0x0c02d000 JavaThread "AWT-Shutdown" [_thread_blocked, id=840, stack(0x0c8f0000,0x0c940000)]
0x01cff800 JavaThread "Java2D Disposer" daemon [_thread_in_native, id=5752, stack(0x0c860000,0x0c8b0000)]
0x01cb2400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4968, stack(0x0bf30000,0x0bf80000)]
0x01cac000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5588, stack(0x0bee0000,0x0bf30000)]
0x01cab000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1480, stack(0x0be90000,0x0bee0000)]
0x01ca0400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3108, stack(0x0be40000,0x0be90000)]
0x01c8ec00 JavaThread "Finalizer" daemon [_thread_blocked, id=5744, stack(0x0bdf0000,0x0be40000)]
0x01c8a000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4752, stack(0x0bda0000,0x0bdf0000)]
0x01c11c00 JavaThread "main" [_thread_in_native, id=4560, stack(0x00360000,0x003b0000)]
Other Threads:
0x01c86c00 VMThread [stack: 0x0bd50000,0x0bda0000] [id=5908]
0x01cb4c00 WatcherThread [stack: 0x0bf80000,0x0bfd0000] [id=3500]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 32K [0x03d00000, 0x03e00000, 0x041e0000)
eden space 896K, 3% used [0x03d00000, 0x03d083a0, 0x03de0000)
from space 64K, 0% used [0x03de0000, 0x03de0000, 0x03df0000)
to space 64K, 0% used [0x03df0000, 0x03df0000, 0x03e00000)
tenured generation total 11044K, used 8298K [0x041e0000, 0x04ca9000, 0x07d00000)
the space 11044K, 75% used [0x041e0000, 0x049fab70, 0x049fac00, 0x04ca9000)
compacting perm gen total 12288K, used 5089K [0x07d00000, 0x08900000, 0x0bd00000)
the space 12288K, 41% used [0x07d00000, 0x081f84c8, 0x081f8600, 0x08900000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00423000 c:\jdk\7\b33\bin\java.exe
0x76f70000 - 0x77097000 C:\Windows\system32\ntdll.dll
0x770e0000 - 0x771bb000 C:\Windows\system32\kernel32.dll
0x75a40000 - 0x75b06000 C:\Windows\system32\ADVAPI32.dll
0x76ad0000 - 0x76b92000 C:\Windows\system32\RPCRT4.dll
0x76d60000 - 0x76dfd000 C:\Windows\system32\USER32.dll
0x758c0000 - 0x7590b000 C:\Windows\system32\GDI32.dll
0x744f0000 - 0x7468e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\COMCTL32.dll
0x75940000 - 0x759ea000 C:\Windows\system32\msvcrt.dll
0x75b20000 - 0x75b78000 C:\Windows\system32\SHLWAPI.dll
0x76e00000 - 0x76e1e000 C:\Windows\system32\IMM32.DLL
0x757f0000 - 0x758b8000 C:\Windows\system32\MSCTF.dll
0x771c0000 - 0x771c9000 C:\Windows\system32\LPK.DLL
0x769d0000 - 0x76a4d000 C:\Windows\system32\USP10.dll
0x7c340000 - 0x7c396000 c:\jdk\7\b33\jre\bin\msvcr71.dll
0x6d8c0000 - 0x6db14000 c:\jdk\7\b33\jre\bin\client\jvm.dll
0x73ea0000 - 0x73ed2000 C:\Windows\system32\WINMM.dll
0x76e20000 - 0x76f64000 C:\Windows\system32\ole32.dll
0x76cd0000 - 0x76d5d000 C:\Windows\system32\OLEAUT32.dll
0x73e60000 - 0x73e99000 C:\Windows\system32\OLEACC.dll
0x75620000 - 0x7564c000 C:\Windows\system32\apphelp.dll
0x10000000 - 0x10008000 c:\jdk\7\b33\jre\bin\hpi.dll
0x75750000 - 0x75757000 C:\Windows\system32\PSAPI.DLL
0x00210000 - 0x0021c000 c:\jdk\7\b33\jre\bin\verify.dll
0x00240000 - 0x0025f000 c:\jdk\7\b33\jre\bin\java.dll
0x00220000 - 0x0022f000 c:\jdk\7\b33\jre\bin\zip.dll
0x0c1d0000 - 0x0c300000 C:\jdk\7\b33\jre\bin\awt.dll
0x731f0000 - 0x73232000 C:\Windows\system32\WINSPOOL.DRV
0x75ca0000 - 0x767af000 C:\Windows\system32\SHELL32.dll
0x744b0000 - 0x744ef000 C:\Windows\system32\uxtheme.dll
0x0c830000 - 0x0c858000 C:\jdk\7\b33\jre\bin\fontmanager.dll
0x0c8b0000 - 0x0c8e1000 C:\jdk\7\b33\jre\bin\t2k.dll
0x0d050000 - 0x0d071000 C:\Program Files\WIDCOMM\Bluetooth Software\btkeyind.dll
0x0fe30000 - 0x0fe4a000 C:\Program Files\Dell\QuickSet\dadkeyb.dll
VM Arguments:
java_command: BufferTest 1
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=c:\jdk\7\b33
PATH=c:\jdk\7\b33\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\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Subversion\bin;C:\Program Files\Mercurial;C:\Program Files\OpenSSH\bin;
USERNAME=Praveen
SHELL=C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe
DISPLAY=:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6001 Service Pack 1
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2094396k(891676k free), swap 4194303k(3032848k free)
vm_info: Java HotSpot(TM) Client VM (14.0-b01) for windows-x86 JRE (1.7.0-ea-b31), built on Jul 17 2008 03:01:08 by "java_re" with MS VC++ 7.1
time: Sun Aug 03 22:56:10 2008
elapsed time: 3 seconds