You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Mark Libucha <ml...@gmail.com> on 2013/12/14 22:19:07 UTC

Blocking forever in createConsumer

Note that this is for PowerLinux, which I understand is an unsupported
platform.

That being said, to anyone who might offer some insight: thank you!

Maybe once in every 100 times we spawn our app, it blocks forever in a call
to createConsumer (on a queue, not a topic). We've turned up logging on the
broker, and the logging there is normal. That is, the messages that we see
for a successful, non blocked, createConsumer call are all there.

Here is the backtrace, from version 3.8.2. Thanks again for any advice.

Mark

(gdb) bt
#0  0x0fa9c490 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x103498a4 in
decaf::internal::util::concurrent::PlatformThread::waitOnCondition
(condition=0x1395abb0, mutex=0x13943f78)
    at decaf/internal/util/concurrent/unix/PlatformThread.cpp:178
#2  0x1033e748 in (anonymous namespace)::doMonitorEnter
(monitor=0x13941838, thread=0x1395a528) at
decaf/internal/util/concurrent/Threading.cpp:664
#3  0x10342524 in
decaf::internal::util::concurrent::Threading::enterMonitor
(monitor=0x13941838) at decaf/internal/util/concurrent/Threading.cpp:1533
#4  0x103b10fc in decaf::util::concurrent::Mutex::lock (this=0x13946d14) at
decaf/util/concurrent/Mutex.cpp:123
#5  0x1046083c in
decaf::util::StlMap<decaf::lang::Pointer<activemq::commands::ConsumerId,
decaf::util::concurrent::atomic::AtomicRefCounter>,
activemq::core::Dispatcher*,
decaf::lang::PointerComparator<activemq::commands::ConsumerId,
decaf::util::concurrent::atomic::AtomicRefCounter> >::lock
(this=0x13946cf8) at ./decaf/util/StlMap.h:896
#6  0x103b0708 in decaf::util::concurrent::Lock::lock (this=0xff96d530) at
decaf/util/concurrent/Lock.cpp:54
#7  0x103b0344 in decaf::util::concurrent::Lock::Lock (this=0xff96d530,
object=0x13946cf8, intiallyLocked=true) at decaf/util/concurrent/Lock.cpp:32
#8  0x103ec014 in activemq::core::ActiveMQConnection::addDispatcher
(this=0x13943ea8, consumer=..., dispatcher=0x139575c0) at
activemq/core/ActiveMQConnection.cpp:510
#9  0x1054ac64 in
activemq::core::kernels::ActiveMQSessionKernel::addConsumer
(this=0x139575c0, consumer=...) at
activemq/core/kernels/ActiveMQSessionKernel.cpp:1242
#10 0x1052ea70 in
activemq::core::kernels::ActiveMQSessionKernel::createConsumer
(this=0x139575c0, destination=0x1395954c, selector=..., noLocal=false)
    at activemq/core/kernels/ActiveMQSessionKernel.cpp:593
#11 0x104bfe48 in activemq::core::ActiveMQSession::createConsumer
(this=0x139586c0, destination=0x1395954c) at
activemq/core/ActiveMQSession.cpp:94