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/01/08 04:38:51 UTC

[jira] [Assigned] (LOGCXX-416) FileWatchdog thread crash on exit()

     [ https://issues.apache.org/jira/browse/LOGCXX-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Southwell reassigned LOGCXX-416:
---------------------------------------

    Assignee: Joseph Southwell

> 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)