We have this stack trace:
Thread 66 (LWP 2509):
#0 0x00007efd2489489c in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007efd24890065 in _L_lock_858 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007efd2488feba in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007efd18a3db47 in net_instaweb::SharedCircularBuffer::Write(base::BasicStringPiece<std::string> const&, net_instaweb::MessageHandler*) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#4 0x00007efd188d0de4 in net_instaweb::SystemMessageHandler::AddMessageToBuffer(net_instaweb::MessageType, base::BasicStringPiece<std::string>) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#5 0x00007efd186250eb in net_instaweb::ApacheMessageHandler::MessageSImpl(net_instaweb::MessageType, std::string const&) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#6 0x00007efd188d08fc in net_instaweb::SystemMessageHandler::MessageVImpl(net_instaweb::MessageType, char const*, __va_list_tag*) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#7 0x00007efd186e9407 in net_instaweb::MessageHandler::Message(net_instaweb::MessageType, char const*, ...) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
This thread own the muxt others are waitin for:
Thread 56 (LWP 2499):
#0 0x00007efd2489489c in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007efd24890065 in _L_lock_858 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007efd2488feba in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007efd188d0d91 in net_instaweb::SystemMessageHandler::AddMessageToBuffer(net_instaweb::MessageType, base::BasicStringPiece<std::string>) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#4 0x00007efd186250eb in net_instaweb::ApacheMessageHandler::MessageSImpl(net_instaweb::MessageType, std::string const&) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#5 0x00007efd188d08fc in net_instaweb::SystemMessageHandler::MessageVImpl(net_instaweb::MessageType, char const*, __va_list_tag*) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
#6 0x00007efd186e9407 in net_instaweb::MessageHandler::Message(net_instaweb::MessageType, char const*, ...) () from /opt/bg/deploy/apache24/modules/mod_pagespeed_ap24.so
there are more than 5 of this thread. The function call AddMessageToBuffer waitng for the mutex locked by the thread 66 (the first one).
No any trace to show who locks the mutex thread 66 is waiting for within CircularBuffer code. Have this deadlock seen before?
Alex