I'm actively using this library and I often use "disconnect" and "connect" and creating new instances of moscapsule. Very often I get zombie thread, because of pthread_join has UB and thread freezes. How can I debug and fix this problem?
For reproducing don't need to make any special things, just connect to broker, send disconnect, create another one moscapsule entity, repeat steps and so on.
I'm actively using this library and I often use "disconnect" and "connect" and creating new instances of moscapsule. Very often I get zombie thread, because of
pthread_join
has UB and thread freezes. How can I debug and fix this problem? For reproducing don't need to make any special things, just connect to broker, send disconnect, create another one moscapsule entity, repeat steps and so on.