activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ismail Mehdi (JIRA)" <>
Subject [jira] Created: (AMQCPP-170) SEGV in activemq::connector::openwire::OpenWireConnector::createProducer
Date Mon, 25 Feb 2008 22:43:17 GMT
SEGV in activemq::connector::openwire::OpenWireConnector::createProducer

                 Key: AMQCPP-170
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: Openwire
    Affects Versions: 2.1.3, 2.1.2, 2.1.1, 2.1
         Environment: Linux 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386
            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:
(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.

View raw message