Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-981

Incorrect unlock in ProviderUtil

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Core
    • Labels:
      None

      Description

      org.apache.logging.log4j.util.ProviderUtil#lazyInit call can result in IllegalMonitorStateException if thread is in interrupted state because code in the finally block will try to unlock the lock that is not held by the current thread (InterruptedException thrown before the lock is acquired).

        Attachments

        1. LOG4J2-981.patch
          1 kB
          Mikhail Mazursky

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ash2k Mikhail Mazursky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: