Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A023E2B6 for ; Fri, 18 Jan 2013 19:26:13 +0000 (UTC) Received: (qmail 69717 invoked by uid 500); 18 Jan 2013 19:26:13 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 69654 invoked by uid 500); 18 Jan 2013 19:26:13 -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 69519 invoked by uid 99); 18 Jan 2013 19:26:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 19:26:13 +0000 Date: Fri, 18 Jan 2013 19:26:12 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQCPP-449) activemq::library::ActiveMQCPP::shutdownLibrary(); causing runtime exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQCPP-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557510#comment-13557510 ] Timothy Bish commented on AMQCPP-449: ------------------------------------- Added the change to trunk. let me know if that fixes the problem. > activemq::library::ActiveMQCPP::shutdownLibrary(); causing runtime exception > ---------------------------------------------------------------------------- > > Key: AMQCPP-449 > URL: https://issues.apache.org/jira/browse/AMQCPP-449 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Decaf > Affects Versions: 3.5.0 > Environment: HPUX 11.31 > Reporter: Jeffrey B > Assignee: Timothy Bish > Priority: Critical > Labels: HPUX, crash, destructor, exception, runtime, thread > Fix For: 3.5.1 > > Attachments: amqdriver.cpp, amqdriver.cpp > > > Whenever my simple driver application or my receiver application call the shutdownLibrary() method at the end, as the program is going through desctuctors for threads it prints and causes a core dump > aCC runtime: Unexpected exception of type "decaf::lang::exceptions::RuntimeException". > aCC runtime: what(): Failed to Lock OS Mutex > Abort(coredump) > I added another catch and print in decaf/lang/Thread.cpp about line 133 and on decaf/internal/util/concurrent/unix/PlatformThread.cpp about line 76 i printed out ther error number return from pthread_mutex_lock() > Now i get: > Failed to Lock OS Mutex, Error num: 22 > FILE: decaf/internal/util/concurrent/unix/PlatformThread.cpp, LINE: 78 > aCC runtime: Unexpected exception of type "decaf::lang::exceptions::RuntimeException". > aCC runtime: what(): Failed to Lock OS Mutex, Error num: 22 > Abort(coredump) > Error 22 is EINVAL and can have two meanings on my system: > mutex is a PTHREAD_PRIO_PROTECT mutex and the caller's priority is higher than mutex's priority ceiling. > mutex is not an initialized mutex. > I'll try and upload my code to see if this happens on other systems as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira