You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by "Joseph Southwell (JIRA)" <lo...@logging.apache.org> on 2014/02/17 23:54:19 UTC
[jira] [Commented] (LOGCXX-416) FileWatchdog thread crash on exit()
[ https://issues.apache.org/jira/browse/LOGCXX-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903586#comment-13903586 ]
Joseph Southwell commented on LOGCXX-416:
-----------------------------------------
I am not able to reproduce this. There is code that is supposed to join those threads before calling apr_terminate. It was incompletely implemented and I fixed that. The 2 places it was not implemented are for config macros that are not true on my system. Can you update again and see if the problem goes away for you?
> 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)