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: 4823896
Votes 0
Synopsis EXCEPTION_ACCESS_VIOLATION thrown at sun.awt.color.CMM.cmmSetTagData()
Category java:classes_2d
Reported Against 1.2.1 , 1.4.1
Release Fixed 1.4.2_05, 1.5(tiger-b38) (Bug ID:2107595)
State 10-Fix Delivered, Verified, bug
Priority: 4-Low
Related Bugs
Submit Date 26-FEB-2003
Description


FULL PRODUCT VERSION :
java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

FULL OPERATING SYSTEM VERSION :

 customer  Windows XP [Version 5.1.2600]

DESCRIPTION OF THE PROBLEM :
EXCEPTION_ACCESS_VIOLATION thrown at sun.awt.color.CMM.cmmSetTagData()


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1)Compile and run the test case.

EXPECTED VERSUS ACTUAL BEHAVIOR :
expected: exception
actual: jvm crash

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D3A7026
Function=[Unknown.]
Library=C:\Programme\Java\j2re1.4.1_01\bin\client\jvm.dll

NOTE: We are unable to locate the function name  customer  for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
	at sun.awt.color.CMM.cmmSetTagData(Native Method)
	at java.awt.color.ICC_Profile.setData(ICC_Profile.java:1243)
	at ICC_Again_Crasher.main(ICC_Again_Crasher.java:8)

Dynamic libraries:
0x00400000 - 0x00406000 	C:\WINDOWS\system32\java.exe
0x77F40000 - 0x77FEE000 	C:\WINDOWS\System32\ntdll.dll
0x77E40000 - 0x77F38000 	C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E3C000 	C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000 	C:\WINDOWS\system32\RPCRT4.dll
0x77BE0000 - 0x77C33000 	C:\WINDOWS\system32\MSVCRT.dll
0x6D330000 - 0x6D45A000 	C:\Programme\Java\j2re1.4.1_01
\bin\client\jvm.dll
0x77D10000 - 0x77D9C000 	C:\WINDOWS\system32\USER32.dll
0x77C40000 - 0x77C80000 	C:\WINDOWS\system32\GDI32.dll
0x76AF0000 - 0x76B1D000 	C:\WINDOWS\system32\WINMM.dll
0x76330000 - 0x7634C000 	C:\WINDOWS\System32\IMM32.DLL
0x6D1D0000 - 0x6D1D7000 	C:\Programme\Java\j2re1.4.1_01\bin\hpi.dll
0x6D300000 - 0x6D30D000 	C:\Programme\Java\j2re1.4.1_01\bin\verify.dll
0x6D210000 - 0x6D229000 	C:\Programme\Java\j2re1.4.1_01\bin\java.dll
0x6D320000 - 0x6D32D000 	C:\Programme\Java\j2re1.4.1_01\bin\zip.dll
0x6D100000 - 0x6D123000 	C:\Programme\Java\j2re1.4.1_01\bin\cmm.dll
0x76C50000 - 0x76C72000 	C:\WINDOWS\system32\imagehlp.dll
0x6DA00000 - 0x6DA7D000 	C:\WINDOWS\system32\DBGHELP.dll
0x77BD0000 - 0x77BD7000 	C:\WINDOWS\system32\VERSION.dll
0x76BB0000 - 0x76BBB000 	C:\WINDOWS\system32\PSAPI.DLL

Local Time = Mon Feb 17 20:39:21 2003
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
#


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.color.*;

public class ICC_Again_Crasher {
	static byte[] by;
	public static void main(String[] args) {
		//ICC_Profile i = ICC_Profile.getInstance(by);
		ICC_Profile i = ICC_Profile.getInstance
(ColorSpace.CS_LINEAR_RGB);
		i.setData(ICC_Profile.icSigCmykData,by);
	}
}
---------- END SOURCE ----------


(Review ID: 181415) 
======================================================================
Work Around
N/A
Evaluation
sun.awt.color.* belongs to 2D.  
  xxxxx@xxxxx   2003-02-25

JNI seems to fail when passed a null argument:
	dataP = (*env)->GetByteArrayElements (env, data, 0);

We should check for null.

Verified for 1.4.2_05 b02 on Solaris 9 up 6 & Win2000 Pro .
  xxxxx@xxxxx   2003-02-26
  xxxxx@xxxxx   2004-06-09
Comments
  
  Include a link with my name & email   

Submitted On 23-JAN-2004
schonef2
Still in 1.4.2_03  and 1.5.0 beta ! 



PLEASE NOTE: JDK6 is formerly known as Project Mustang