swebb2066 edited a comment on pull request #105:
URL: https://github.com/apache/logging-log4cxx/pull/105#issuecomment-1015034924


   If `static` objects are being destroyed while another thread is logging, 
then `APRInitializer` is also destroyed (which is bad). So all logging activity 
must be stopped in `Logger` before `apr_terminate()` is called. Removing the 
heirarchy from the `Logger` did this (except for threads active in doAppend()). 
   
   I am getting SegFault in multithreadtest on Ubuntu now with this PR. I am 
thinking the `const LevelPtr&` return values (i.e.  no locking in 
`Level::getDebug()` ) in this PR expose the case where threads active in 
doAppend().


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to