Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-512

Thread safety issue in Hierarchy.cs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.15
    • Fix Version/s: 2.0.6
    • Component/s: Core
    • Labels:
      None

      Description

      From inspecting the source code I believe there is a threading bug in the Hierarchy class. Both of the methods Exists and GetCurrentLoggers access the internal hashtable m_ht without locking.

      Impact is minor as both these methods are probably rarely called by third party code, and since they do not modify state, the worst that can happen is an unexpected exception.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              JoeJoe Joe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: