[
https://issues.apache.org/jira/browse/LOGCXX-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866086#comment-13866086
]
Joseph Southwell commented on LOGCXX-416:
-----------------------------------------
This code produced a sigsegv crash. However, it was because log4j.xml was not
parseable(it was an empty file). I fixed that so it prints an error message
instead of crashing.
please get the latest from
https://svn.apache.org/repos/asf/incubator/log4cxx/trunk
and let me know if you till see the problem.
If you do, please let me know what platform and compiler you are using.
Thanks.
> 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
>
> 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.1.5#6160)