Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 92455 invoked from network); 2 Jun 2007 22:26:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2007 22:26:53 -0000 Received: (qmail 60566 invoked by uid 500); 2 Jun 2007 22:26:57 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 60536 invoked by uid 500); 2 Jun 2007 22:26:57 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 60527 invoked by uid 99); 2 Jun 2007 22:26:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 15:26:57 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 15:26:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21D2471418E for ; Sat, 2 Jun 2007 15:26:33 -0700 (PDT) Message-ID: <20141204.1180823193134.JavaMail.jira@brutus> Date: Sat, 2 Jun 2007 15:26:33 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQCPP-119) getClientID segfaults is called after connection has been closed In-Reply-To: <7228460.1180817132906.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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 > #include > #include > 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.