Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5184

ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.2, 4.2.0.M1
    • None
    • None

    Description

      I have this chain of references leading to old BundleRevision of org.apache.karaf.shell.core bundle:

      this     - value: org.apache.felix.framework.BundleWiringImpl #14
       <- m_wiring     - class: org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, value: org.apache.felix.framework.BundleWiringImpl #14
        <- <classLoader>     - class: org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: org.apache.felix.framework.BundleWiringImpl$BundleClassLoader #11
         <- <class>     - class: org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner, value: org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner class JaasHelper$OsgiSubjectDomainCombiner
          <- combiner     - class: java.security.AccessControlContext, value: org.apache.karaf.util.jaas.JaasHelper$OsgiSubjectDomainCombiner #1
           <- inheritedAccessControlContext (thread object)     - class: java.lang.Thread, value: java.security.AccessControlContext #60
      

      Could be related to jline:

      "JLine terminal non blocking reader thread" #145 daemon prio=5 os_prio=0 tid=0x00007f046822c000 nid=0x43aa runnable [0x00007f0474b35000]
         java.lang.Thread.State: RUNNABLE
      	at java.io.FileInputStream.readBytes(Native Method)
      	at java.io.FileInputStream.read(FileInputStream.java:255)
      	at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
      	- locked <0x00000000e0f0ed90> (a java.io.FileInputStream)
      	at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
      	- locked <0x00000000e0f0ed90> (a java.io.FileInputStream)
      	at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
      	at java.lang.Thread.run(Thread.java:748)
      ...
      "JLine terminal non blocking reader thread" #78 daemon prio=5 os_prio=0 tid=0x00007f0470039000 nid=0x4369 runnable [0x00007f0407ffe000]
         java.lang.Thread.State: RUNNABLE
      	at java.io.FileInputStream.readBytes(Native Method)
      	at java.io.FileInputStream.read(FileInputStream.java:255)
      	at org.jline.utils.InputStreamReader.read(InputStreamReader.java:270)
      	- locked <0x00000000e081c5f8> (a java.io.FileInputStream)
      	at org.jline.utils.InputStreamReader.read(InputStreamReader.java:200)
      	- locked <0x00000000e081c5f8> (a java.io.FileInputStream)
      	at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:273)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            ggrzybek Grzegorz Grzybek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: