flightonary / Moscapsule

MQTT Client for iOS written in Swift
MIT License
273 stars 69 forks source link

Problems with pthread_join #51

Closed AlexIzh closed 7 years ago

AlexIzh commented 7 years ago

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.

screen shot 2017-01-20 at 4 16 15 pm
AlexIzh commented 7 years ago

problem place is thread_mosc.c file and 65 line

AlexIzh commented 7 years ago

@flightonary do you have any ideas? why could it be?

AlexIzh commented 7 years ago

problem is found, fix will be available soon