Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7140881

ImageIO.read() API causing jvm to crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 6u29
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_30"
      Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux rtvm97in 2.6.18-194.el5xen #1 SMP Fri Apr 2 15:34:40 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      The jvm crashes when reading a JPEG image using the ImageIO.read() API.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d29749b, pid=12044, tid=11596
      #
      # JRE version: 6.0_30-b12
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.5-b03 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [cmm.dll+0x2749b]
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #

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

      Current thread (0x00000000005cc800): JavaThread "main" [_thread_in_native, id=11596, stack(0x0000000002820000,0x0000000002920000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x0000000007976001

      Registers:
      RAX=0x0000000000000000, RBX=0x000000000291e308, RCX=0x000000000291e000, RDX=0x0000000007976000
      RSP=0x000000000291df08, RBP=0x000000000cd87549, RSI=0x000000000cd90cf3, RDI=0x000000000f022f94
      R8 =0x0000000007976000, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x0000000000000286
      R12=0x000000000291e000, R13=0x0000000000000001, R14=0x0000000000000000, R15=0x0000000000000001
      RIP=0x000000006d29749b, EFLAGS=0x0000000000010202

        Top of Stack: (sp=0x000000000291df08)
      0x000000000291df08: 000000006d2966a8 0000000000000050
      0x000000000291df18: 000000001f00eaf5 000000312e312e35
      0x000000000291df28: 000000006d29757d 000000000291e300
      0x000000000291df38: 000000000291e308 0000000063757276
      0x000000000291df48: 000000000000080c 0000000000000000
      0x000000000291df58: 000000006d296d9e 0000df75053d77b1
      0x000000000291df68: 000000006d29cbf3 0000000000000000
      0x000000000291df78: 000000006d29b826 0000000000000000
      0x000000000291df88: 0000000000000001 000000000291e050
      0x000000000291df98: 00000000005cc800 0000000000000010
      0x000000000291dfa8: 0000000000000001 000000000291e300
      0x000000000291dfb8: 00000000079630a0 0000000007961b40
      0x000000000291dfc8: 0000000072545243 0000000000000000
      0x000000000291dfd8: 000000006d29536c 0000000007963a10
      0x000000000291dfe8: 00000000005cd290 00000000005cd268
      0x000000000291dff8: 00000000005cd280 0000000007976000

      Instructions: (pc=0x000000006d29749b)
      0x000000006d29747b: 44 8b c7 48 8b c8 e8 9a 69 ff ff 4c 8d 1c 3b 4c
      0x000000006d29748b: 89 1e 48 83 c4 20 5f 5e 5b c3 cc cc cc 4c 8b 01
      0x000000006d29749b: 41 0f b6 50 01 41 0f b6 00 66 c1 e0 08 66 0b c2
      0x000000006d2974ab: 49 8d 50 02 48 89 11 c3 cc 45 85 c0 74 2a 4c 8b


      Register to memory mapping:

      RAX=0x0000000000000000 is an unknown value
      RBX=0x000000000291e308 is pointing into the stack for thread: 0x00000000005cc800
      RCX=0x000000000291e000 is pointing into the stack for thread: 0x00000000005cc800
      RDX=0x0000000007976000 is an unknown value
      RSP=0x000000000291df08 is pointing into the stack for thread: 0x00000000005cc800
      RBP=0x000000000cd87549 is an unknown value
      RSI=0x000000000cd90cf3 is an unknown value
      RDI=0x000000000f022f94 is an unknown value
      R8 =0x0000000007976000 is an unknown value
      R9 =0x0000000000000000 is an unknown value
      R10=0x0000000000000000 is an unknown value
      R11=0x0000000000000286 is an unknown value
      R12=0x000000000291e000 is pointing into the stack for thread: 0x00000000005cc800
      R13=0x0000000000000001 is an unknown value
      R14=0x0000000000000000 is an unknown value
      R15=0x0000000000000001 is an unknown value


      Stack: [0x0000000002820000,0x0000000002920000], sp=0x000000000291df08, free space=1015k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [cmm.dll+0x2749b]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.awt.color.CMM.cmmGetTransform(Ljava/awt/color/ICC_Profile;IILsun/awt/color/ICC_Transform;)I+0
      j sun.awt.color.ICC_Transform.<init>(Ljava/awt/color/ICC_Profile;II)V+18
      j java.awt.color.ICC_ColorSpace.fromRGB([F)[F+50
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.setImageData(IIIII[B)V+158
      v ~StubRoutines::call_stub
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader(JZZ)Z+0
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.readNativeHeader(Z)Z+12
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.checkTablesOnly()V+92
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.gotoImage(I)V+41
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.readHeader(IZ)V+2
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(ILjavax/imageio/ImageReadParam;Z)Ljava/awt/image/Raster;+3
      j com.sun.imageio.plugins.jpeg.JPEGImageReader.read(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;+8
      j javax.imageio.ImageIO.read(Ljavax/imageio/stream/ImageInputStream;)Ljava/awt/image/BufferedImage;+55
      j javax.imageio.ImageIO.read(Ljava/io/File;)Ljava/awt/image/BufferedImage;+51
      j Test.main([Ljava/lang/String;)V+11
      v ~StubRoutines::call_stub
      j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
      j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
      j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
      j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String;)V+120
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x000000000691e800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=11388, stack(0x00000000076f0000,0x00000000077f0000)]
        0x00000000068ab000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=5700, stack(0x00000000072d0000,0x00000000073d0000)]
        0x0000000006852800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11684, stack(0x0000000006ee0000,0x0000000006fe0000)]
        0x0000000006842800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=9416, stack(0x0000000006de0000,0x0000000006ee0000)]
        0x0000000006840000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=11892, stack(0x0000000006ce0000,0x0000000006de0000)]
        0x0000000006836000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1864, stack(0x0000000006be0000,0x0000000006ce0000)]
        0x0000000006835000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5536, stack(0x0000000006ae0000,0x0000000006be0000)]
        0x00000000002c8000 JavaThread "Finalizer" daemon [_thread_blocked, id=1608, stack(0x00000000069e0000,0x0000000006ae0000)]
        0x00000000002c6000 JavaThread "Reference Handler" daemon [_thread_blocked, id=11660, stack(0x00000000066e0000,0x00000000067e0000)]
      =>0x00000000005cc800 JavaThread "main" [_thread_in_native, id=11596, stack(0x0000000002820000,0x0000000002920000)]

      Other Threads:
        0x00000000002c0000 VMThread [stack: 0x00000000065e0000,0x00000000066e0000] [id=12280]
        0x000000000686d800 WatcherThread [stack: 0x0000000006fe0000,0x00000000070e0000] [id=1144]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       PSYoungGen total 18688K, used 967K [0x00000000eb200000, 0x00000000ec6d0000, 0x0000000100000000)
        eden space 16064K, 6% used [0x00000000eb200000,0x00000000eb2f1d30,0x00000000ec1b0000)
        from space 2624K, 0% used [0x00000000ec440000,0x00000000ec440000,0x00000000ec6d0000)
        to space 2624K, 0% used [0x00000000ec1b0000,0x00000000ec1b0000,0x00000000ec440000)
       PSOldGen total 42752K, used 0K [0x00000000c1600000, 0x00000000c3fc0000, 0x00000000eb200000)
        object space 42752K, 0% used [0x00000000c1600000,0x00000000c1600000,0x00000000c3fc0000)
       PSPermGen total 21248K, used 3985K [0x00000000bc400000, 0x00000000bd8c0000, 0x00000000c1600000)
        object space 21248K, 18% used [0x00000000bc400000,0x00000000bc7e4720,0x00000000bd8c0000)

      Code Cache [0x0000000002920000, 0x0000000002b90000, 0x0000000005920000)
       total_blobs=193 nmethods=2 adapters=145 free_code_cache=49933696 largest_free_block=6272

      Dynamic libraries:
      0x0000000000400000 - 0x000000000042f000 C:\Program Files\Java\jdk1.6.0_30\bin\java.exe
      0x0000000076cd0000 - 0x0000000076e79000 C:\Windows\SYSTEM32\ntdll.dll
      0x0000000076a60000 - 0x0000000076b7f000 C:\Windows\system32\kernel32.dll
      0x000007fefd490000 - 0x000007fefd4fc000 C:\Windows\system32\KERNELBASE.dll
      0x000007fefd5a0000 - 0x000007fefd67b000 C:\Windows\system32\ADVAPI32.dll
      0x000007fefd680000 - 0x000007fefd71f000 C:\Windows\system32\msvcrt.dll
      0x000007fefd500000 - 0x000007fefd51f000 C:\Windows\SYSTEM32\sechost.dll
      0x000007fefeeb0000 - 0x000007fefefdd000 C:\Windows\system32\RPCRT4.dll
      0x000000006d8b0000 - 0x000000006e068000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\server\jvm.dll
      0x00000000765f0000 - 0x00000000766ea000 C:\Windows\system32\USER32.dll
      0x000007fefed50000 - 0x000007fefedb7000 C:\Windows\system32\GDI32.dll
      0x000007fefedc0000 - 0x000007fefedce000 C:\Windows\system32\LPK.dll
      0x000007fefdc90000 - 0x000007fefdd59000 C:\Windows\system32\USP10.dll
      0x000007fefacc0000 - 0x000007fefacfb000 C:\Windows\system32\WINMM.dll
      0x000007fefde00000 - 0x000007fefde2e000 C:\Windows\system32\IMM32.DLL
      0x000007fefdb80000 - 0x000007fefdc89000 C:\Windows\system32\MSCTF.dll
      0x000007fefd0f0000 - 0x000007fefd12c000 C:\Windows\system32\nvinitx.dll
      0x000000000f000000 - 0x000000000f006000 C:\Program Files\NVIDIA Corporation\CoProcManager\_etoured.dll
      0x000007fefa5c0000 - 0x000007fefa604000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvd3d9wrapx.dll
      0x000007fefd790000 - 0x000007fefd967000 C:\Windows\system32\SETUPAPI.dll
      0x000007fefd280000 - 0x000007fefd2b6000 C:\Windows\system32\CFGMGR32.dll
      0x000007fefedd0000 - 0x000007fefeea7000 C:\Windows\system32\OLEAUT32.dll
      0x000007fefd970000 - 0x000007fefdb73000 C:\Windows\system32\ole32.dll
      0x000007fefd2c0000 - 0x000007fefd2da000 C:\Windows\system32\DEVOBJ.dll
      0x000007fefa4d0000 - 0x000007fefa512000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvdxgiwrapx.dll
      0x000000006d820000 - 0x000000006d82e000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\verify.dll
      0x000000006d450000 - 0x000000006d477000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\java.dll
      0x000000006d870000 - 0x000000006d882000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\zip.dll
      0x000007fefb0b0000 - 0x000007fefb0c0000 C:\Program Files (x86)\JetBrains\IntelliJ IDEA 9.0.1\bin\breakgen64.dll
      0x000000006d6b0000 - 0x000000006d6c7000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\net.dll
      0x000007fefd740000 - 0x000007fefd78d000 C:\Windows\system32\WS2_32.dll
      0x000007fefde30000 - 0x000007fefde38000 C:\Windows\system32\NSI.dll
      0x000007fefc8d0000 - 0x000007fefc925000 C:\Windows\system32\mswsock.dll
      0x000007fefcaf0000 - 0x000007fefcaf7000 C:\Windows\System32\wship6.dll
      0x000007fefc160000 - 0x000007fefc167000 C:\Windows\System32\wshtcpip.dll
      0x000000006d0a0000 - 0x000000006d264000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\awt.dll
      0x000007fef9f70000 - 0x000007fef9fe1000 C:\Windows\system32\WINSPOOL.DRV
      0x000007fefdf20000 - 0x000007fefeca8000 C:\Windows\system32\SHELL32.dll
      0x000007fefdea0000 - 0x000007fefdf11000 C:\Windows\system32\SHLWAPI.dll
      0x000007fefb950000 - 0x000007fefbb44000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
      0x000000006d570000 - 0x000000006d5a5000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\jpeg.dll
      0x000000006d270000 - 0x000000006d2ad000 C:\Program Files\Java\jdk1.6.0_30\jre\bin\cmm.dll
      0x0000000076ea0000 - 0x0000000076ea7000 C:\Windows\system32\PSAPI.DLL

      VM Arguments:
      jvm_args: -Didea.launcher.port=7532 -Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 9.0.1\bin -Dfile.encoding=windows-1252
      java_command: com.intellij.rt.execution.application.AppMain Test
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=C:\Program Files (x86)\Java\jdk1.5.0_22
      PATH=C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files\TortoiseSVN\bin;D:\apache-maven-2.0.9\bin;C:\Program Files (x86)\Java\jdk1.5.0_22\bin;C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin;D:\apache-activemq-5.4.0-fuse-00-00\bin\win32;;c:\program files (x86)\jetbrains\intellij idea 9.0.1\jre\jre\bin
      USERNAME=shalabh
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel



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

      OS: Windows 7 , 64 bit Build 7601 Service Pack 1

      CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

      Memory: 4k page, physical 4099240k(1503664k free), swap 8196632k(3783968k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (20.5-b03) for windows-amd64 JRE (1.6.0_30-b12), built on Nov 10 2011 01:49:46 by "java_re" with MS VC++ 8.0 (VS2005)

      time: Mon Jan 30 15:47:53 2012
      elapsed time: 0 seconds



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
          public static void main(String[] args) {
              File file = new File("path of image");
              ImageIO.read(file);
          }

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

      CUSTOMER SUBMITTED WORKAROUND :
      The image is being read successfully using the com.sun.image.codec.jpeg.JPEGImageDecode.

        Attachments

          Activity

            People

            • Assignee:
              bae Andrew Brygin
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: