Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A125FD787 for ; Fri, 1 Feb 2013 19:11:57 +0000 (UTC) Received: (qmail 21546 invoked by uid 500); 1 Feb 2013 19:11:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 21515 invoked by uid 500); 1 Feb 2013 19:11:57 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 21507 invoked by uid 99); 1 Feb 2013 19:11:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 19:11:56 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of jeffreyhasmail@hotmail.com does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 19:11:50 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U1M1J-0005SN-Ak for users@activemq.apache.org; Fri, 01 Feb 2013 11:11:29 -0800 Date: Fri, 1 Feb 2013 11:11:29 -0800 (PST) From: jeffrey To: users@activemq.apache.org Message-ID: <1359745889291-4662651.post@n4.nabble.com> Subject: What is the purpose of the countdownlatch? and a crash of my receiver MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have a receiver class, but I never used the countdownlatch objects that are listed in this example program. http://activemq.apache.org/cms/example.html Im wondering what the latch actually does and how will not using it affect my program. Since upgrading to 3.5.0 my receiver now core dumps after the return line at the end of my program. #0 0x60000000d341e6a0:1 in apr_pvsprintf () at memory/unix/apr_pools.c:1176 #1 0x60000000e2906ed0:0 in decaf::lang::Exception::buildMessage ( this=0x2000000040089370, format=0x60000000e1005530 "Failed to Lock OS Mutex", vargs=@0x7fffef00) at decaf/lang/Exception.cpp:124 #2 0x60000000e299b5b0:0 in decaf::lang::exceptions::RuntimeException::RuntimeException (this=0x2000000040089370, file=0x60000000e10054c0 "decaf/internal/util/concurrent/unix/PlatformThread.cpp", lineNumber=77, msg=0x60000000e1005530 "Failed to Lock OS Mutex") at decaf/lang/exceptions/RuntimeException.cpp:51 #3 0x60000000e2878160:0 in decaf::internal::util::concurrent::PlatformThread::lockMutex (mutex=0x0) at decaf/internal/util/concurrent/unix/PlatformThread.cpp:76 #4 0x60000000e286a5b0:0 in decaf::internal::util::concurrent::Threading::attachToCurrentThread () at decaf/internal/util/concurrent/Threading.cpp:927 #5 0x60000000e2863350:0 in decaf::internal::util::concurrent::Threading::getCurrentThreadHandle () at decaf/internal/util/concurrent/Threading.cpp:1273 #6 0x60000000e2867a40:0 in decaf::internal::util::concurrent::Threading::join (thread=0x2000000040092110, mills=0, nanos=0) at decaf/internal/util/concurrent/Threading.cpp:1069 #7 0x60000000e2869af0:0 in decaf::internal::util::concurrent::Threading::destroyThread (thread=0x2000000040092110) at decaf/internal/util/concurrent/Threading.cpp:893 #8 0x60000000e2985300:0 in decaf::lang::Thread::~Thread ( this=0x200000007fffeff0, _noname=0) at decaf/lang/Thread.cpp:130 #9 0x400bc90:0 in main () at cleanamqsms.cpp:373 It goes to delete the thread started for the listener and crashes along the way, but this does not happen on my sender class that invokes a thread in the exact same manor. Im wondering if that latch has anything to do with it and also why it only started in 3.5.0 and did not happen in 3.4.5. I already have this fix in my library https://issues.apache.org/jira/browse/AMQCPP-449. Thanks in advance. -- View this message in context: http://activemq.2283324.n4.nabble.com/What-is-the-purpose-of-the-countdownlatch-and-a-crash-of-my-receiver-tp4662651.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.