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

Incorrect unlock in ProviderUtil

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2
    • 2.3
    • Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: