Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
0.10.0
-
None
Description
On exit(), FileWatchdog::checkAndConfigure() calls apr_pool_creae() and crash.
Test code:
#include <log4cxx/xml/comconfigurator.h>
class A
{
public:
A() {};
~A()
} 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
- duplicates
-
LOGCXX-409 Crash in FileWatchDog::checkAndConfigure
- Resolved
- Is contained by
-
LOGCXX-305 Property/DOMConfigurator::configureAndWatch can continue to run after APR termination
- Resolved
- is duplicated by
-
LOGCXX-409 Crash in FileWatchDog::checkAndConfigure
- Resolved
- relates to
-
LOGCXX-390 xml::DOMConfigurator::configureAndWatch leaks memory and threads like LOGCXX-342
- Resolved
-
LOGCXX-415 Empty xml configure file causes crash
- Resolved