rm5248 commented on issue #373: URL: https://github.com/apache/logging-log4cxx/issues/373#issuecomment-2078328839
It sounds like your other threads are not being shutdown before the main thread is exiting. That does lead to undefined behavior. The only safe way to exit is to stop all threads before returning from `main`, since once the application is exiting the statically allocated variables will be destroyed in an undefined order. If other threads are still running, crashes are likely as other threads will try to access memory that has just be deallocated. -- 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]
