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: 4712349
Votes 0
Synopsis sun.awt.color.CMM.cmmCombineTransforms(new long[30000], (sun.awt.color.ICC_Trans
Category java:classes_2d
Reported Against hopper-beta
Release Fixed
State 11-Closed, Not a Defect, bug
Priority: 3-Medium
Related Bugs
Submit Date 09-JUL-2002
Description




FULL PRODUCT VERSION :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

FULL OPERATING SYSTEM VERSION : Microsoft Windows XP
[Version 5.1.2600]




A DESCRIPTION OF THE PROBLEM :
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at
PC=0x6d443081
Function name=JVM_DisableCompiler
Library=C:\Programme\JavaSoft\JRE\1.3.1\bin\hotspot\jvm.dll

Current Java thread:
        at sun.awt.color.CMM.cmmCombineTransforms(Native
Method)
        at Tester.Color_It(Color_It.java:7)
        at Color_It.main(Color_It.java:17)

Dynamic libraries:
0x00400000 - 0x00405000         C:\WINDOWS\system32\java.exe
0x77F40000 - 0x77FF0000         C:\WINDOWS\System32
\ntdll.dll
0x77E40000 - 0x77F37000         C:\WINDOWS\system32
\kernel32.dll
0x77DA0000 - 0x77E3A000         C:\WINDOWS\system32
\ADVAPI32.dll
0x77C90000 - 0x77D05000         C:\WINDOWS\system32
\RPCRT4.dll
0x77BE0000 - 0x77C33000         C:\WINDOWS\system32
\MSVCRT.dll
0x6D420000 - 0x6D4EF000
C:\Programme\JavaSoft\JRE\1.3.1\bin\hotspot\jvm.
dll
0x77D10000 - 0x77D9D000         C:\WINDOWS\system32
\USER32.dll
0x77C40000 - 0x77C80000         C:\WINDOWS\system32
\GDI32.dll
0x76AF0000 - 0x76B1D000         C:\WINDOWS\system32
\WINMM.dll
0x76330000 - 0x7634A000         C:\WINDOWS\System32
\IMM32.DLL
0x6D220000 - 0x6D227000
C:\Programme\JavaSoft\JRE\1.3.1\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000
C:\Programme\JavaSoft\JRE\1.3.1\bin\verify.dll
0x6D250000 - 0x6D266000
C:\Programme\JavaSoft\JRE\1.3.1\bin\java.dll
0x6D3C0000 - 0x6D3CD000
C:\Programme\JavaSoft\JRE\1.3.1\bin\zip.dll
0x6D160000 - 0x6D183000
C:\Programme\JavaSoft\JRE\1.3.1\bin\cmm.dll
0x76C50000 - 0x76C72000         C:\WINDOWS\system32
\imagehlp.dll
0x6DA00000 - 0x6DA7C000         C:\WINDOWS\system32
\DBGHELP.dll
0x77BD0000 - 0x77BD7000         C:\WINDOWS\system32
\VERSION.dll
0x76BB0000 - 0x76BBB000         C:\WINDOWS\system32
\PSAPI.DLL

Local Time = Thu Jun 06 20:33:50 2002
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002CC
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)
#
# An error report file has been saved as hs_err_pid2844.log.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
// Marc Schoenefeld


class Tester {

 public static void Color_It() {
 	sun.awt.color.CMM.cmmCombineTransforms(new long
[30000], (sun.awt.color.ICC_Transform )null);
 }

 
}


public class Color_It{

public static void main(String args[]) {
	Tester.Color_It();
 }
}

EXPECTED VERSUS ACTUAL BEHAVIOR :
IllegalArgumentException

This bug can be reproduced always.

---------- BEGIN SOURCE ----------
// Marc Schoenefeld


class Tester {

 public static void Color_It() {
 	sun.awt.color.CMM.cmmCombineTransforms(new long[30000],
(sun.awt.color.ICC_Transform )null);
 }

 
}


public class Color_It{

public static void main(String args[]) {
	Tester.Color_It();
 }
}
---------- END SOURCE ----------
(Review ID: 148313) 
======================================================================
Work Around
N/A
Evaluation
Only java.* API is public API.  Classes in the sun.* package should not
be called directly.  This is an user error.
 xxxxx@xxxxx  2002-07-10
Comments
  
  Include a link with my name & email   

Submitted On 19-DEC-2002
schonef
anyway, maybe the classes should not crash the vm, they 
should return gracefully !


Submitted On 15-APR-2006
how the hell this is not bug when JVM is crashing ?


Submitted On 16-APR-2006
schonef5
it even crashes 1.5.0_06 


Submitted On 17-APR-2006
AlexeyUshakov
Some internal classes (like we have here) manipulates with handlers of the native resources. Sometimes (and this is one of such cases) it's impossible or costly to validate such handlers before usage.

Anyway,  such a crash could only be done from command line app. It's impossible for applet for example to call non-public api because of security constraints.


Submitted On 24-AUG-2006
espeer
In 1.5.0_07-b3, a JVM crash happens in this method when called via the public javax.imageio.API. Appears to fail on certain JPEG files:

<snip>
# Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x4229d]
</snip>

<snip>
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0
v  ~C2IAdapter
J  sun.awt.color.ICC_Transform.<init>([Lsun/awt/color/ICC_Transform;)V
J  java.awt.image.ColorConvertOp.filter(Ljava/awt/image/Raster;Ljava/awt/image/WritableRaste
r;)Ljava/awt/image/WritableRaster;
J  com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(IZ)V
v  ~I2CAdapter
v  ~StubRoutines::call_stub
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(J[BI[I[IIIIIII[Ljavax/imageio/plug
ins/jpeg/JPEGQTable;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable;[Ljavax/imageio/plugins/jp
eg/JPEGHuffmanTable;IIZ)Z+0
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(ILjavax/imageio/ImageReadParam;
Z)Ljava/awt/image/Raster;+1062
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.read(ILjavax/imageio/ImageReadParam;)Ljava/a
wt/image/BufferedImage;+4
j  javax.imageio.ImageIO.read(Ljavax/imageio/stream/ImageInputStream;)Ljava/awt/image/Buffer
edImage;+55
</snip>


Submitted On 21-SEP-2006
pherrera
Still exists in 1.5.0_08, and reproducible via calls to public API methods:

# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x6f3c229d, pid=32690, tid=1515607
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x4229d]

(snip)

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libcmm.so+0x4229d]
C  [libcmm.so+0x42127]
C  [libcmm.so+0x89fa]
C  [libcmm.so+0x5279b]
C  [libcmm.so+0x52f0d]
C  [libcmm.so+0x53121]
C  [libcmm.so+0x6e182]  Java_sun_awt_color_CMM_cmmCombineTransforms+0x11e
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0
v  ~C2IAdapter
J  sun.awt.color.ICC_Transform.<init>([Lsun/awt/color/ICC_Transform;)V
J  java.awt.image.ColorConvertOp.filter(Ljava/awt/image/Raster;Ljava/awt/image/WritableRaster;)Ljava/awt/image/WritableRaster;
J  com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(IZ)V
v  ~I2CAdapter
v  ~StubRoutines::call_stub
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(J[BI[I[IIIIIII[Ljavax/imageio/plugins/jpeg/JPEGQTable;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable;IIZ)Z+0
v  ~C2IAdapter
J  com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(ILjavax/imageio/ImageReadParam;Z)Ljava/awt/image/Raster;
v  ~I2CAdapter
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.read(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;+4
v  ~C2IAdapter
J  javax.imageio.ImageIO.read(Ljavax/imageio/stream/ImageInputStream;)Ljava/awt/image/BufferedImage;
v  ~I2CAdapter
j  javax.imageio.ImageIO.read(Ljava/io/File;)Ljava/awt/image/BufferedImage;+51

This is causing Tomcat to die about once a week and is definitely a bug.  If Sun are able to provide an alternative public API which doesn't use the sun.* packages I'll be happy to use it.

I'm running Red Hat Enterprise 2.1 SMP.


Submitted On 23-SEP-2006
AlexeyUshakov
This is not necessarily a bug in sun.*  classes. It might be a problem on the higher level of the execution stack (that might pass wrong data to the sun.* classes). It's difficult to say anything more certain and suggest workaround without having reproduced the problem. So, could you please send me more info concerning the failures that you have in your web server. Maybe images that cause this problem could help us to find out what's going on with reading jpeg's.


Submitted On 15-OCT-2006
pherrera
I encountered this bug several times when resizing images using the Apache Image taglibs, which in turn uses the Poor Mans Image Wrapper library (http://www.mullassery.com/software/PMIW/).

I updated our Tomcat server to use the Java Advanced Image libraries (http://java.sun.com/products/java-media/jai/).  PMIW automatically uses this in preference to the Java2D libraries, and we have had no problems ever since.

Hopefully this will help someone in a similar situation.


Submitted On 31-JAN-2007
ekkelenkamp
We've got a similar problem on Jdk 1.5.9:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x874cdc46, pid=143, tid=2230844336
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b03 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x2cc46]
#
---------------  T H R E A D  ---------------
Current thread (0x08382a58):  JavaThread "TP-Processor58" daemon [_thread_in_native, id=11658]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x000004af
Registers:
EAX=0x0000049b, EBX=0x874f7800, ECX=0x00000406, EDX=0x874a8227
ESP=0x84f7e79c, EBP=0x84f7e7b4, ESI=0x0000049b, EDI=0x00000000
EIP=0x874cdc46, CR2=0x000004af, EFLAGS=0x00010296
Top of Stack: (sp=0x84f7e79c)
0x84f7e79c:   0000049b 085f48e0 874cdc1d 874f7800
0x84f7e7ac:   00000000 874a81fb 84f7e7d4 874cdb2b
0x84f7e7bc:   874a8207 874a8227 874cdafd 874f7800
0x84f7e7cc:   085906d8 84f7e874 84f7e834 874a8271
0x84f7e7dc:   874a81fb 00000000 00000000 84f7e824
0x84f7e7ec:   00000001 b7fcc948 b7fcc900 874f7800
0x84f7e7fc:   00000006 ffffffff 00000067 00000000
0x84f7e80c:   00000000 00000002 00000032 00000000
Instructions: (pc=0x874cdc46)
0x874cdc36:   04 ba 85 c0 74 26 89 04 24 e8 4c c8 fd ff 89 c6
0x874cdc46:   8b 40 14 89 04 24 e8 3f c8 fd ff 89 46 10 8b 46
Stack: [0x84f00000,0x84f80000),  sp=0x84f7e79c,  free space=505k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libcmm.so+0x2cc46]
C  [libcmm.so+0x2cb2b]
C  [libcmm.so+0x7271]
C  [libcmm.so+0x39fa5]
C  [libcmm.so+0x3a49d]
C  [libcmm.so+0x3a877b]
C  [libcmm.so+0x512b6]  Java_sun_awt_color_CMM_cmmCombineTransforms+0xd6
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0
v  ~C2IAdapter
J  sun.awt.color.ICC_Transform.<init>([Lsun/awt/color/ICC_Transform;)V
J  java.awt.image.ColorConvertOp.filter(Ljava/awt/image/Raster;Ljava/awt/image/WritableRaster;)Ljava/awt/image/WritableRaster;
J  com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(IZ)V
v  ~I2CAdapter
v  ~StubRoutines::call_stub
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(J[BI[I[IIIIIII[Ljavax/imageio/plugins/jpeg/JPEGQTable;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable
;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable;IIZ)Z+0
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(ILjavax/imageio/ImageReadParam;Z)Ljava/awt/image/Raster;+1062
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.read(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;+4
v  ~C2IAdapter


Submitted On 08-MAY-2007
crashes 1.5.0_10-b03 

I have the same problem.
Anybody please help me!!!

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x8c454c46, pid=951, tid=2267249584
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_10-b03 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x2cc46]
#

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

Current thread (0x08a7dad0):  JavaThread "TP-Processor3171" daemon [_thread_in_native, id=21003]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x000004af

Registers:
EAX=0x0000049b, EBX=0x8c47e800, ECX=0x00000406, EDX=0x8c42f227
ESP=0x87235a2c, EBP=0x87235a44, ESI=0x0000049b, EDI=0x00000000
EIP=0x8c454c46, CR2=0x000004af, EFLAGS=0x00010296

Top of Stack: (sp=0x87235a2c)
0x87235a2c:   0000049b 8422a128 8c454c1d 8c47e800
0x87235a3c:   00000000 8c42f1fb 87235a64 8c454b2b
0x87235a4c:   8c42f207 8c42f227 8c454afd 8c47e800
0x87235a5c:   842f9178 87235b04 87235ac4 8c42f271
0x87235a6c:   8c42f1fb 00000000 00000000 87235ab4
0x87235a7c:   00000001 8420001c 00000002 8c47e800
0x87235a8c:   00000006 ffffffff 00000067 00000000
0x87235a9c:   00000000 00000002 00000032 00000000 

Instructions: (pc=0x8c454c46)
0x8c454c36:   04 ba 85 c0 74 26 89 04 24 e8 4c c8 fd ff 89 c6
0x8c454c46:   8b 40 14 89 04 24 e8 3f c8 fd ff 89 46 10 8b 46 

Stack: [0x871b7000,0x87238000),  sp=0x87235a2c,  free space=506k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libcmm.so+0x2cc46]
C  [libcmm.so+0x2cb2b]
C  [libcmm.so+0x7271]
C  [libcmm.so+0x39fa5]
C  [libcmm.so+0x3a49d]
C  [libcmm.so+0x3a87b]
C  [libcmm.so+0x512b6]  Java_sun_awt_color_CMM_cmmCombineTransforms+0xd6
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+0
v  ~C2IAdapter
J  sun.awt.color.ICC_Transform.<init>([Lsun/awt/color/ICC_Transform;)V


Submitted On 03-JUN-2008
Help pls pls ! I got the same problem on JDK 1.5.0_08-b03, anyone know the solution for this BUG:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xafca5002, pid=13559, tid=1189
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_08-b03 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x25002]
#

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

Current thread (0x0a906f00):  JavaThread "http-0.0.0.0-8080-19" daemon [_thread_in_native, id=1189]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000015

Registers:
EAX=0x00000001, EBX=0xafcd6a5c, ECX=0xad9a97a8, EDX=0xad9a97ec
ESP=0xad9a9734, EBP=0xad9a9740, ESI=0x00000000, EDI=0x00000001
EIP=0xafca5002, EFLAGS=0x00010282

Top of Stack: (sp=0xad9a9734)
0xad9a9734:   00000000 f21d45d8 afcd6a5c ad9a975c
0xad9a9744:   afca4f56 f21d45f0 f21d4610 00000000
0xad9a9754:   ad9a9908 00000002 ad9a9770 afca4ef9
0xad9a9764:   f21d45d8 ad9a97ec afcd6a5c ad9a97bc
0xad9a9774:   afc86808 ad9a9908 ad9a9874 ad9a9908
0xad9a9784:   afcd6a5c 0a24cf60 0aaca0f0 00000006
0xad9a9794:   089df930 00000067 afcb0c66 00000406
0xad9a97a4:   00000000 ad9a9908 afcd6a5c ad9a97f0 

Instructions: (pc=0xafca5002)
0xafca4ff2:   b0 85 c0 74 29 50 e8 d3 35 fe ff 83 c4 04 8b f8
0xafca5002:   ff 77 14 e8 c6 35 fe ff 83 c4 04 89 47 10 ff 77 

Stack: [0xad96b000,0xad9ab000),  sp=0xad9a9734,  free space=249k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libcmm.so+0x25002]
C  [libcmm.so+0x24f56]
C  [libcmm.so+0x24ef9]
C  [libcmm.so+0x6808]
C  [libcmm.so+0x30ce9]
C  [libcmm.so+0x3128a]
C  [libcmm.so+0x313cd]
C  [libcmm.so+0x44cb6]  Java_sun_awt_color_CMM_cmmCombineTransforms+0xb2
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+2040

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.color.CMM.cmmCombineTransforms([JLsun/awt/color/ICC_Transform;)I+2040
v  ~C2IAdapter
J  sun.awt.color.ICC_Transform.<init>([Lsun/awt/color/ICC_Transform;)V
J  java.awt.image.ColorConvertOp.filter(Ljava/awt/image/Raster;Ljava/awt/image/WritableRaster;)Ljava/awt/image/WritableRaster;
J  com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(IZ)V
v  ~I2CAdapter
v  ~StubRoutines::call_stub
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(J[BI[I[IIIIIII[Ljavax/imageio/plugins/jpeg/JPEGQTable;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable;[Ljavax/imageio/plugins/jpeg/JPEGHuffmanTable;IIZ)Z+0
v  ~C2IAdapter
J  com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(ILjavax/imageio/ImageReadParam;Z)Ljava/awt/image/Raster;
v  ~I2CAdapter
j  com.sun.imageio.plugins.jpeg.JPEGImageReader.read(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;+4
v  ~C2IAdapter
J  com.sun.media.jai.imageioimpl.ImageReadOpImage.computeTile(II)Ljava/awt/image/Raster;
v  ~I2CAdapter
j  com.sun.media.jai.util.SunTileScheduler.scheduleTile(Ljavax/media/jai/OpImage;II)Ljava/awt/image/Raster;+127
v  ~C2IAdapter
J  javax.media.jai.OpImage.getTile(II)Ljava/awt/image/Raster;
J  javax.media.jai.PlanarImage.getData(Ljava/awt/Rectangle;)Ljava/awt/image/Raster;
v  ~I2CAdapter
j  javax.media.jai.PlanarImage.getData()Ljava/awt/image/Raster;+2
j  javax.media.jai.RenderedOp.getData()Ljava/awt/image/Raster;+8
v  ~C2IAdapter
J  com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/IIOImage;Ljavax/imageio/ImageWriteParam;)V



PLEASE NOTE: JDK6 is formerly known as Project Mustang