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

Dead lock between image fetcher and finalizer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7u40
    • 7u9
    • deploy
    • 7u9
    • x86
    • windows_xp

      Java version -
         Java-Plug-in 10.9.2.05
         JRE-Version verwenden 1.7.0_09-b05 Java HotSpot(TM) Client VM

      OS -
          Windows XP Service Pack 3

      Problem -
          Have a frequently occurring dead lock (1-2 times per day) between Image fetcher and finalizer. This problem seems occur first with version 7u9. There is no workaround possible.

      Java stack information for the threads listed above:
      ===================================================
      "Image Fetcher 0":
                      at com.sun.deploy.cache.MemoryCache.addResourceReference(Unknown Source)
                      - waiting to lock <0x2ac26bb8> (a java.lang.Class for com.sun.deploy.cache.MemoryCache)
                      at com.sun.deploy.cache.CachedJarFile.<init>(Unknown Source)
                      at com.sun.deploy.cache.CachedJarFile.<init>(Unknown Source)
                      at com.sun.deploy.cache.CacheEntry$5.run(Unknown Source)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at com.sun.deploy.cache.CacheEntry.getJarFile(Unknown Source)
                      - locked <0x2b9ea518> (a com.sun.deploy.cache.CacheEntry)
                      at com.sun.deploy.model.ResourceProvider.getCachedJarFile(Unknown Source)
                      at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
                      at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
                      at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
                      at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
                      at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
                      at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
                      at sun.plugin.net.protocol.jar.CachedJarURLConnection.getInputStream(Unknown Source)
                      at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
                      at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
                      at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
                      at sun.awt.image.ImageFetcher.run(Unknown Source)
      "Finalizer":
                      at com.sun.deploy.cache.CacheEntry.getJarFile(Unknown Source)
                      - waiting to lock <0x2b9ea518> (a com.sun.deploy.cache.CacheEntry)
                      at com.sun.deploy.cache.MemoryCache.hasReferencesTo(Unknown Source)
                      - locked <0x2ac26bb8> (a java.lang.Class for com.sun.deploy.cache.MemoryCache)
                      at com.sun.deploy.cache.CachedJarFile.close(Unknown Source)
                      at java.util.zip.ZipFile.finalize(Unknown Source)
                      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
                      at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
                      at java.lang.ref.Finalizer.access$100(Unknown Source)
                      at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

      Found 1 deadlock.
       

        1. Console1.txt
          11 kB
        2. Console2.txt
          11 kB
        3. ThreadDump1.txt.txt
          42 kB
        4. ThreadDump2.txt.txt
          42 kB
        5. ThreadDump3.txt.txt
          43 kB
        6. threaddump7u10.tdump.tdump
          39 kB

            nam Nam Nguyen (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: