Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-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 7DD4E937C for ; Sun, 9 Oct 2011 19:37:43 +0000 (UTC) Received: (qmail 8142 invoked by uid 500); 9 Oct 2011 19:37:42 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 8117 invoked by uid 500); 9 Oct 2011 19:37:42 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 8109 invoked by uid 99); 9 Oct 2011 19:37:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 19:37:42 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 19:37:37 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RCzBV-0001NI-CH for users@qpid.apache.org; Sun, 09 Oct 2011 12:37:17 -0700 Date: Sun, 9 Oct 2011 12:37:17 -0700 (PDT) From: yoav To: users@qpid.apache.org Message-ID: <1318189037359-6875052.post@n2.nabble.com> Subject: Qpid raise an exception each time my program terminates MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'm pretty new to Qpid and my application includes an AP{I server listening on a Qpid connection. We did the sequence as shown in the examples (i.e., Connection connection(..); ... connection.open(); .. Receiver receiver --> connection.close(); receiver.close();) and it works fine. Problem is that in some configurations when exiting from our application, AFTER application cleanup is completed we have a Qpid exception #0 0x00007fe73311cd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fe733120a47 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007fe7350476dd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007fe735045926 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007fe735045953 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007fe735045a5e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007fe7311b827a in qpid::sys::PollerPrivate::interruptAll (this=) at qpid/sys/epoll/EpollPoller.cpp:327 #7 0x00007fe731591e2f in qpid::client::(anonymous namespace)::IOThread::~IOThread (this=0x7fe7317fa660, __in_chrg=) at qpid/client/ConnectionImpl.cpp:132 #8 0x00007fe733122961 in exit () from /lib/x86_64-linux-gnu/libc.so.6 #9 0x00007fe733107f06 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #10 0x000000000040e0a9 in _start () The issue is probably in this QPID_POSIX_CHECK: void interruptAll() { ::epoll_event epe; // Not EPOLLONESHOT, so we eventually get all threads epe.events = ::EPOLLIN; epe.data.u64 = 2; // Keep valgrind happy QPID_POSIX_CHECK(::epoll_ctl(epollFd, EPOLL_CTL_MOD, alwaysReadableFd, &epe)); } As a result, I get core dumps each termination, which cause a sever a disk space problem Any ideas why this happens and how to avoid it? Thanks, Yoav -- View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Qpid-raise-an-exception-each-time-my-program-terminates-tp6875052p6875052.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org