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

FileWatchdog thread crash on exit()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.11.0
    • Component/s: Configurator
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: