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

Logger::addAppender from DLL causes crash upon process exit

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              assaflavie Assaf Lavie

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment