You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2008/11/12 16:44:05 UTC
[jira] Created: (AMQCPP-205) CmsTemplate testBasics test can hang
CmsTemplate testBasics test can hang
------------------------------------
Key: AMQCPP-205
URL: https://issues.apache.org/activemq/browse/AMQCPP-205
Project: ActiveMQ C++ Client
Issue Type: Bug
Components: Integration Tests
Affects Versions: 2.2.1, 2.2.2
Environment: CentOS / REHL
Reporter: Timothy Bish
Assignee: Timothy Bish
Fix For: 2.3
Attachments: receiving.187.log.gz
Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
This snippet from a backtrace shows the case:
{noformat}
Thread 3 (Thread 1094732688 (LWP 15620)):
#0 0x40000402 in __kernel_vsyscall ()
#1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
#3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
#4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
#5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
#6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
#7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
#8 0x005a846b in start_thread () from /lib/libpthread.so.0
#9 0x004ffdbe in clone () from /lib/libc.so.6
Thread 2 (Thread 1098935184 (LWP 15621)):
#0 0x40000402 in __kernel_vsyscall ()
#1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
#3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
#4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
#5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
#6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
#7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
#8 0x005a846b in start_thread () from /lib/libpthread.so.0
#9 0x004ffdbe in clone () from /lib/libc.so.6
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47357#action_47357 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
Oops, thought I fixed that, I will look up the correct one to use so that we maintain backwards computability with 1.2.x and update the code.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47436#action_47436 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
It looks as though we have to use APR 1.3 or higher as the 1.2 branch doesn't seem to allow any sort of detached pool.. Child pools didn't seem to work for us.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47360#action_47360 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
The change in Trunk should allow you to build with both the 1.2.x and 1.3.x versions of the APR libraries.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50613#action_50613 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
The 2.2.4 release fixes some memory leaks that you most likely want fixed, so an upgrade to that version is strongly advised.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47435#action_47435 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Failed to compile with 1.2.7 again (apr_pool_create_unmanaged_ex):
build.log:decaf/internal/AprPool.cpp:40: error: 'apr_pool_create_unmanaged_ex' was not declared in this scope
src/main/decaf/internal/AprPool.cpp: apr_pool_create_unmanaged_ex( &aprPool, NULL, NULL );
Sorry I couldn't test this before.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50583#action_50583 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Hi there!
Sorry for being silent so long. I did no further testing on this issue but I can give it a try tonight.
Dario (bom dia), what version of ActiveMQ are you running?
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Dario Laverde (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50615#action_50615 ]
Dario Laverde commented on AMQCPP-205:
--------------------------------------
thanks for the responses - I had exacerbated the problem by constantly creating new producers, having a pool should mitigate the issue, I'll let you know if I see this happen again.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51521#action_51521 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Ok, I'll give the 3.0 a try tonight.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47469#action_47469 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Found it. Sorry, forget the previous comment.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51534#action_51534 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
Great, you may want to pull directly from trunk as I've made some more fixes that will soon go out as RC1.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47460#action_47460 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Stopped at loop #47 with yesterday's night code and from scratch build.
Identical situation, with threads 2 and 3 working on the same object.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Dario Laverde (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50578#action_50578 ]
Dario Laverde commented on AMQCPP-205:
--------------------------------------
hi all,
any progress on this issue? I have a similar deadlock as follows:
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xf785e266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0xf787f19a in apr_thread_cond_wait (cond=0xadf4b48, mutex=0xadf4b18) at locks/unix/thread_cond.c:68
#3 0xf7b130b2 in decaf::util::concurrent::Mutex::wait (this=0xa896f74, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
#4 0xf7b12fa5 in decaf::util::concurrent::Mutex::wait (this=0xa896f74) at decaf/util/concurrent/Mutex.cpp:82
#5 0xf7b145f6 in decaf::util::concurrent::CountDownLatch::await (this=0xa896f6c) at decaf/util/concurrent/CountDownLatch.cpp:53
#6 0xf7aaf0c5 in activemq::transport::filters::FutureResponse::getResponse (this=0xa896f68) at ./activemq/transport/filters/FutureResponse.h:60
#7 0xf7aacce2 in activemq::transport::filters::ResponseCorrelator::request (this=0xa195eb0, command=0xa249918) at activemq/transport/filters/ResponseCorrelator.cpp:93
#8 0xf7a7ba83 in activemq::connector::openwire::OpenWireFormatNegotiator::request (this=0xa1969c8, command=0xa249918) at activemq/connector/openwire/OpenWireFormatNegotiator.cpp:104
#9 0xf7a834f9 in activemq::connector::openwire::OpenWireConnector::syncRequest (this=0xa195f88, command=0xa249918, timeout=0) at activemq/connector/openwire/OpenWireConnector.cpp:1512
#10 0xf7a86599 in activemq::connector::openwire::OpenWireConnector::createProducer (this=0xa195f88, destination=0xa873de0, session=0xa0c48c8)
at activemq/connector/openwire/OpenWireConnector.cpp:641
#11 0xf7a16b78 in activemq::core::ActiveMQSession::createProducer (this=0xa0b7b48, destination=0xa873de0) at activemq/core/ActiveMQSession.cpp:346
which seems to have been triggered by:
2009-03-16 14:20:12,840 [rt: vm://null#2] WARN DemandForwardingBridge - Caught an exception processing local command
org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://null#3) disposed.
at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:87)
at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
at org.apache.activemq.network.DemandForwardingBridgeSupport.serviceLocalCommand(DemandForwardingBridgeSupport.java:652)
at org.apache.activemq.network.DemandForwardingBridgeSupport$1.onCommand(DemandForwardingBridgeSupport.java:147)
at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:104)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:205)
at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
this is with latest stable releases - any pointers appreciated (i.e. if this relates to other bugs or if I should open a new bug)
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Dario Laverde (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50597#action_50597 ]
Dario Laverde commented on AMQCPP-205:
--------------------------------------
activemq 5.2, activemq-cpp 2.2.3 - should I try later snapshots?
it's a deadlock that occurred after running for days and during heavy load, and again the only clue seems to have been the DemandForwardingBridge warning (I noticed there's a demand forwarding bug which may or not be related). The messaging is asynchronous by design with delivery mode is set to non-presistent and sessions created with auto-acknowledge
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47363#action_47363 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Sorry, I'm about to leave and I'll be connection-less until Monday.
I'll try that asap.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47356#action_47356 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Can't revert to 1.2.7 (rpm) because of the unmanaged change, remember?
decaf/internal/AprPool.cpp: In member function 'void decaf::internal::AprPool::allocatePool() const':
decaf/internal/AprPool.cpp:40: error: 'apr_pool_create_unmanaged' was not declared in this scope
Will go back to trunk on both machines
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47467#action_47467 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Hi!
This might not be related to our issue here, as I've disabled persistence on the broker and the following does not explain a Thread object reuse but in OpenwireCmsTemplate.h, inside the OpenwireCmsTemplateTest::Sender constructor:
{code}
Sender( const std::string& url, bool pubSub, const std::string& destName, int count ) {
cf.setBrokerURL(url);
cmsTemplate.setConnectionFactory(&cf);
cmsTemplate.setPubSubDomain(pubSub);
cmsTemplate.setDefaultDestinationName(destName);
cmsTemplate.setDeliveryPersistent(false);
this->count = count;
}
{code}
I think that *deliveryMode* is only used when *explicitQosEnabled* is enabled, which is not the default case (see *CmsTemplate::initDefaults()*)
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50612#action_50612 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
Its possible that the original problem we see here is due to this Broker issue as the stack traces tend to indicate that the client is waiting for messages but not getting any.
https://issues.apache.org/activemq/browse/AMQ-2009
Much of the internals of the CPP client have been rewritten in 3.0 so we'll need to try and see if the problem goes away once 3.0 is done.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47333#action_47333 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Hi there.
Running the CMSTemplate alone, with apr-1.3.3 and ActiveMQ 5.1 locked up (again with threads 2 and 3) during loop #16, in less than 5 minutes.
The broker has the attribute persistent="false" and the server is being restarted between tests, i.e.: nothing new, just a few details for anyone joining this thread now.
Timothy, I'm surprised by the loop number: I'm wondering if going back to apr 1.3.3 has anything to do with it or it was just good luck. I'll manage to have a few more tries, to confirm the change in the lock probability.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Martens updated AMQCPP-205:
-------------------------------------
Attachment: cmstemplate.segfault-1.log.gz
I've reproduced it twice, at loops #77 and #155. Not so sure now that there is a clear change on the frequency.
I did also experiment a segmentation fault, one I thought it was already solved.
I'm thinking about to retry with apr's trunk version - though I'll keep the binary and the dump file if you need them.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47446#action_47446 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
No pb., switching back to apr (trunk) - I think there are no major differences with 1.3.4, which is the current stable version.
I'll keep it testing, to see if we can get something new.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50579#action_50579 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
As far as the original issue goes, I've not been able to repeat it at all.
>From the stack trace posted at looks at least for the CPP client side that the client has sent a Message to the broker and is awaiting a response, and it looks like there isn't a send time-out set so it just going to wait forever, which is part of the flow control mechanism. So on the client side it doesn't look to me like there is anything wrong.
I'm not sure what the error on the broker is related to though, if you can reproduce it, then it might be worth opening on issue.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish updated AMQCPP-205:
--------------------------------
Fix Version/s: (was: 2.3)
3.0
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50611#action_50611 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Hi!
Dario, this issue is related to a specific integration test. As Timothy pointed out, it looks more like your server stopped responding. Check your activemq.log for exceptions or use "top" to see if your server is running out of memory. (If you find a way to reproduce it don't hesitate to open a new issue.)
There is a 2.2.4 release for activemq-cpp and a 5.2 for ActiveMQ. Trying an update is, IMHO, always the worth it.
Timothy, indeed, this curious deadlock may still happen (new build with 2.2.4) - don't know if this is actually interesting.
On loop #12 (CentOS)
{noformat}
Thread 3 (Thread 1096817552 (LWP 14095)):
#0 0x40000402 in __kernel_vsyscall ()
#1 0x00853256 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x4059ac1f in apr_thread_cond_wait (cond=0x9689248, mutex=0x967b210) at locks/unix/thread_cond.c:68
#3 0x40341229 in decaf::util::concurrent::Mutex::wait (this=0x96664a0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:118
#4 0x40340ee6 in decaf::util::concurrent::Mutex::wait (this=0x96664a0) at decaf/util/concurrent/Mutex.cpp:82
#5 0x40249f3c in activemq::core::ActiveMQSessionExecutor::run (this=0x9666488) at activemq/core/ActiveMQSessionExecutor.cpp:222
#6 0x4032868b in decaf::lang::Thread::runCallback (self=0x95db7b8, param=0x96666e8) at decaf/lang/Thread.cpp:125
#7 0x405aad48 in dummy_worker (opaque=0x95db7b8) at threadproc/unix/thread.c:142
#8 0x0084f45b in start_thread () from /lib/libpthread.so.0
#9 0x007a6e5e in clone () from /lib/libc.so.6
Thread 2 (Thread 1098918800 (LWP 14096)):
#0 0x40000402 in __kernel_vsyscall ()
#1 0x00853256 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x4059ac1f in apr_thread_cond_wait (cond=0x4114f070, mutex=0x967b210) at locks/unix/thread_cond.c:68
#3 0x40341229 in decaf::util::concurrent::Mutex::wait (this=0x96664a0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:118
#4 0x40340ee6 in decaf::util::concurrent::Mutex::wait (this=0x96664a0) at decaf/util/concurrent/Mutex.cpp:82
#5 0x40249f3c in activemq::core::ActiveMQSessionExecutor::run (this=0x9666488) at activemq/core/ActiveMQSessionExecutor.cpp:222
#6 0x4032868b in decaf::lang::Thread::runCallback (self=0x95db7b8, param=0x96666e8) at decaf/lang/Thread.cpp:125
#7 0x405aad48 in dummy_worker (opaque=0x95db7b8) at threadproc/unix/thread.c:142
#8 0x0084f45b in start_thread () from /lib/libpthread.so.0
#9 0x007a6e5e in clone () from /lib/libc.so.6
{noformat}
Best wishes,
Alex
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Alexander Martens (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47355#action_47355 ]
Alexander Martens commented on AMQCPP-205:
------------------------------------------
Okay, reverting to 1.2 in this machine.
I'll go back to the apr trunk at the other one (AMQCPP-199).
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47353#action_47353 ]
Timothy Bish commented on AMQCPP-205:
-------------------------------------
It may also be worthwhile to revert to whatever the default version of APR is that ships with the OS. 1.2.11 or something. That 1.2 versions has been around awhile and had time to mature, not sure what all they've done in the 1.3.x revision.
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 2.3
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AMQCPP-205) CmsTemplate testBasics test can hang
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQCPP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQCPP-205.
---------------------------------
Resolution: Fixed
I have not been able to recreate this issue on the 3.0 branch. I'm closing it for now, if it reoccurs we can revisit the issue,
> CmsTemplate testBasics test can hang
> ------------------------------------
>
> Key: AMQCPP-205
> URL: https://issues.apache.org/activemq/browse/AMQCPP-205
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Integration Tests
> Affects Versions: 2.2.1, 2.2.2
> Environment: CentOS / REHL
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Fix For: 3.0
>
> Attachments: cmstemplate.segfault-1.log.gz, receiving.187.log.gz
>
>
> Running the CmsTemplate integration tests in a loop can result in a hang. The code appears to be deadlocked when two threads that share the same instance of an ActiveMQSessionExecutor are run.
> This snippet from a backtrace shows the case:
> {noformat}
> Thread 3 (Thread 1094732688 (LWP 15620)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813a0, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> Thread 2 (Thread 1098935184 (LWP 15621)):
> #0 0x40000402 in __kernel_vsyscall ()
> #1 0x005ac266 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #2 0x4056c327 in apr_thread_cond_wait (cond=0x86813d8, mutex=0x40912ae8) at locks/unix/thread_cond.c:68
> #3 0x4031e458 in decaf::util::concurrent::Mutex::wait (this=0x409030c0, millisecs=4294967295) at decaf/util/concurrent/Mutex.cpp:116
> #4 0x4031e13e in decaf::util::concurrent::Mutex::wait (this=0x409030c0) at decaf/util/concurrent/Mutex.cpp:82
> #5 0x40238268 in activemq::core::ActiveMQSessionExecutor::run (this=0x409030a8) at activemq/core/ActiveMQSessionExecutor.cpp:222
> #6 0x4030589f in decaf::lang::Thread::runCallback (self=0x858f488, param=0x40902f08) at decaf/lang/Thread.cpp:121
> #7 0x4057aa1c in dummy_worker (opaque=0x858f488) at threadproc/unix/thread.c:142
> #8 0x005a846b in start_thread () from /lib/libpthread.so.0
> #9 0x004ffdbe in clone () from /lib/libc.so.6
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.