JDK-6645513 : Crash in the libcmm
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: x86
  • Submitted: 2007-12-26
  • Updated: 2012-01-16
Description
FULL PRODUCT VERSION :
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Server VM (build 1.5.0_02-b09, mixed mode)




ADDITIONAL OS VERSION INFORMATION :
Fedora core 6

EXTRA RELEVANT SYSTEM CONFIGURATION :
tomcat-5.5.20

A DESCRIPTION OF THE PROBLEM :
Java crashes out of memory:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x54ad729d, pid=20042, tid=1384094624
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_02-b09 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x4229d]
#
# An error report file with more information is saved as hs_err_pid20042.log
[thread 1449057184 also had an error]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#



ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x54ad729d, pid=20042, tid=1384094624
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_02-b09 mixed mode)
# Problematic frame:
# C  [libcmm.so+0x4229d]
#

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

Current thread (0x09a723e0):  JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=20081]

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

Registers:
EAX=0x0000002b, EBX=0x54b096c0, ECX=0x54b09494, EDX=0x00000000
ESP=0x527f7d7c, EBP=0x527f7d94, ESI=0x00000004, EDI=0x09a723e0
EIP=0x54ad729d, CR2=0x0000002b, EFLAGS=0x00010297

  Top of Stack: (sp=0x527f7d7c)
0x527f7d7c:   ffffffff 00000067 527f7da4 00000000
0x527f7d8c:   54b096c0 00000004 527f7dc4 54ad7127
0x527f7d9c:   0000000b 0000002b 527f7dc4 54ade958
0x527f7dac:   50d68080 ffffffff 00000009 54b096c0
0x527f7dbc:   00000004 09a723e0 527f7e34 54a9d9fa
0x527f7dcc:   ffffffff 00000000 00000000 527f7e28
0x527f7ddc:   00000000 00000006 50d5e398 507f7f78
0x527f7dec:   50d622d0 00000001 ffffffff 50ef9750

Instructions: (pc=0x54ad729d)
0x54ad728d:   02 eb 72 8b 45 f4 8d 14 85 00 00 00 00 8b 45 0c
0x54ad729d:   8b 04 10 89 45 f0 83 7d f0 00 75 09 c7 45 ec 00

Stack: [0x52779000,0x527fa000),  sp=0x527f7d7c,  free space=507k
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+0x6e0f4]  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  java.awt.color.ICC_ColorSpace.fromRGB([F)[F
v  ~I2CAdapter
j  arkia.ColorConverter.getColor(Ljava/awt/Color;)Lcom/lowagie/text/pdf/CMYKColor;+51
j  com.lowagie.text.pdf.PdfGraphics2D.setPaint(ZDDZ)V+112
j  com.lowagie.text.pdf.PdfGraphics2D.setFillPaint()V+24
j  com.lowagie.text.pdf.PdfGraphics2D.drawString(Ljava/lang/String;FF)V+9
j  com.lowagie.text.pdf.PdfGraphics2D.drawString(Ljava/lang/String;II)V+6
j  java.awt.Graphics.drawChars([CIIII)V+15
v  ~C2IAdapter
J  javax.swing.text.Utilities.drawTabbedText(Ljavax/swing/text/View;Ljavax/swing/text/Segment;IILjava/awt/Graphics;Ljavax/swing/text/TabExpander;I)I
J  javax.swing.text.GlyphPainter1.paint(Ljavax/swing/text/GlyphView;Ljava/awt/Graphics;Ljava/awt/Shape;II)V
J  javax.swing.text.GlyphView.paintTextUsingColor(Ljava/awt/Graphics;Ljava/awt/Shape;Ljava/awt/Color;II)V
J  javax.swing.text.GlyphView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V
J  javax.swing.text.BoxView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V
J  javax.swing.text.BoxView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V
v  ~I2CAdapter
j  javax.swing.text.ParagraphView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+37
v  ~C2IAdapter
J  javax.swing.text.BoxView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V
v  ~I2CAdapter
j  javax.swing.plaf.basic.BasicTextUI$RootView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+48
j  javax.swing.plaf.basic.BasicTextUI.paintSafely(Ljava/awt/Graphics;)V+65
j  javax.swing.plaf.basic.BasicTextUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+97
j  javax.swing.plaf.basic.BasicTextUI.update(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+3
j  javax.swing.JComponent.paintComponent(Ljava/awt/Graphics;)V+26
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+260
v  ~C2IAdapter
J  com.arkia.xmlpdfbuilder.pdfElements.pdfTextElement_JTextpane.buildTemplate(Lcom/lowagie/text/pdf/PdfContentByte;)V
v  ~I2CAdapter
j  com.arkia.xmlpdfbuilder.pdfElements.pdfPage.getTemplate(Lcom/lowagie/text/pdf/PdfContentByte;)Lcom/lowagie/text/pdf/PdfTemplate;+116
j  kaarten.GeboorteKaart13x13.printRightImage(Lcom/lowagie/text/pdf/PdfTemplate;Lcom/lowagie/text/pdf/PdfWriter;)V+158
j  kaarten.GeboorteKaart13x13.printBack(Lcom/lowagie/text/pdf/PdfWriter;)Lcom/lowagie/text/pdf/PdfTemplate;+29
j  kaarten.GeboorteKaart13x13_page.printBack(Lcom/lowagie/text/pdf/PdfWriter;Lcom/lowagie/text/Document;)V+108
j  kaarten.KaartenPDF.generateDocument(Ljava/lang/String;IIZ)Ljava/lang/String;+946
v  ~C2IAdapter
J  kaarten.KaartenPDF.generatePdf(Z)[Ljava/lang/Object;
v  ~I2CAdapter
j  kaarten.generatePDFS.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+231
j  kaarten.generatePDFS.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j  javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
j  javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354
j  org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j  org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670
j  org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
j  org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
j  org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j  org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
j  org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141
j  org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+566
j  org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113
j  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45
j  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102
j  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x54e241a8 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=26081]
  0x5110f0f0 JavaThread "AWT-Shutdown" [_thread_blocked, id=26080]
  0x09c6b3f0 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=26073]
  0x09f94368 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=26067]
  0x52598af8 JavaThread "AWT-XAWT" daemon [_thread_in_native, id=22743]
  0x54e1ec38 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=22742]
  0x525021d8 JavaThread "TP-Monitor" daemon [_thread_blocked, id=20087]
  0x52501440 JavaThread "TP-Processor4" daemon [_thread_in_native, id=20086]
  0x525036b8 JavaThread "TP-Processor3" daemon [_thread_blocked, id=20085]
  0x52503e18 JavaThread "TP-Processor2" daemon [_thread_blocked, id=20084]
  0x52502d08 JavaThread "TP-Processor1" daemon [_thread_blocked, id=20083]
  0x09a73318 JavaThread "http-8080-Monitor" [_thread_blocked, id=20082]
=>0x09a723e0 JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=20081]
  0x09a714a8 JavaThread "http-8080-Processor24" daemon [_thread_in_vm, id=20080]
  0x09a70590 JavaThread "http-8080-Processor23" daemon [_thread_blocked, id=20079]
  0x09a643f0 JavaThread "http-8080-Processor22" daemon [_thread_in_native, id=20078]
  0x09a634b8 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=20077]
  0x09a62580 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=20076]
  0x09a61648 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=20075]
  0x09f21320 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=20074]
  0x09f203e8 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=20073]
  0x09f1f4b0 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=20072]
  0x09f1e598 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=20071]
  0x09a45ab0 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=20070]
  0x09a44b78 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=20069]
  0x09a43cd8 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=20068]
  0x09fbfd70 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=20067]
  0x09888070 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=20066]
  0x098871d0 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=20065]
  0x0a04fa00 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=20064]
  0x09e89578 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=20063]
  0x5548b928 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=20062]
  0x5548ac08 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=20061]
  0x55677dd0 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=20060]
  0x53b43578 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=20059]
  0x5589bd40 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=20058]
  0x554bd250 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=20057]
  0x554fed70 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=20056]
  0x09846348 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=20054]
  0x09844e88 JavaThread "CompilerThread1" daemon [_thread_blocked, id=20053]
  0x09843df0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=20052]
  0x09842c88 JavaThread "AdapterThread" daemon [_thread_blocked, id=20051]
  0x09841e00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=20050]
  0x09837a58 JavaThread "Finalizer" daemon [_thread_in_vm, id=20049]
  0x09836d48 JavaThread "Reference Handler" daemon [_thread_blocked, id=20048]
  0x09782e28 JavaThread "main" [_thread_in_native, id=20042]

Other Threads:
  0x098340b0 VMThread [id=20047]
  0x098477f8 WatcherThread [id=20055]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 113216K, used 21563K [0xa8ae0000, 0xb1da0000, 0xb2660000)
  eden space 87168K, 7% used [0xa8ae0000,0xa9105a48,0xae000000)
  from space 26048K, 58% used [0xb0430000,0xb1319238,0xb1da0000)
  to   space 31552K, 0% used [0xae000000,0xae000000,0xafed0000)
 PSOldGen        total 480000K, used 283901K [0x5ae60000, 0x78320000, 0xa8ae0000)
  object space 480000K, 59% used [0x5ae60000,0x6c39f520,0x78320000)
 PSPermGen       total 52224K, used 26054K [0x56e60000, 0x5a160000, 0x5ae60000)
  object space 52224K, 49% used [0x56e60000,0x587d1b28,0x5a160000)

VM Arguments:
jvm_args: -Xms400m -Xmx1400m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/apache-tomcat-5.5.20/conf/logging.properties -Djava.endorsed.dirs=/usr/local/apache-tomcat-5.5.20/common/endorsed -Dcatalina.base=/usr/local/apache-tomcat-5.5.20 -Dcatalina.home=/usr/local/apache-tomcat-5.5.20 -Djava.io.tmpdir=/usr/local/apache-tomcat-5.5.20/temp
java_command: org.apache.catalina.startup.Bootstrap start

Environment Variables:
JAVA_HOME=/opt/jdk1.5.0_02
PATH=/usr/bin:/bin
LD_LIBRARY_PATH=/opt/jdk1.5.0_02/jre/lib/i386/server:/opt/jdk1.5.0_02/jre/lib/i386:/opt/jdk1.5.0_02/jre/../lib/i386
SHELL=/bin/sh
DISPLAY=:1.0


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

OS:Fedora Core release 5 (Bordeaux)

uname:Linux 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
libc:glibc 2.4 NPTL 2.4
rlimit: STACK 10240k, CORE 0k, NPROC 63487, NOFILE 1024, AS infinity
load average:1.06 0.56 0.42

CPU:total 4 family 47, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 980k(38k free), swap 1249k(1248k free)

vm_info: Java HotSpot(TM) Server VM (1.5.0_02-b09) for linux-x86, built on Mar  4 2005 02:00:03 by java_re with gcc 3.2.1-7a (J2SE release)




REPRODUCIBILITY :
This bug can be reproduced occasionally.

---------- BEGIN SOURCE ----------
profule = ICC_Profile.getInstance("/data/profiles/ISOcoated_v2_eci.icc")
this.csp = new ICC_ColorSpace(profile);
rgb[0] = ((float) color.getRed()) /255f;
            rgb[1] = ((float) color.getGreen()) /255f;
            rgb[2] = ((float) color.getBlue()) /255f;
            float[] cmyk = csp.fromRGB(rgb);

---------- END SOURCE ----------