Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-461

Create Thread objects that aren't started can leak their suspended thread on destroy.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.6.0
    • Decaf
    • None

    Description

      If a Thread object is created but its start method is never called. When destroyed the actual thread can leak if its sitting in the suspended state waiting to be started. This happens right now in the case where a task is submitted to a ThreadPoolExecutor but is rejected for some reason such as the ExecutorService already being shut down. We need to check for the suspended state on destroy and wake the thread with its cancel flag set so it shuts down normally.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment