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

Logger::addAppender from DLL causes crash upon process exit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 0.10.0
    • None
    • Appender
    • None
    • WinXP 64

    Description

      Here are the steps to reproduce the problem:
      1. Call configureAndWatch from your main program.
      2. Load a DLL and invoke a function from it that adds an appender to the root logger (e.g. RollingFileAppender).

      When exiting the process, there will be an access-violation. This happens during the final cleanup of static object in the log4cxx DLL (the "at Exits").
      This could be related to order to cleanup when multiple modules use log4cxx... but that's just a hunch.

      Attachments

        Issue Links

          Activity

            People

              carnold@apache.org Curt Arnold
              assaflavie Assaf Lavie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: