celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] mdelangthales commented on issue #205: psa_zmq command stuck
Date Wed, 06 May 2020 09:17:21 GMT

mdelangthales commented on issue #205:
URL: https://github.com/apache/celix/issues/205#issuecomment-624534963


   Potential deadlock in subscriber:
   ```
   ==================
   WARNING: ThreadSanitizer: lock-order-inversion (potential deadlock) (pid=36614)
     Cycle in lock order graph: M254 (0x7b4400000bc0) => M176 (0x7b4c000011e8) => M254
   
     Mutex M176 acquired here while holding mutex M254 in thread T5:
       #0 pthread_mutex_lock ../../../../gcc-8.3.1-20190507/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3799
(libtsan.so.0+0x404eb)
       #1 pubsub_topologyManager_subscriberAdded bundles/pubsub/pubsub_topology_manager/src/pubsub_topology_manager.c:332
(libcelix_pubsub_topology_manager.so.1+0x5880)
   
     Mutex M254 previously acquired by the same thread here:
       #0 pthread_mutex_lock ../../../../gcc-8.3.1-20190507/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3799
(libtsan.so.0+0x404eb)
       #1 pubsub_zmqAdmin_setupTopicSender bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_admin.c:468
(libcelix_pubsub_admin_zmq.so.1+0x64f4)
   
     Mutex M254 acquired here while holding mutex M176 in thread T5:
       #0 pthread_mutex_lock ../../../../gcc-8.3.1-20190507/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3799
(libtsan.so.0+0x404eb)
       #1 pubsub_zmqAdmin_setupTopicReceiver bundles/pubsub/pubsub_admin_zmq/src/pubsub_zmq_admin.c:562
(libcelix_pubsub_admin_zmq.so.1+0x68c7)
   
     Mutex M176 previously acquired by the same thread here:
       #0 pthread_mutex_lock ../../../../gcc-8.3.1-20190507/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3799
(libtsan.so.0+0x404eb)
       #1 pstm_setupTopicReceivers bundles/pubsub/pubsub_topology_manager/src/pubsub_topology_manager.c:887
(libcelix_pubsub_topology_manager.so.1+0x3e0b)
       #2 pstm_psaHandlingThread bundles/pubsub/pubsub_topology_manager/src/pubsub_topology_manager.c:972
(libcelix_pubsub_topology_manager.so.1+0x3e0b)
   
     Thread T5 'PubSub TopologyManager' (tid=36621, running) created by main thread at:
       #0 pthread_create ../../../../gcc-8.3.1-20190507/libsanitizer/tsan/tsan_interceptors.cc:915
(libtsan.so.0+0x2ed1b)
       #1 celixThread_create libs/utils/src/celix_threads.c:37 (libcelix_utils.so.2+0x8f5c)
       #2 __libc_start_main <null> (libc.so.6+0x348ec1ed1f)
   
   SUMMARY: ThreadSanitizer: lock-order-inversion (potential deadlock) bundles/pubsub/pubsub_topology_manager/src/pubsub_topology_manager.c:332
in pubsub_topologyManager_subscriberAdded
   ==================
   ```


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



Mime
View raw message