activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BigSam72 <>
Subject Bug in MessageConsumer::receive
Date Thu, 13 Jul 2006 09:12:26 GMT

Hi, i am using openwirte implementation and during development process i find
a bug in the implementation of MessageConsumer::receive.

Whe queue is empty, receive() call dispatcher::dequeue which returns msg
with NULL and after that is called MessageConsumer::autoAcknowledge() which
doesn't test if message is NULL and process fails ( generates coredump ) ...

Here is stacktrace of my app ...
#0  0x00a8bb51 in apache::activemq::MessageConsumer::autoAcknowledge () from
#1  0x00a8c118 in apache::activemq::MessageConsumer::receive () from
#2  0x00a2a1e1 in
(this=0x91d2828) at IOPActiveMQ.cpp:115
#3  0x00a2c75e in
(this=0x91d23e0, lpParams=0xb5fb2410) at IOPActiveMQ.cpp:423
#4  0x00a2c2e3 in phoenix::EventHandler::plugins::WrapperFunction
(lpParams=0x91d23e0) at IOPActiveMQ.cpp:385
#5  0x0016371d in StartThreadFunction (lpParams=0x91bb480) at unix.cpp:1802
#6  0x00197371 in start_thread () from /lib/tls/
#7  0x007999be in clone () from /lib/tls/

View this message in context:
Sent from the ActiveMQ - Dev forum at

View raw message