activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Laügt (JIRA) <j...@apache.org>
Subject [jira] [Updated] (AMQCPP-437) ActiveMQ crashes on subscribing one listener on several topics with a same session.
Date Thu, 25 Oct 2012 15:33:12 GMT

     [ https://issues.apache.org/jira/browse/AMQCPP-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Laügt updated AMQCPP-437:
--------------------------------

    Attachment: ActiveMQSessionExecutor.cpp.patch
                ActiveMQSessionExecutor.cpp

Proposal patch.
                
> ActiveMQ crashes on subscribing one listener on several topics with a same session.
> -----------------------------------------------------------------------------------
>
>                 Key: AMQCPP-437
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-437
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 3.4.3
>         Environment: Linux (Ubuntu 12.10) with gcc 4.4.
>            Reporter: Daniel Laügt
>            Assignee: Timothy Bish
>         Attachments: ActiveMQSessionExecutor.cpp, ActiveMQSessionExecutor.cpp.patch,
test.cc
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> ActiveMQ crashes on subscribing one listener on several topics with a same session.
> It crashes on freeing an object in ActiveMQSessionExecutor::wakeup() and ActiveMQSessionExecutor::stop().
> Each time that a listener is subscribed to a topic, ActiveMQ stops the session. In ActiveMQSessionExecutor::stop(),
the shared pointer (this->taskRunner) is read but in the same time the shared pointer can
be modified by ActiveMQSessionExecutor::wakeup() when a message is received from the topic.
Reading and modifying a shared pointer is not thread safe and should be protected by a mutex.
> I've attached a test case and a proposal patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message