activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQCPP-119) getClientID segfaults is called after connection has been closed
Date Sat, 02 Jun 2007 22:26:33 GMT

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

Timothy Bish resolved AMQCPP-119.
---------------------------------

    Resolution: Fixed

Fixed in trunk, added unit test to catch this.

> getClientID segfaults is called after connection has been closed
> ----------------------------------------------------------------
>
>                 Key: AMQCPP-119
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-119
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Albert Strasheim
>            Assignee: Timothy Bish
>             Fix For: 2.1
>
>
> Calling getClientID() on a connection after it has been closed segfaults.
> {code:title=main.cpp}#include <iostream>
> #include <activemq/core/ActiveMQConnectionFactory.h>
> #include <cms/Connection.h>
> using namespace activemq::core;
> using namespace cms;
> int main(int argc, char* argv[]) {
>     ActiveMQConnectionFactory connectionFactory( "tcp://localhost:61616?wireFormat=openwire"
);
>     cms::Connection* connection = connectionFactory.createConnection();
>     connection->getClientID();
>     connection->close();
>     connection->getClientID();
>     delete connection;
>     connection = NULL;
>     return 0;
> }{code} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message