Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 50019 invoked from network); 14 Apr 2011 11:33:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 11:33:44 -0000 Received: (qmail 239 invoked by uid 500); 14 Apr 2011 11:33:43 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 211 invoked by uid 500); 14 Apr 2011 11:33:43 -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 203 invoked by uid 99); 14 Apr 2011 11:33:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 11:33:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 11:33:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AC49FA1E85 for ; Thu, 14 Apr 2011 11:33:05 +0000 (UTC) Date: Thu, 14 Apr 2011 11:33:05 +0000 (UTC) From: "Teemu Torma (JIRA)" To: dev@activemq.apache.org Message-ID: <1168691706.57453.1302780785686.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AMQCPP-361) Destroying a consumer may cause a crash MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Destroying a consumer may cause a crash --------------------------------------- Key: AMQCPP-361 URL: https://issues.apache.org/jira/browse/AMQCPP-361 Project: ActiveMQ C++ Client Issue Type: Bug Components: CMS Impl Affects Versions: 3.2.5 Environment: all Reporter: Teemu Torma Assignee: Timothy Bish ActiveMQSessionExecutor::dispatch gets a consumer and calls consumer's dispatch method without holding any locks in between. This leaves a window when a consumer can be no longer valid on a dispatch call causing a crash. Since this is a timing issue it is hard to demonstrate as such. If one adds let's say one second sleep in ActiveMQSessionExecutor::dispatch before the call to the consumer->dispatch, and destroys a consumer on a destination which has messages incoming will likely crash the application. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira