Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 70515 invoked from network); 25 Feb 2008 22:44:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2008 22:44:09 -0000 Received: (qmail 13998 invoked by uid 500); 25 Feb 2008 22:44:04 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 13964 invoked by uid 500); 25 Feb 2008 22:44:04 -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 13955 invoked by uid 99); 25 Feb 2008 22:44:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 14:44:04 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 22:43:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DB1AE29A0011 for ; Mon, 25 Feb 2008 14:43:17 -0800 (PST) Message-ID: <2109615512.1203979397895.JavaMail.jira@brutus> Date: Mon, 25 Feb 2008 14:43:17 -0800 (PST) From: "Ismail Mehdi (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQCPP-170) SEGV in activemq::connector::openwire::OpenWireConnector::createProducer In-Reply-To: <1823211503.1203979397826.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41397#action_41397 ] Ismail Mehdi commented on AMQCPP-170: ------------------------------------- Here's the stack for 2.1: #5 0x078e8ae4 in activemq::connector::openwire::OpenWireConnector::createProducer (this=0xa04a158, destination=0x9fd0568, session=0xccbb428) at activemq/connector/openwire/OpenWireConnector.cpp:752 #6 0x078adb06 in activemq::core::ActiveMQSession::createProducer (this=0x844f890, destination=0x9fd0568) at activemq/core/ActiveMQSession.cpp:348 > SEGV in activemq::connector::openwire::OpenWireConnector::createProducer > ------------------------------------------------------------------------ > > Key: AMQCPP-170 > URL: https://issues.apache.org/activemq/browse/AMQCPP-170 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Openwire > Affects Versions: 2.1, 2.1.1, 2.1.2, 2.1.3 > Environment: Linux 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386 GNU/Linux > Reporter: Ismail Mehdi > Assignee: Nathan Mittler > > Client setup is a JMS client sending messages to a C++ process with a timeout. Under heavy load the C++ process does not reply fast enough and the java client gives-up. > If the connection is dropped while the C++ is inside of OpenWireConnector::createProducer, an exception is thrown and the cleanup code causes a segv in: > activemq/connector/openwire/OpenWireConnector.cpp:752 > (this is for CMS 2.1) > reproduced for 2.1.3 as well. line 679 for 2.1.3 > Fix is pretty straightforward, do not delete the producerInfo twice. The first time it is done in producer should be sufficient. > Alternatively, I imagine setting producerInfo to 0 once it is deleted would avoid the crash as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.