karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5184) ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed
Date Thu, 08 Jun 2017 14:18:19 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042750#comment-16042750
] 

ASF subversion and git services commented on KARAF-5184:
--------------------------------------------------------

Commit b6aff5d25580644290b77c9869b2e4c1a34cf1c5 in karaf's branch refs/heads/karaf-4.1.x from
[~gzres]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=b6aff5d ]

[KARAF-5184] Make sure terminal is closed even if ConsoleSession didn't run yet (with DelayedStarted)

(cherry picked from commit a99b55a5d792809237a2220e57275cc1cfe05ee3)


> ClassLoader leak when org.apache.karaf.shell.core bundle is refreshed
> ---------------------------------------------------------------------
>
>                 Key: KARAF-5184
>                 URL: https://issues.apache.org/jira/browse/KARAF-5184
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>            Reporter: Grzegorz Grzybek
>            Assignee: Grzegorz Grzybek
>             Fix For: 4.2.0, 4.1.2
>
>
> I have this chain of references leading to old BundleRevision of {{org.apache.karaf.shell.core}}
bundle:
> {noformat}
> 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
> {noformat}
> Could be related to jline:
> {noformat}
> "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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message