[ https://issues.apache.org/jira/browse/LOGCXX-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph Southwell resolved LOGCXX-416. ------------------------------------- Resolution: Fixed Fix Version/s: 0.10.1 > FileWatchdog thread crash on exit() > ----------------------------------- > > Key: LOGCXX-416 > URL: https://issues.apache.org/jira/browse/LOGCXX-416 > Project: Log4cxx > Issue Type: Bug > Components: Configurator > Affects Versions: 0.10.0 > Reporter: Jin Qing > Assignee: Joseph Southwell > Priority: Critical > Fix For: 0.10.1 > > > 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(). -- This message was sent by Atlassian JIRA (v6.2#6252)