JDK-6401353 : J2DBasher reliability crashes on WinXP after few hours
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-03-21
  • Updated: 2011-01-19
  • Resolved: 2006-07-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b92Fixed
Related Reports
Relates :  
Relates :  
Description
J2DBasher reliability is crashing after 2-3 hours on Windows-XP with B77 2D PIT build. On b76, it was crashing after 15-20 hours on Linux/WinXP and the issue was identified to be the same one addressed by 6295525. The stack trace of the crash was different on Mustang-b76. This bug got fixed in b77 PIT build and we tried running the tests on the PIT build. Now it crashes after 2-3 hours and the stack trace is different from the previous one. 

Since the reliability suite is too huge, I am not able to attach it and I have given the location under 'Comments'.

This crash is reproducible only after we updated the Reliability testsuite for Mustang, including the GIF Writer and animated GIF scenarios. Before that, it was running fine for 120 hours. It is important to note that the reliability tests overwrites the same set of output files what was created in the first loop, for every subsequent run. 

Here is the crash info:

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d9bd68f, pid=2444, tid=2096
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-beta2-b76 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x16d68f]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

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

Current thread (0x02bf2400):  VMThread [id=2096]

siginfo: ExceptionCode=0xc0000005, reading address 0x000000f4

Registers:
EAX=0x00000000, EBX=0x173fb000, ECX=0x20410818, EDX=0x2059aafc
ESP=0x02c5f918, EBP=0x02c5f94c, ESI=0x16bfce18, EDI=0x16bfce58
EIP=0x6d9bd68f, EFLAGS=0x00010283

Top of Stack: (sp=0x02c5f918)
0x02c5f918:   16bfce18 02c5f94c 1614ba00 02bf1110
0x02c5f928:   029e09dc 173fb000 6d9bd4eb 1614ba00
0x02c5f938:   004abd80 160f1fd8 173fb000 02c5f94c
0x02c5f948:   03a5b228 6da2e8d4 02bf1110 113c0000
0x02c5f958:   02c5fac8 6d9bd405 1614ba00 004abd80
0x02c5f968:   160f1fd8 173fb000 1614b800 004abd80
0x02c5f978:   1614ba00 6d8a492e 160f1fd8 004abd80
0x02c5f988:   0000957b 029e09dd 029e09dc 029b9d80 

Instructions: (pc=0x6d9bd68f)
0x6d9bd67f:   3c 86 3b fb 73 4e 8b 46 04 8d 48 08 8b 01 55 56
0x6d9bd68f:   ff 90 f4 00 00 00 8b 47 04 8d 48 08 8b 41 04 85 


Stack: [0x02c10000,0x02c60000),  sp=0x02c5f918,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x16d68f]

VM_Operation (0x04ddf79c): full generation collection, mode: safepoint, requested by thread 0x02e76c00


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

Java Threads: ( => current thread )
  0x02eacc00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=1976]
  0x02e81c00 JavaThread "Image Animator 3" daemon [_thread_blocked, id=192]
  0x03abf400 JavaThread "Image Animator 0" daemon [_thread_blocked, id=1000]
  0x03a97400 JavaThread "Image Animator 3" daemon [_thread_blocked, id=2840]
  0x02ff0800 JavaThread "Image Animator 3" daemon [_thread_blocked, id=1288]
  0x02e76c00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=2428]
  0x03a52400 JavaThread "Image Animator 0" daemon [_thread_blocked, id=3188]
  0x02fe4800 JavaThread "Image Animator 3" daemon [_thread_blocked, id=3948]
  0x02e6ac00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=2852]
  0x02e68c00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=3752]
  0x03aa8400 JavaThread "Image Animator 3" daemon [_thread_blocked, id=352]
  0x02ed6800 JavaThread "Image Animator 0" daemon [_thread_blocked, id=3876]
  0x02f9bc00 JavaThread "TimerQueue" daemon [_thread_blocked, id=3324]
  0x02f79000 JavaThread "MemoryThread" [_thread_in_native, id=3432]
  0x02f78c00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3156]
  0x02f62400 JavaThread "AWT-Windows" daemon [_thread_blocked, id=3696]
  0x02f46800 JavaThread "AWT-Shutdown" [_thread_blocked, id=1920]
  0x02f5f000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2692]
  0x02f29c00 JavaThread "RMI TCP Accept-1090" daemon [_thread_in_native, id=3576]
  0x02f24c00 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=2420]
  0x02c0c400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3204]
  0x02c09800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3476]
  0x02c08800 JavaThread "Attach Listener" daemon [_thread_blocked, id=3508]
  0x02c07800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=872]
  0x02bf9c00 JavaThread "Finalizer" daemon [_thread_blocked, id=344]
  0x02bf5400 JavaThread "Reference Handler" daemon [_thread_blocked, id=3352]
  0x00297000 JavaThread "main" [_thread_blocked, id=2524]

Other Threads:
=>0x02bf2400 VMThread [id=2096]
  0x02f34800 WatcherThread [id=156]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00295b80/0x0000070c] Threads_lock - owner thread: 0x02bf2400
[0x00295d00/0x000006d0] Heap_lock - owner thread: 0x02e76c00

Heap
 def new generation   total 4608K, used 4607K [0x10010000, 0x10510000, 0x113c0000)
  eden space 4096K, 100% used [0x10010000, 0x10410000, 0x10410000)
  from space 512K,  99% used [0x10410000, 0x1048fff8, 0x10490000)
  to   space 512K,   0% used [0x10490000, 0x10490490, 0x10510000)
 tenured generation   total 98668K, used 98540K [0x113c0000, 0x1741b000, 0x20010000)
   the space 98668K,  99% used [0x113c0000, 0x173fb010, 0x173fb200, 0x1741b000)
 compacting perm gen  total 12288K, used 10017K [0x20010000, 0x20c10000, 0x24010000)
   the space 12288K,  81% used [0x20010000, 0x209d8590, 0x209d8600, 0x20c10000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00423000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\bin\java.exe
0x7c900000 - 0x7c9b0000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 	C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 	C:\WINDOWS\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\msvcr71.dll
0x6d850000 - 0x6da87000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 	C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 	C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 	C:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10008000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\system32\PSAPI.DLL
0x003e0000 - 0x003ec000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\verify.dll
0x00910000 - 0x0092f000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\java.dll
0x003f0000 - 0x003ff000 	e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\zip.dll
0x03040000 - 0x03049000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\management.dll
0x03050000 - 0x03063000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 	C:\WINDOWS\system32\WS2_32.dll
0x77c10000 - 0x77c68000 	C:\WINDOWS\system32\msvcrt.dll
0x71aa0000 - 0x71aa8000 	C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 	C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 	C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 	C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 	C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 	C:\WINDOWS\system32\rasadhlp.dll
0x0ffd0000 - 0x0fff8000 	C:\WINDOWS\system32\rsaenh.dll
0x769c0000 - 0x76a73000 	C:\WINDOWS\system32\USERENV.dll
0x5b860000 - 0x5b8b4000 	C:\WINDOWS\system32\netapi32.dll
0x662b0000 - 0x66308000 	C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 	C:\WINDOWS\System32\wshtcpip.dll
0x03180000 - 0x03341000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\awt.dll
0x73000000 - 0x73026000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 	C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 	C:\WINDOWS\system32\ole32.dll
0x73760000 - 0x737a9000 	C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 	C:\WINDOWS\system32\DCIMAN32.dll
0x03360000 - 0x033b2000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\fontmanager.dll
0x034b0000 - 0x0361f000 	C:\WINDOWS\system32\nview.dll
0x77f60000 - 0x77fd6000 	C:\WINDOWS\system32\SHLWAPI.dll
0x7c9c0000 - 0x7d1d5000 	C:\WINDOWS\system32\SHELL32.dll
0x77120000 - 0x771ac000 	C:\WINDOWS\system32\OLEAUT32.dll
0x5d090000 - 0x5d127000 	C:\WINDOWS\system32\COMCTL32.dll
0x77c00000 - 0x77c08000 	C:\WINDOWS\system32\VERSION.dll
0x773d0000 - 0x774d2000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x77690000 - 0x776b1000 	C:\WINDOWS\system32\NTMARTA.DLL
0x71bf0000 - 0x71c03000 	C:\WINDOWS\system32\SAMLIB.dll
0x037a0000 - 0x037b5000 	C:\WINDOWS\system32\nvwddi.dll
0x77b40000 - 0x77b62000 	C:\WINDOWS\system32\Apphelp.dll
0x037e0000 - 0x037e9000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\nio.dll
0x03db0000 - 0x03ddf000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\cmm.dll
0x03de0000 - 0x03e04000 	E:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\jre\bin\jpeg.dll

VM Arguments:
jvm_args: -Xms64m -Xmx256m -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dtime.limit=7200 -Dprint.loopcount=-1 -Dresultsdir=Windows_NT_JAWS-SQE-01_J2DBasher_reports
java_command: J2DBasher
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=e:/ImageIO_Reliability_03212006/b77-PIT/windows-i586
PATH=e:\ImageIO_Reliability_03212006\Mustang_J2DBasher\share\bin\gnumake\win32;e:\ImageIO_Reliability_03212006\b77-PIT\windows-i586\bin;z:\gnu_utils\win32;y:\disk05\2d-SQE\PIT\2006-03-18.mustang\windows-i586\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\x11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\PROGRA~1\ULTRAE~1
USERNAME=praveen
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 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 522992k(76984k free), swap 1278288k(732188k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-beta2-b76) for windows-x86, built on Mar 16 2006 00:30:02 by "java_re" with unknown MS VC++:1310
------------------------------------------------

Here is the platform info:
--------------------------
CPU:
Intel 32bit
Single Processor
Processor Speed: 2394 MHz

Operating System:
Windows XP (version 5.1 Service Pack 2 (Build 2600))

Font Smoothing: Enabled
  Font Smoothing Type: On/Standard

DirectX version: DirectX 8.1 or greater

DirectX display devices:
Device 0:
  Resolution (width x height x depth): 1024 x 768 x 32
  Video memory (Total, Free): 130875 KB, 130690 KB
  Device driver nv4_disp.dll version 6.14.10.8194

GDI display devices:
Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 MX 4000

Comments
EVALUATION Problem that could be potential reason of 6403153 is extra call of ReleasePrimitiveArrayCritical() that happens in awt_PrintJob.drawDIBImage() in case image has palette. This was introduced as part of fix for 4521945 that went into b77 (this is in line with observation that problem start happening fast since b77). With fastdebug build it triggers hotspot assertion. Non-debug build also crashers on my reduced testcase but ocassionally and in different places. I suspect this happens because hotspot state is not well defined after this extra call.
14-06-2006