[jboss-jira] [JBoss JIRA] (WFLY-10380) ThreadPoolExecutor leak under SM due to lack of privileged block

Martin Choma (Jira) issues at jboss.org
Thu Nov 15 03:12:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-10380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661731#comment-13661731 ] 

Martin Choma edited comment on WFLY-10380 at 11/15/18 3:11 AM:
---------------------------------------------------------------

Linking issue with similar symptoms - WFLY-11340. In this case REST application is involved.


was (Author: mchoma):
Linking issue with similar symptoms

> ThreadPoolExecutor leak under SM due to lack of privileged block
> ----------------------------------------------------------------
>
>                 Key: WFLY-10380
>                 URL: https://issues.jboss.org/browse/WFLY-10380
>             Project: WildFly
>          Issue Type: Bug
>          Components: JMS
>            Reporter: David Lloyd
>            Priority: Critical
>              Labels: security-manager
>
> Still researching the source of these leaks.
> The way the leak happens is, a {{java.util.concurrent.ThreadPoolExecutor}} is constructed from an unprivileged context.  The pool starts up and threads are created without a problem, however, the thread pool is never shut down.  The finalizer runs but since it tries to shut down the pool with an access control context that was captured during construction, it fails because the context did not have the {{modifyThread}} {{RuntimePermission}}, and the thread pool never shuts down.
> We need to identify the points where TPEs are being constructed without controlled privileges.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list