celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] mdelangthales opened a new issue #141: Deadlock on celix_frameworkFactory_destroyFramework
Date Tue, 21 Jan 2020 12:13:50 GMT
mdelangthales opened a new issue #141: Deadlock on celix_frameworkFactory_destroyFramework
URL: https://github.com/apache/celix/issues/141
 
 
   When no open requests are present, the `celix_frameworkFactory_destroyFramework` has a
chance of deadlocking.
   
   ```
   Thread 1 "generic_journal" received signal SIGINT, Interrupt.
   0x00007fe06102bfd7 in pthread_join () from /lib64/libpthread.so.0
   (gdb) thread apply all bt
   
   Thread 10 (Thread 0x7fe06073c700 (LWP 55610)):
   #0  0x00007fe06102e9f5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
   #1  0x00007fe06234948c in celixThreadCondition_wait (cond=0xc046e8, mutex=0xc04728) at
_localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/utils/src/celix_threads.c:156
   #2  0x00007fe06351d373 in fw_eventDispatcher (fw=0xc04580) at _localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/framework/src/framework.c:2275
   #3  0x00007fe06102ae65 in start_thread () from /lib64/libpthread.so.0
   #4  0x00007fe060d5388d in clone () from /lib64/libc.so.6
   
   Thread 1 (Thread 0x7fe063f85ec0 (LWP 55600)):
   #0  0x00007fe06102bfd7 in pthread_join () from /lib64/libpthread.so.0
   #1  0x00007fe062349210 in celixThread_join (thread=..., retVal=0x0) at _localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/utils/src/celix_threads.c:69
   #2  0x00007fe06351d80e in frameworkActivator_stop (userData=0x0, context=0xc128b0) at _localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/framework/src/framework.c:2381
   #3  0x00007fe06351a3e9 in fw_stopBundle (framework=0xc04580, bundle=0xc15cb0, record=true)
at _localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/framework/src/framework.c:1131
   #4  0x00007fe063519008 in framework_stop (framework=0xc04580) at _localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/framework/src/framework.c:701
   #5  0x00007fe06352da6c in celix_frameworkFactory_destroyFramework (fw=0xc04580) at _localwork/Programming/build_tooling/lib_builder/celix/celix-src/libs/framework/src/celix_framework_factory.c:44
   #6  0x0000000000415142 in IntegrationTestSuite::~IntegrationTestSuite (this=0xc03510, __in_chrg=<optimized
out>) at GenericJournalAdminIntegrationTests.cc:57
   ...
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message