You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Martin Lichtin (JIRA)" <ji...@apache.org> on 2013/07/02 11:14:21 UTC

[jira] [Created] (AMQCPP-499) Mutex created as part of a static object causes runtime exception during destruction

Martin Lichtin created AMQCPP-499:
-------------------------------------

             Summary: Mutex created as part of a static object causes runtime exception during destruction
                 Key: AMQCPP-499
                 URL: https://issues.apache.org/jira/browse/AMQCPP-499
             Project: ActiveMQ C++ Client
          Issue Type: Bug
    Affects Versions: 3.6.0
            Reporter: Martin Lichtin
            Assignee: Timothy Bish


A Mutex created as part of a static object causes runtime exception during destruction.

 (gdb) bt
#0 0x000000397b0306f7 in kill () from /lib64/libc.so.6
#1 0x00002b3a7f8d43c1 in EXsignal () from /ingres/I1/ingres/lib/libcompat.1.so
#2 0x00002b3a7f8d3ffa in i_EXcatch () from /ingres/I1/ingres/lib/libcompat.1.so
#3 <signal handler called>
#4 apr_pvsprintf (pool=0x0, fmt=0x2b3a7d89e50c "Failed to Lock OS Mutex", ap=0x7ffff8644e80) at memory/unix/apr_pools.c:1125
#5 0x00002b3a7d791b3f in decaf::lang::Exception::buildMessage (this=0x2aaaac002da0, format=0x2b3a7d89e50c "Failed to Lock OS Mutex", vargs=...) at decaf/lang/Exception.cpp:124
#6 0x00002b3a7d7b2a0f in decaf::lang::exceptions::RuntimeException::RuntimeException (this=0x2aaaac002da0, file=0x2b3a7d89e360 "decaf/internal/util/concurrent/unix/PlatformThread.cpp", lineNumber=77, msg=0x2b3a7d89e50c "Failed to Lock OS Mutex")
    at decaf/lang/exceptions/RuntimeException.cpp:51
#7 0x00002b3a7d75dc0c in decaf::internal::util::concurrent::PlatformThread::lockMutex (mutex=0x6338650) at decaf/internal/util/concurrent/unix/PlatformThread.cpp:77
#8 0x00002b3a7d758d06 in decaf::internal::util::concurrent::Threading::returnMonitor (monitor=0x61af4d0, alreadyLocked=false) at decaf/internal/util/concurrent/Threading.cpp:1496
#9 0x00002b3a7d80553a in decaf::util::concurrent::Mutex::~Mutex (this=0x2b3a7c77ce80, __in_chrg=<value optimized out>) at decaf/util/concurrent/Mutex.cpp:84
#10 0x00002b3a7c578d67 in MyObject::~MyObject (this=0x2b3a7c77ce80, __in_chrg=<value optimized out>) at MyObjectTrace.h:30
#11 0x00002b3a7c578900 in __tcf_1 () at MyObjectTrace.cpp:45
#12 0x000000397b03368e in __cxa_finalize () from /lib64/libc.so.6
#13 0x00002b3a7c574916 in __do_global_dtors_aux () from libmylib.so
#14 0x0000000000000000 in ?? ()
(gdb) 

--
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