Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 93021 invoked from network); 13 Jul 2009 04:31:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jul 2009 04:31:51 -0000 Received: (qmail 32379 invoked by uid 500); 13 Jul 2009 04:32:01 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 32255 invoked by uid 500); 13 Jul 2009 04:32:00 -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 32245 invoked by uid 99); 13 Jul 2009 04:31:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 04:31:59 +0000 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, 13 Jul 2009 04:31:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C64C234C004 for ; Sun, 12 Jul 2009 21:31:35 -0700 (PDT) Message-ID: <688254535.1247459495493.JavaMail.jira@brutus> Date: Sun, 12 Jul 2009 21:31:35 -0700 (PDT) From: "Ivan (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-2069) Thread deadlock in ActiveMQEndpointWorker class In-Reply-To: <1463339873.1232070899372.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan updated AMQ-2069: ---------------------- Attachment: AMQ-2069.patch I tried to provide a patch for it, please help to review it. Thanks ! > Thread deadlock in ActiveMQEndpointWorker class > ----------------------------------------------- > > Key: AMQ-2069 > URL: https://issues.apache.org/activemq/browse/AMQ-2069 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.0 > Reporter: Ivan > Attachments: AMQ-2069.patch > > > It will happen when one thread is in a loop to try to connect the broker, in the meanwhile another thread calls the stop action. > Thread A (in the run() method) holds the connectWork, and requires the shutdownMutex when it is notified by the notifyAll action by ThreadB. > Thread B (in the stop() method) holds the shutdownMutex, and requires the connectWork in the disconnect method. > I move the disconnect() invocation out of the synchronized (shutdownMutex) block, it works well. > Thanks ! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.