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

Thread safety issue in Hierarchy.cs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.15
    • 2.0.6
    • Core
    • 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

            Unassigned Unassigned
            joejoe Joe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: