Comments (3)
@kydos, I have been able to reproduce this behaviour if I first stop the subscriber. Would that be consistent with your observations?
In that case I get the following deadlock:
2731 Thread_144215 DispatchQueue_1: com.apple.main-thread (serial)
+ 2731 start (in libdyld.dylib) + 1 [0x7fff6fc78085]
+ 2731 main (in ThroughputPublisher) + 381 [0x104c0500d] publisher.c:94
+ 2731 start_writing (in ThroughputPublisher) + 154 [0x104c0552a] publisher.c:244
+ 2731 dds_write (in libddsc.0.dylib) + 103 [0x104c9aef7] dds_write.c:44
+ 2731 dds_write_impl (in libddsc.0.dylib) + 653 [0x104c9b28d] dds_write.c:224
+ 2731 write_sample_gc (in libddsc.0.dylib) + 79 [0x104c68aaf] q_transmit.c:1140
+ 2731 write_sample_eot (in libddsc.0.dylib) + 750 [0x104c68dae] q_transmit.c:1028
+ 2731 os_mutexLock (in libddsc.0.dylib) + 85 [0x104cb4085] os_platform_sync.c:123
+ 2731 _pthread_mutex_firstfit_lock_slow (in libsystem_pthread.dylib) + 226 [0x7fff6fe684c7]
+ 2731 _pthread_mutex_firstfit_lock_wait (in libsystem_pthread.dylib) + 96 [0x7fff6fe6ada0]
+ 2731 __psynch_mutexwait (in libsystem_kernel.dylib) + 10 [0x7fff6fdb3872]
and
+ 2731 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff6fe69425]
+ 2731 _pthread_start (in libsystem_pthread.dylib) + 70 [0x7fff6fe6d2a7]
+ 2731 _pthread_body (in libsystem_pthread.dylib) + 126 [0x7fff6fe6a33d]
+ 2731 os_startRoutineWrapper (in libddsc.0.dylib) + 170 [0x104cb552a] os_posix_thread.c:176
+ 2731 create_thread_wrapper (in libddsc.0.dylib) + 62 [0x104c661ce] q_thread.c:179
+ 2731 gcreq_queue_thread (in libddsc.0.dylib) + 856 [0x104c34bb8] q_gc.c:156
+ 2731 gc_delete_proxy_reader (in libddsc.0.dylib) + 231 [0x104c337f7] q_entity.c:4351
+ 2731 writer_drop_connection (in libddsc.0.dylib) + 284 [0x104c3394c] q_entity.c:1314
+ 2731 dds_writer_status_cb (in libddsc.0.dylib) + 90 [0x104c7b67a] dds_writer.c:80
+ 2731 dds_entity_lock (in libddsc.0.dylib) + 151 [0x104c89af7] dds_entity.c:1034
+ 2731 os_mutexLock (in libddsc.0.dylib) + 85 [0x104cb4085] os_platform_sync.c:123
+ 2731 _pthread_mutex_firstfit_lock_slow (in libsystem_pthread.dylib) + 226 [0x7fff6fe684c7]
+ 2731 _pthread_mutex_firstfit_lock_wait (in libsystem_pthread.dylib) + 96 [0x7fff6fe6ada0]
+ 2731 __psynch_mutexwait (in libsystem_kernel.dylib) + 10 [0x7fff6fdb3872]
from cyclonedds.
@eboasson either stopping or not starting at all the sub seems to give the problem.
from cyclonedds.
Created #41 for the deadlock, closing this ticket now.
from cyclonedds.
Related Issues (20)
- DataWriter crashes when use Lifespan Qos HOT 1
- Request-Response mechanism support HOT 1
- cyclonedds (0.10.4 - ros2 humble) occasionally gets SIGSEGV HOT 7
- Why an RTPS packet could contain multiple fragments in cyclonedds HOT 1
- Sharing RSO2 Topic communication between containers operating on two Windows host machines A and B, each equipped with Docker
- How to silence ddsi_log, such as from GVERROR HOT 1
- Some questions about "dds_stream_write_keyBE" HOT 2
- Failing tests on the releases/0.10.x on Ubuntu 24.04 HOT 4
- dds_domain_set_deafmute block the thread "tev" HOT 1
- Why does the GC thread need to keep activating the RECV thread in the deaf scene HOT 2
- Why does the gc thread need to keep activating the recv thread in the deaf scene. HOT 2
- How to use cyclonedds cdrstream HOT 7
- Custom Serializer HOT 1
- IDL relative includes HOT 2
- Provides compression and decompression technology for large data transfers
- Does using Iceoryx integration still require fixed size data type? HOT 2
- The communication problem between "linux" and "windows" HOT 5
- The program exits abnormally when using the @optional or @external annotations HOT 1
- New release of the 0.10.x branch (probably 0.10.5) HOT 3
- Can the subscriber distinguish the message come from? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedds.