Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-359

Lock order violation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.10.0
    • None
    • Core
    • None

    Description

      Calling log4cxx::configureAndWatch() results in Logger::mutex being locked first, and Hierarchy::mutex being locked nested.
      Calling log4cxx::LogManager::resetConfiguration() results in Hierarchy::mutex being locked first, and Logger::mutex being locked nested.

      See also attached example and output from helgrind.

      Similar problem as in issue 317.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            carnold@apache.org Curt Arnold
            stefan_roellin Stefan Röllin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment