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

FileWatchdog thread crash on exit()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.10.0
    • 0.11.0
    • Configurator
    • None

    Description

      On exit(), FileWatchdog::checkAndConfigure() calls apr_pool_creae() and crash.

      Test code:

      #include <log4cxx/xml/comconfigurator.h>

      class A
      {
      public:
      A() {};
      ~A()

      { for (int i = 0; i < 1000000; i++) for (int i = 0; i < 1000000; i++) ; }

      } g_a;

      int main()
      {
      log4cxx::xml::DOMConfigurator::configureAndWatch("log4j.xml", 1000);
      return 0;
      }

      After main() returned, but main thread is still running, watchdog thread will crash when checkAdnConfigure().

      Attachments

        Issue Links

          Activity

            People

              jsouthwell Joseph Southwell
              jinq0123 Jin Qing
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: