swebb2066 commented on issue #402:
URL: 
https://github.com/apache/logging-log4cxx/issues/402#issuecomment-2415667040

   The following is the stack trace obtained in #415 suggesting some sort of 
race condition in ring buffer slot mangement:
   `
   (gdb)   Id   Target Id          Frame 
     1    Thread 4336.0x8ec  0x00007ff96661f904 in ntdll!ZwWaitForSingleObject 
()
      from C:\Windows\SYSTEM32\ntdll.dll
     2    Thread 4336.0x1770 0x00007ff9666233d4 in 
ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SYSTEM32\ntdll.dll
     3    Thread 4336.0x6e8  0x00007ff9666233d4 in 
ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SYSTEM32\ntdll.dll
     4    Thread 4336.0x18bc 0x00007ff9666233d4 in 
ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SYSTEM32\ntdll.dll
     5    Thread 4336.0x1a74 0x00007ff930fe606c in std::__atomic_base<unsigned 
long long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fbfff408: 428, 
       __i2=429, __m1=std::memory_order::release, 
__m2=std::memory_order::relaxed)
       at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
     6    Thread 4336.0x764  0x00007ff930fe606c in std::__atomic_base<unsigned 
long long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fc1ff848: 430, 
       __i2=431, __m1=std::memory_order::release, 
__m2=std::memory_order::relaxed)
       at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
     7    Thread 4336.0x1410 0x00007ff930fe6074 in std::__atomic_base<unsigned 
long long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fc3ff2a8: 429, 
       __i2=430, __m1=std::memory_order::release, 
__m2=std::memory_order::relaxed)
       at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
     8    Thread 4336.0x90c  0x00007ff9310a3de1 in 
std::_Vector_base<std::shared_ptr<log4cxx::Appender>, 
std::allocator<std::shared_ptr<log4cxx::Appender> > >::_M_get_Tp_allocator 
(this=0x17fc5ffab0)
       at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/stl_vector.h:300
     9    Thread 4336.0x664  0x00007ff6a9a1cb21 in 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::_M_is_local (
       this=0x17fc7ff810)
       at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/basic_string.h:267
     10   Thread 4336.0xe94  0x00007ff94bb92f73 in ?? ()
      from D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
     11   Thread 4336.0x93c  0x00007ff930fe606c in std::__atomic_base<unsigned 
long long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fcbff4b8: 431, 
       __i2=432, __m1=std::memory_order::release, 
__m2=std::memory_order::relaxed)
       at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
   * 12   Thread 4336.0x1a18 0x00007ff966623431 in ntdll!DbgBreakPoint ()
      from C:\Windows\SYSTEM32\ntdll.dll
   (gdb) 
   Thread 12 (Thread 4336.0x1a18):
   #0  0x00007ff966623431 in ntdll!DbgBreakPoint () from 
C:\Windows\SYSTEM32\ntdll.dll
   #1  0x00007ff96664fc1e in ntdll!DbgUiRemoteBreakin () from 
C:\Windows\SYSTEM32\ntdll.dll
   #2  0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #3  0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #4  0x0000000000000000 in ?? ()
   
   Thread 11 (Thread 4336.0x93c):
   #0  0x00007ff930fe606c in std::__atomic_base<unsigned long 
long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fcbff4b8: 431, 
__i2=432, __m1=std::memory_order::release, __m2=std::memory_order::relaxed) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
   #1  std::__atomic_base<unsigned long long>::compare_exchange_weak 
(this=0x14616e86c00, __i1=<optimized out>, __i2=432, 
__m=std::memory_order::release) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:555
   #2  log4cxx::AsyncAppender::append (this=0x14616e642c0, 
event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use count 2, weak count 0) = 
{...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:314
   #3  0x00007ff930fe401f in log4cxx::AppenderSkeleton::doAppendImpl 
(this=0x14616e642c8, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderskeleton.cpp:131
   #4  0x00007ff930fe5a04 in log4cxx::AsyncAppender::doAppend 
(this=0x14616e642c0, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:280
   #5  0x00007ff930fe2886 in 
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders 
(this=0x14616e30958, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:83
   #6  0x00007ff93100ff4c in log4cxx::Logger::callAppenders 
(this=0x14616e64830, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:140
   #7  0x00007ff931010146 in log4cxx::Logger::addEvent (this=0x14616e64830, 
level=std::shared_ptr<log4cxx::Level> (use count 435, weak count 0) = {...}, 
message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:175
   #8  0x00007ff931010380 in log4cxx::Logger::addDebugEvent 
(this=0x14616e64830, message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:200
   #9  0x00007ff6a9a2acbb in 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}::operator()() const 
(__closure=0x14616e786f8) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:253
   #10 0x00007ff6a9a28b80 in std::__invoke_impl<void, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(std::__invoke_other, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&) (__f=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:61
   #11 0x00007ff6a9a2a735 in 
std::__invoke<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&)
 (__fn=...) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #12 0x00007ff6a9a22bf8 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::_M_invoke<0ull>(std::_Index_tuple<0ull>) (this=0x14616e786f8) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #13 0x00007ff6a9a22c78 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::operator()() (this=0x14616e786f8) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #14 0x00007ff6a9a22a6c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 > >::_M_run() (this=0x14616e786f0) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #15 0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #16 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #17 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #18 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #19 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #20 0x0000000000000000 in ?? ()
   
   Thread 10 (Thread 4336.0xe94):
   #0  0x00007ff94bb92f73 in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #1  0x00007ff930fe1406 in __gthread_mutex_lock (__mutex=0x14616e642f8) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/x86_64-w64-mingw32/bits/gthr-default.h:762
   #2  0x00007ff9310e0688 in std::mutex::lock (this=0x14616e642f8) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_mutex.h:113
   #3  0x00007ff93108d04a in std::lock_guard<std::mutex>::lock_guard 
(this=0x17fc9ff3e8, __m=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_mutex.h:250
   #4  0x00007ff930fe294f in 
log4cxx::helpers::AppenderAttachableImpl::getAllAppenders (this=0x14616e86b48) 
at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:96
   #5  0x00007ff930fe281a in 
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders 
(this=0x14616e86b48, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 3, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:80
   #6  0x00007ff930fe7895 in log4cxx::AsyncAppender::dispatch 
(this=0x14616e642c0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:558
   #7  0x00007ff93110e916 in std::__invoke_impl<void, void 
(log4cxx::AsyncAppender::*)(), log4cxx::AsyncAppender*> (__f=@0x14616e78220: 
(void (log4cxx::AsyncAppender::*)(log4cxx::AsyncAppender * const)) 
0x7ff930fe710c <log4cxx::AsyncAppender::dispatch()>, __t=@0x14616e78218: 
0x14616e642c0) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:74
   #8  0x00007ff93111e75c in std::__invoke<void (log4cxx::AsyncAppender::*)(), 
log4cxx::AsyncAppender*> (__fn=@0x14616e78220: (void 
(log4cxx::AsyncAppender::*)(log4cxx::AsyncAppender * const)) 0x7ff930fe710c 
<log4cxx::AsyncAppender::dispatch()>) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #9  0x00007ff9310e3725 in std::thread::_Invoker<std::tuple<void 
(log4cxx::AsyncAppender::*)(), log4cxx::AsyncAppender*> >::_M_invoke<0ull, 
1ull> (this=0x14616e78218) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #10 0x00007ff9310e3798 in std::thread::_Invoker<std::tuple<void 
(log4cxx::AsyncAppender::*)(), log4cxx::AsyncAppender*> >::operator() 
(this=0x14616e78218) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #11 0x00007ff9310e323c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<void 
(log4cxx::AsyncAppender::*)(), log4cxx::AsyncAppender*> > >::_M_run 
(this=0x14616e78210) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #12 0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #13 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #14 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #15 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #16 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #17 0x0000000000000000 in ?? ()
   
   Thread 9 (Thread 4336.0x664):
   #0  0x00007ff6a9a1cb21 in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::_M_is_local (this=0x17fc7ff810) 
at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/basic_string.h:267
   #1  0x00007ff6a9a246b8 in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::_M_dispose (this=0x17fc7ff880) 
at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/basic_string.h:287
   #2  0x00007ff6a9a262b8 in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::~basic_string 
(this=0x17fc7ff880, __in_chrg=<optimized out>) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/basic_string.h:809
   #3  0x00007ff6a9a2acc7 in 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}::operator()() const 
(__closure=0x14616e64618) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:253
   #4  0x00007ff6a9a28b80 in std::__invoke_impl<void, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(std::__invoke_other, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&) (__f=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:61
   #5  0x00007ff6a9a2a735 in 
std::__invoke<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&)
 (__fn=...) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #6  0x00007ff6a9a22bf8 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::_M_invoke<0ull>(std::_Index_tuple<0ull>) (this=0x14616e64618) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #7  0x00007ff6a9a22c78 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::operator()() (this=0x14616e64618) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #8  0x00007ff6a9a22a6c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 > >::_M_run() (this=0x14616e64610) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #9  0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #10 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #11 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #12 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #13 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #14 0x0000000000000000 in ?? ()
   
   Thread 8 (Thread 4336.0x90c):
   #0  0x00007ff9310a3de1 in 
std::_Vector_base<std::shared_ptr<log4cxx::Appender>, 
std::allocator<std::shared_ptr<log4cxx::Appender> > >::_M_get_Tp_allocator 
(this=0x17fc5ffab0) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/stl_vector.h:300
   #1  0x00007ff9310ea9f8 in std::vector<std::shared_ptr<log4cxx::Appender>, 
std::allocator<std::shared_ptr<log4cxx::Appender> > >::~vector 
(this=0x17fc5ffb10, __in_chrg=<optimized out>) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/stl_vector.h:736
   #2  0x00007ff930fe28c5 in 
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders 
(this=0x14616e30958, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 3, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:86
   #3  0x00007ff93100ff4c in log4cxx::Logger::callAppenders 
(this=0x14616e64830, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 3, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:140
   #4  0x00007ff931010146 in log4cxx::Logger::addEvent (this=0x14616e64830, 
level=std::shared_ptr<log4cxx::Level> (use count 435, weak count 0) = {...}, 
message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:175
   #5  0x00007ff931010380 in log4cxx::Logger::addDebugEvent 
(this=0x14616e64830, message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:200
   #6  0x00007ff6a9a2acbb in 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}::operator()() const 
(__closure=0x14616e64498) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:253
   #7  0x00007ff6a9a28b80 in std::__invoke_impl<void, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(std::__invoke_other, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&) (__f=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:61
   #8  0x00007ff6a9a2a735 in 
std::__invoke<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&)
 (__fn=...) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #9  0x00007ff6a9a22bf8 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::_M_invoke<0ull>(std::_Index_tuple<0ull>) (this=0x14616e64498) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #10 0x00007ff6a9a22c78 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::operator()() (this=0x14616e64498) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #11 0x00007ff6a9a22a6c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 > >::_M_run() (this=0x14616e64490) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #12 0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #13 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #14 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #15 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #16 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #17 0x0000000000000000 in ?? ()
   
   Thread 7 (Thread 4336.0x1410):
   #0  0x00007ff930fe6074 in std::__atomic_base<unsigned long 
long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fc3ff2a8: 429, 
__i2=430, __m1=std::memory_order::release, __m2=std::memory_order::relaxed) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
   #1  std::__atomic_base<unsigned long long>::compare_exchange_weak 
(this=0x14616e86c00, __i1=<optimized out>, __i2=430, 
__m=std::memory_order::release) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:555
   #2  log4cxx::AsyncAppender::append (this=0x14616e642c0, 
event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use count 2, weak count 0) = 
{...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:314
   #3  0x00007ff930fe401f in log4cxx::AppenderSkeleton::doAppendImpl 
(this=0x14616e642c8, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderskeleton.cpp:131
   #4  0x00007ff930fe5a04 in log4cxx::AsyncAppender::doAppend 
(this=0x14616e642c0, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:280
   #5  0x00007ff930fe2886 in 
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders 
(this=0x14616e30958, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:83
   #6  0x00007ff93100ff4c in log4cxx::Logger::callAppenders 
(this=0x14616e64830, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:140
   #7  0x00007ff931010146 in log4cxx::Logger::addEvent (this=0x14616e64830, 
level=std::shared_ptr<log4cxx::Level> (use count 435, weak count 0) = {...}, 
message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:175
   #8  0x00007ff931010380 in log4cxx::Logger::addDebugEvent 
(this=0x14616e64830, message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:200
   #9  0x00007ff6a9a2acbb in 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}::operator()() const 
(__closure=0x14616e64438) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:253
   #10 0x00007ff6a9a28b80 in std::__invoke_impl<void, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(std::__invoke_other, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&) (__f=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:61
   #11 0x00007ff6a9a2a735 in 
std::__invoke<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&)
 (__fn=...) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #12 0x00007ff6a9a22bf8 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::_M_invoke<0ull>(std::_Index_tuple<0ull>) (this=0x14616e64438) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #13 0x00007ff6a9a22c78 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::operator()() (this=0x14616e64438) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #14 0x00007ff6a9a22a6c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 > >::_M_run() (this=0x14616e64430) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #15 0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #16 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #17 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #18 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #19 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #20 0x0000000000000000 in ?? ()
   
   Thread 6 (Thread 4336.0x764):
   #0  0x00007ff930fe606c in std::__atomic_base<unsigned long 
long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fc1ff848: 430, 
__i2=431, __m1=std::memory_order::release, __m2=std::memory_order::relaxed) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
   #1  std::__atomic_base<unsigned long long>::compare_exchange_weak 
(this=0x14616e86c00, __i1=<optimized out>, __i2=431, 
__m=std::memory_order::release) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:555
   #2  log4cxx::AsyncAppender::append (this=0x14616e642c0, 
event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use count 2, weak count 0) = 
{...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:314
   #3  0x00007ff930fe401f in log4cxx::AppenderSkeleton::doAppendImpl 
(this=0x14616e642c8, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderskeleton.cpp:131
   #4  0x00007ff930fe5a04 in log4cxx::AsyncAppender::doAppend 
(this=0x14616e642c0, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:280
   #5  0x00007ff930fe2886 in 
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders 
(this=0x14616e30958, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:83
   #6  0x00007ff93100ff4c in log4cxx::Logger::callAppenders 
(this=0x14616e64830, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:140
   #7  0x00007ff931010146 in log4cxx::Logger::addEvent (this=0x14616e64830, 
level=std::shared_ptr<log4cxx::Level> (use count 435, weak count 0) = {...}, 
message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:175
   #8  0x00007ff931010380 in log4cxx::Logger::addDebugEvent 
(this=0x14616e64830, message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:200
   #9  0x00007ff6a9a2acbb in 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}::operator()() const 
(__closure=0x14616e645e8) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:253
   #10 0x00007ff6a9a28b80 in std::__invoke_impl<void, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(std::__invoke_other, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&) (__f=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:61
   #11 0x00007ff6a9a2a735 in 
std::__invoke<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&)
 (__fn=...) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #12 0x00007ff6a9a22bf8 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::_M_invoke<0ull>(std::_Index_tuple<0ull>) (this=0x14616e645e8) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #13 0x00007ff6a9a22c78 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::operator()() (this=0x14616e645e8) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #14 0x00007ff6a9a22a6c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 > >::_M_run() (this=0x14616e645e0) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #15 0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #16 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #17 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #18 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #19 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #20 0x0000000000000000 in ?? ()
   
   Thread 5 (Thread 4336.0x1a74):
   #0  0x00007ff930fe606c in std::__atomic_base<unsigned long 
long>::compare_exchange_weak (this=0x14616e86c00, __i1=@0x17fbfff408: 428, 
__i2=429, __m1=std::memory_order::release, __m2=std::memory_order::relaxed) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:536
   #1  std::__atomic_base<unsigned long long>::compare_exchange_weak 
(this=0x14616e86c00, __i1=<optimized out>, __i2=429, 
__m=std::memory_order::release) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/atomic_base.h:555
   #2  log4cxx::AsyncAppender::append (this=0x14616e642c0, 
event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use count 2, weak count 0) = 
{...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:314
   #3  0x00007ff930fe401f in log4cxx::AppenderSkeleton::doAppendImpl 
(this=0x14616e642c8, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderskeleton.cpp:131
   #4  0x00007ff930fe5a04 in log4cxx::AsyncAppender::doAppend 
(this=0x14616e642c0, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, pool1=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/asyncappender.cpp:280
   #5  0x00007ff930fe2886 in 
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders 
(this=0x14616e30958, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/appenderattachableimpl.cpp:83
   #6  0x00007ff93100ff4c in log4cxx::Logger::callAppenders 
(this=0x14616e64830, event=std::shared_ptr<log4cxx::spi::LoggingEvent> (use 
count 2, weak count 0) = {...}, p=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:140
   #7  0x00007ff931010146 in log4cxx::Logger::addEvent (this=0x14616e64830, 
level=std::shared_ptr<log4cxx::Level> (use count 435, weak count 0) = {...}, 
message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:175
   #8  0x00007ff931010380 in log4cxx::Logger::addDebugEvent 
(this=0x14616e64830, message=..., location=...) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/main/cpp/logger.cpp:200
   #9  0x00007ff6a9a2acbb in 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}::operator()() const 
(__closure=0x14616e64708) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:253
   #10 0x00007ff6a9a28b80 in std::__invoke_impl<void, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(std::__invoke_other, 
AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&) (__f=...) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:61
   #11 0x00007ff6a9a2a735 in 
std::__invoke<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>(AsyncAppenderTestCase::testMultiThread()::{lambda()#1}&&)
 (__fn=...) at D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/invoke.h:96
   #12 0x00007ff6a9a22bf8 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::_M_invoke<0ull>(std::_Index_tuple<0ull>) (this=0x14616e64708) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:301
   #13 0x00007ff6a9a22c78 in 
std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 >::operator()() (this=0x14616e64708) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:308
   #14 0x00007ff6a9a22a6c in 
std::thread::_State_impl<std::thread::_Invoker<std::tuple<AsyncAppenderTestCase::testMultiThread()::{lambda()#1}>
 > >::_M_run() (this=0x14616e64700) at 
D:/a/_temp/msys64/ucrt64/include/c++/14.2.0/bits/std_thread.h:253
   #15 0x00007ff948042c3f in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #16 0x00007ff94bb94e0b in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #17 0x00007ff963e76b4c in ucrtbase!_recalloc () from 
C:\Windows\System32\ucrtbase.dll
   #18 0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #19 0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #20 0x0000000000000000 in ?? ()
   
   Thread 4 (Thread 4336.0x18bc):
   #0  0x00007ff9666233d4 in ntdll!ZwWaitForWorkViaWorkerFactory () from 
C:\Windows\SYSTEM32\ntdll.dll
   #1  0x00007ff96658b77f in ntdll!RtlInitializeResource () from 
C:\Windows\SYSTEM32\ntdll.dll
   #2  0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #3  0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #4  0x0000000000000000 in ?? ()
   
   Thread 3 (Thread 4336.0x6e8):
   #0  0x00007ff9666233d4 in ntdll!ZwWaitForWorkViaWorkerFactory () from 
C:\Windows\SYSTEM32\ntdll.dll
   #1  0x00007ff96658b77f in ntdll!RtlInitializeResource () from 
C:\Windows\SYSTEM32\ntdll.dll
   #2  0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #3  0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #4  0x0000000000000000 in ?? ()
   
   Thread 2 (Thread 4336.0x1770):
   #0  0x00007ff9666233d4 in ntdll!ZwWaitForWorkViaWorkerFactory () from 
C:\Windows\SYSTEM32\ntdll.dll
   #1  0x00007ff96658b77f in ntdll!RtlInitializeResource () from 
C:\Windows\SYSTEM32\ntdll.dll
   #2  0x00007ff966154cb0 in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\System32\kernel32.dll
   #3  0x00007ff9665fecdb in ntdll!RtlUserThreadStart () from 
C:\Windows\SYSTEM32\ntdll.dll
   #4  0x0000000000000000 in ?? ()
   
   Thread 1 (Thread 4336.0x8ec):
   #0  0x00007ff96661f904 in ntdll!ZwWaitForSingleObject () from 
C:\Windows\SYSTEM32\ntdll.dll
   #1  0x00007ff9640dd71e in WaitForSingleObjectEx () from 
C:\Windows\System32\KernelBase.dll
   #2  0x00007ff94bb9690a in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libwinpthread-1.dll
   #3  0x00007ff947ffd8f7 in ?? () from 
D:\a\_temp\msys64\ucrt64\bin\libstdc++-6.dll
   #4  0x00007ff6a9a16c1a in AsyncAppenderTestCase::testMultiThread 
(this=0x17fb7ff4f0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:262
   #5  0x00007ff6a9a19898 in LogUnit::runTest<AsyncAppenderTestCase> 
(tc=0x17fb7ff5e0, func=(void (AsyncAppenderTestCase::*)(AsyncAppenderTestCase * 
const)) 0x7ff6a9a169d0 <AsyncAppenderTestCase::testMultiThread()>) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/logunit.h:115
   #6  0x00007ff6a9a15768 in 
AsyncAppenderTestCase::RegisterSuite::testMultiThreadRegistration::run 
(tc=0x17fb7ff5e0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/asyncappendertestcase.cpp:127
   #7  0x00007ff6a9a11b63 in abts_run_test (ts=0x14616e3feb0, 
name=0x7ff6a9a2d137 "testMultiThread", f=0x7ff6a9a15730 
<AsyncAppenderTestCase::RegisterSuite::testMultiThreadRegistration::run(abts_case*,
 void*)>, value=0x0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/abts.cpp:215
   #8  0x00007ff6a9a1364e in LogUnit::TestSuite::run (this=0x7ff6a9a2c120 
<AsyncAppenderTestCase::getSuite()::suite>, suite=0x14616e3feb0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/logunit.cpp:281
   #9  0x00007ff6a9a12cec in abts_run_suites (suite=0x0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/logunit.cpp:66
   #10 0x00007ff6a9a1277d in main (argc=2, argv=0x14616e3fcd0) at 
D:/a/logging-log4cxx/logging-log4cxx/log4cxx/src/test/cpp/abts.cpp:595
   warning: Exception condition detected on fd 0
   
   `


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