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.

        Activity

        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user JJoe2 commented on the pull request:

        https://github.com/apache/log4net/pull/25#issuecomment-214260923

        Added two commits including a fix for https://issues.apache.org/jira/browse/LOG4NET-512

        Show
        githubbot ASF GitHub Bot added a comment - Github user JJoe2 commented on the pull request: https://github.com/apache/log4net/pull/25#issuecomment-214260923 Added two commits including a fix for https://issues.apache.org/jira/browse/LOG4NET-512
        Hide
        bodewig Stefan Bodewig added a comment -

        should be fixed with an adapted version of your patch as svn revision 1765091

        Many thanks!

        Show
        bodewig Stefan Bodewig added a comment - should be fixed with an adapted version of your patch as svn revision 1765091 Many thanks!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development