United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6489946 Win32: JVM fastdebug build crashes when Frame uses custom icon.
JDK-6489946 : Win32: JVM fastdebug build crashes when Frame uses custom icon.

Details
Type:
Bug
Submit Date:
2006-11-03
Status:
Closed
Updated Date:
2011-03-07
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
windows
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
Any attempt to show a Frame or Dialog with custom image set results a crash of fastdebug build.
The problem is reproducible starting from b95 onwards.

Crash log:

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x187603d2, pid=204, tid=1672
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-fastdebug-b95-debug mixed mode)
# Problematic frame:
# C  [awt.dll+0x1703d2]
#
# 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 (0x18581400):  JavaThread "thread applet-IconShowingTest.class" [_thread_in_native, id=1672]

siginfo: ExceptionCode=0xc0000005, reading address 0x16eed9fd

Registers:
EAX=0x00000001, EBX=0x1432bbb8, ECX=0x16eed9fd, EDX=0x16eed9fd
ESP=0x18b0f6ec, EBP=0x18b0f6f0, ESI=0x1432bbb8, EDI=0x18581400
EIP=0x187603d2, EFLAGS=0x00010202

Top of Stack: (sp=0x18b0f6ec)
0x18b0f6ec:   00000000 18b0f6fc 18760422 16eed9fd
0x18b0f6fc:   18b0f714 1876028a 16eed9fd 0000001b
0x18b0f70c:   18f0dae0 16eed9fd 18b0f724 1876019d
0x18b0f71c:   18f0dc00 18f0dc00 18b0f734 18760133
0x18b0f72c:   18f0dc00 18f0dc00 18b0f740 187a202c
0x18b0f73c:   18f0dc00 18b0f77c 18789637 18f0dc00
0x18b0f74c:   18f0dc00 18f0dc00 07b0f780 00000020
0x18b0f75c:   00000020 00000080 18f0dc00 f70509d5 

Instructions: (pc=0x187603d2)
0x187603c2:   01 89 45 fc 83 7d fc 08 7d 1a 8b 4d 08 03 4d fc
0x187603d2:   0f be 11 0f be 05 12 da 7f 18 3b d0 74 04 33 c0 


Stack: [0x18ac0000,0x18b10000),  sp=0x18b0f6ec,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [awt.dll+0x1703d2]
C  [awt.dll+0x170422]
C  [awt.dll+0x17028a]
C  [awt.dll+0x17019d]
C  [awt.dll+0x170133]
C  [awt.dll+0x1b202c]
C  [awt.dll+0x199637]
C  [awt.dll+0x1e99b7]
C  [awt.dll+0x1e9b2e]
C  [awt.dll+0x1e9dd0]
C  [awt.dll+0x1e4029]
C  [awt.dll+0x1eb03a]
j  sun.awt.windows.WWindowPeer.setIconImagesData([III[III)V+0
j  sun.awt.windows.WWindowPeer.updateIconImages()V+100
j  sun.awt.windows.WWindowPeer.initialize()V+64
j  sun.awt.windows.WFramePeer.initialize()V+1
j  sun.awt.windows.WComponentPeer.<init>(Ljava/awt/Component;)V+105
j  sun.awt.windows.WCanvasPeer.<init>(Ljava/awt/Component;)V+2
j  sun.awt.windows.WPanelPeer.<init>(Ljava/awt/Component;)V+2
j  sun.awt.windows.WWindowPeer.<init>(Ljava/awt/Window;)V+2
j  sun.awt.windows.WFramePeer.<init>(Ljava/awt/Frame;)V+2
j  sun.awt.windows.WToolkit.createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;+5
j  java.awt.Frame.addNotify()V+20
j  java.awt.Window.show()V+8
j  java.awt.Component.show(Z)V+5
j  java.awt.Component.setVisible(Z)V+2
j  java.awt.Window.setVisible(Z)V+2
j  IconShowingTest.start()V+343
j  sun.applet.AppletPanel.run()V+357
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.windows.WWindowPeer.setIconImagesData([III[III)V+0
j  sun.awt.windows.WWindowPeer.updateIconImages()V+100
j  sun.awt.windows.WWindowPeer.initialize()V+64
j  sun.awt.windows.WFramePeer.initialize()V+1
j  sun.awt.windows.WComponentPeer.<init>(Ljava/awt/Component;)V+105
j  sun.awt.windows.WCanvasPeer.<init>(Ljava/awt/Component;)V+2
j  sun.awt.windows.WPanelPeer.<init>(Ljava/awt/Component;)V+2
j  sun.awt.windows.WWindowPeer.<init>(Ljava/awt/Window;)V+2
j  sun.awt.windows.WFramePeer.<init>(Ljava/awt/Frame;)V+2
j  sun.awt.windows.WToolkit.createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;+5
j  java.awt.Frame.addNotify()V+20
j  java.awt.Window.show()V+8
j  java.awt.Component.show(Z)V+5
j  java.awt.Component.setVisible(Z)V+2
j  java.awt.Window.setVisible(Z)V+2
j  IconShowingTest.start()V+343
j  sun.applet.AppletPanel.run()V+357
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x18ec3000 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=1920]
  0x18e99000 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=1840]
  0x18e87000 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=932]
  0x00278400 JavaThread "DestroyJavaVM" [_thread_blocked, id=1892]
  0x18595800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1420]
=>0x18581400 JavaThread "thread applet-IconShowingTest.class" [_thread_in_native, id=1672]
  0x18509800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1852]
  0x18508c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=1360]
  0x184fc000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1772]
  0x00a4d800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1868]
  0x00a4b800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1636]
  0x00a46800 JavaThread "Attach Listener" daemon [_thread_blocked, id=1192]
  0x00a45800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1544]
  0x00a2d000 JavaThread "Finalizer" daemon [_thread_blocked, id=628]
  0x00a28800 JavaThread "Reference Handler" daemon [_thread_blocked, id=1756]

Other Threads:
  0x00a23c00 VMThread [id=1580]
  0x00a50800 WatcherThread [id=1856]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 174K [0x10020000, 0x10120000, 0x10500000)
  eden space 896K,  12% used [0x10020000, 0x1003b9f8, 0x10100000)
  from space 64K, 100% used [0x10100000, 0x10110000, 0x10110000)
  to   space 64K,   0% used [0x10110000, 0x10110000, 0x10120000)
 tenured generation   total 4096K, used 520K [0x10500000, 0x10900000, 0x14020000)
   the space 4096K,  12% used [0x10500000, 0x10582310, 0x10582400, 0x10900000)
 compacting perm gen  total 12288K, used 7586K [0x14020000, 0x14c20000, 0x18020000)
   the space 12288K,  61% used [0x14020000, 0x14788a98, 0x14788c00, 0x14c20000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040b000 	X:\jdk\6.0\b95\windows-i586\fastdebug\bin\appletviewer.exe
0x77f80000 - 0x77ffc000 	C:\WINNT\system32\ntdll.dll
0x10000000 - 0x1001a000 	X:\jdk\6.0\b95\windows-i586\fastdebug\bin\jli.dll
0x7c570000 - 0x7c624000 	C:\WINNT\system32\KERNEL32.dll
0x7c2d0000 - 0x7c335000 	C:\WINNT\system32\ADVAPI32.dll
0x77d30000 - 0x77d9f000 	C:\WINNT\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 	X:\jdk\6.0\b95\windows-i586\fastdebug\bin\MSVCR71.dll
0x00280000 - 0x002d6000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\msvcr71.dll
0x08000000 - 0x084bc000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\client\jvm.dll
0x77e10000 - 0x77e79000 	C:\WINNT\system32\USER32.dll
0x77f40000 - 0x77f7c000 	C:\WINNT\system32\GDI32.dll
0x77570000 - 0x775a0000 	C:\WINNT\system32\WINMM.dll
0x75e60000 - 0x75e7a000 	C:\WINNT\system32\IMM32.DLL
0x6ca60000 - 0x6ca68000 	C:\WINNT\system32\LPK.DLL
0x66650000 - 0x666a4000 	C:\WINNT\system32\USP10.dll
0x00960000 - 0x0096b000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\hpi.dll
0x690a0000 - 0x690ab000 	C:\WINNT\system32\PSAPI.DLL
0x00a80000 - 0x00a90000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\verify.dll
0x00a90000 - 0x00ab6000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\java.dll
0x00ac0000 - 0x00ad7000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\zip.dll
0x185f0000 - 0x188ad000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\awt.dll
0x77800000 - 0x7781e000 	C:\WINNT\system32\WINSPOOL.DRV
0x76620000 - 0x76630000 	C:\WINNT\system32\MPR.DLL
0x7ce20000 - 0x7cf0f000 	C:\WINNT\system32\ole32.dll
0x51000000 - 0x51050000 	C:\WINNT\system32\ddraw.dll
0x78000000 - 0x78045000 	C:\WINNT\system32\msvcrt.dll
0x728a0000 - 0x728a6000 	C:\WINNT\system32\DCIMAN32.dll
0x188e0000 - 0x18961000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\fontmanager.dll
0x6e420000 - 0x6e426000 	C:\WINNT\system32\INDICDLL.dll
0x18f60000 - 0x18f7c000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\net.dll
0x75030000 - 0x75044000 	C:\WINNT\system32\WS2_32.dll
0x75020000 - 0x75028000 	C:\WINNT\system32\WS2HELP.DLL
0x18fc0000 - 0x18fcb000 	X:\jdk\6.0\b95\windows-i586\fastdebug\jre\bin\nio.dll
0x782c0000 - 0x782cc000 	C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779a4000 	C:\WINNT\system32\DNSAPI.DLL
0x75050000 - 0x75058000 	C:\WINNT\system32\WSOCK32.dll
0x77340000 - 0x77353000 	C:\WINNT\system32\iphlpapi.dll
0x77520000 - 0x77525000 	C:\WINNT\system32\ICMP.dll
0x77320000 - 0x77337000 	C:\WINNT\system32\MPRAPI.dll
0x75150000 - 0x75160000 	C:\WINNT\system32\SAMLIB.DLL
0x7cdc0000 - 0x7ce10000 	C:\WINNT\system32\NETAPI32.DLL
0x19060000 - 0x1906f000 	C:\WINNT\system32\Secur32.dll
0x77bf0000 - 0x77c01000 	C:\WINNT\system32\NTDSAPI.dll
0x77950000 - 0x7797b000 	C:\WINNT\system32\WLDAP32.DLL
0x751c0000 - 0x751c6000 	C:\WINNT\system32\NETRAP.dll
0x779b0000 - 0x77a4b000 	C:\WINNT\system32\OLEAUT32.DLL
0x773b0000 - 0x773df000 	C:\WINNT\system32\ACTIVEDS.DLL
0x77380000 - 0x773a3000 	C:\WINNT\system32\ADSLDPC.DLL
0x77830000 - 0x7783e000 	C:\WINNT\system32\RTUTILS.DLL
0x77880000 - 0x7790e000 	C:\WINNT\system32\SETUPAPI.DLL
0x7c0f0000 - 0x7c154000 	C:\WINNT\system32\USERENV.DLL
0x774e0000 - 0x77514000 	C:\WINNT\system32\RASAPI32.dll
0x774c0000 - 0x774d1000 	C:\WINNT\system32\rasman.dll
0x77530000 - 0x77552000 	C:\WINNT\system32\TAPI32.dll
0x71710000 - 0x71794000 	C:\WINNT\system32\COMCTL32.DLL
0x70a70000 - 0x70ad6000 	C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000 	C:\WINNT\system32\DHCPCSVC.DLL
0x777e0000 - 0x777e8000 	C:\WINNT\System32\winrnr.dll
0x777f0000 - 0x777f5000 	C:\WINNT\system32\rasadhlp.dll
0x772b0000 - 0x7731c000 	C:\WINNT\system32\RICHED20.DLL
0x7cf30000 - 0x7d176000 	C:\WINNT\system32\shell32.dll

VM Arguments:
jvm_args: -Dapplication.home=X:\jdk\6.0\b95\windows-i586\fastdebug
java_command: sun.applet.Main IconShowingTest.html
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=c:/java/jdk1.6.0b99
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:/devtools/ant-1.6.5/bin;D:/Projects/Gate4/bin;D:/Projects/Gate4/lib;D:/Lib/xerces-c_2_6_0/lib;D:/Lib/omniORB-4.0.6/bin/x86_win32;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Resource Kit\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Reflection\;C:\Program Files\Common Files\Adobe\AGL
USERNAME=wildfire
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel



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

OS: Windows 2000 Build 2195 Service Pack 4

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 457708k(93452k free), swap 1079100k(721736k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-rc-fastdebug-b95) for windows-x86, built on Aug 10 2006 01:51:48 by "java_re" with unknown MS VC++:1310

                                    

Comments
SUGGESTED FIX

------- awt_BitmapUtil.cpp -------
*** /tmp/sccs.HwHgkb	2006-11-03 22:31:22.000000000 +0300
--- awt_BitmapUtil.cpp	2006-11-03 22:28:08.000000000 +0300
***************
*** 10,15 ****
--- 10,16 ----
  #include <windowsx.h>
  #include <zmouse.h>
  
+ #include "awt.h"
  #include "awt_BitmapUtil.h"
  
  HBITMAP BitmapUtil::CreateTransparencyMaskFromARGB(int width, int height, int* imageData)
                                     
2006-11-03
EVALUATION

The crash occurs because the release version of operator delete[] is used.
Need to include debug-overloaded delete operator.
                                     
2006-11-03
EVALUATION

The regression was introduced with the fix for 6443357 in JDK 6 b95.
                                     
2006-11-03



Hardware and Software, Engineered to Work Together