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

make Logger cache a LoggerRepositoryPtr instead of a "blind" pointer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • None
    • None

    Description

      Hi

      The following patch (the biggest from the series) changes the codes so that Logger caches a LoggerRepositoryPtr instead of a LoggerRepository* otherwise the cached pointer may get "delete"ed before it's last use (as proved by valgrind and SIGSEGV). This patch fixes the first crash I got with log4cxx when trying to log from a destructor of a static object.

      Attachments

        1. log4cxx-static-fix1.diff
          6 kB
          Mihai Rusu

        Activity

          People

            carnold@apache.org Curt Arnold
            dizzy Mihai Rusu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: