Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AB46E200CC5 for ; Tue, 11 Jul 2017 17:59:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A809F16643B; Tue, 11 Jul 2017 15:59:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EE2A1166436 for ; Tue, 11 Jul 2017 17:59:42 +0200 (CEST) Received: (qmail 42270 invoked by uid 500); 11 Jul 2017 15:59:37 -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 42259 invoked by uid 99); 11 Jul 2017 15:59:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2017 15:59:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 42F891921AE for ; Tue, 11 Jul 2017 15:59:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.988 X-Spam-Level: *** X-Spam-Status: No, score=3.988 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, KAM_NUMSUBJECT=0.5, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fyux-qBbEZpY for ; Tue, 11 Jul 2017 15:59:34 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E398C624BF for ; Tue, 11 Jul 2017 15:59:33 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 9F99351E83FFF for ; Tue, 11 Jul 2017 08:59:33 -0700 (MST) Date: Tue, 11 Jul 2017 08:40:39 -0700 (PDT) From: "mahesh.nitte" To: users@activemq.apache.org Message-ID: <1499787639634-4728453.post@n4.nabble.com> Subject: Activemq-cpp - Exception is thrown at Threading.cpp:274 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 11 Jul 2017 15:59:43 -0000 Hi, I am using activemq-3.9.3 library for c++ on ubuntu 12.x It is a complex multi threaded application. I see there are 3000+ application threads got created! And when I debugged through gdb, I see those threads are depending on one core thread. The dependency looks like this. t1->t2->t3->t4 where t1 is waiting for mutex held by t2 and which is waiting for the mutex held by t3. Similary t3 is waiting for t4's resource. t4's back trace has the following:- (gdb) bt #0 0x00007f18126bbd84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x0000000000e5f226 in (anonymous namespace)::runCallback (arg=0x7f17990f95d0) at decaf/internal/util/concurrent/Threading.cpp:274 #2 0x0000000000e62ed9 in decaf::internal::util::concurrent::PlatformThread::waitOnCondition (condition=0xe5f243, mutex=0x7f179944e5a0, mills=25303968, nanos=47162608) at decaf/internal/util/concurrent/unix/PlatformThread.cpp:197 #3 0x0000000000e62efa in decaf::internal::util::concurrent::PlatformThread::waitOnCondition (condition=0x2cf80a0, mutex=0x2cf5c20, mills=, nanos=) at decaf/internal/util/concurrent/unix/PlatformThread.cpp:202 The frame 1 has the below code line:- thread->parent->getDefaultUncaughtExceptionHandler()->uncaughtException(thread->parent, error); I also found some of the threads tries to access memory which is corrupted! I believe this is due to the fact that lot of threads got created and waiting... to unlock the above resource and stack space exhausted! #10 0x0000000000b9dd16 in boost::exception_detail::clone_impl >::~clone_impl (this=0xdf334a, __in_chrg=) at /usr/include/boost/exception/exception.hpp:406 No locals. #11 0x0000000000b9d307 in boost::throw_exception (e=...) at /usr/include/boost/throw_exception.hpp:61 . . . 9 0x0000000000c4260e in TPGAdaEventReceiver::echoAppletEvent (this=0x0, agentObj=, agentXmlObj=0x0, status= Please help me to understand 1. What went wrong here? Why the exception is thrown at Threading.cpp:274? 2. How can I fix the same? -- View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-cpp-Exception-is-thrown-at-Threading-cpp-274-tp4728453.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.