Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Windows 7, Visual Studio 2010 SP1
Description
Level.cpp. All default level variables are function static. This is not thread safe, especially in Visual C++ compiler.
Here is code to reproduce the issue in VC++ 2010:
Concurrency::parallel_for (int(0), int(10), [&](int i)
{
if (::log4cxx::Level::getWarn() == NULL)
});
Attachments
Issue Links
- is duplicated by
-
LOGCXX-411 Crash when logging on multiple threads.
- Closed
- is related to
-
LOGCXX-322 Crashes on exit from multithreaded program using log4cxx
- Resolved
- relates to
-
LOGCXX-430 LogManager::getRootLogger is not thread-safe
- Resolved
-
LOGCXX-485 Levels leak memory
- Resolved