Hello,

We are using proton 0.27.0.
We are facing segfaults due to race conditions on the ref counting
mechanism of proton C at destruction time.

We are only using proton objects in the handler, however, at destruction
time, there is a race condition on the reference counter between the proton
objects from the main thread that are being destroyed, and the proton
objects held by the proton thread.

The reference counter not being atomic is very error prone for users.
How about transforming the int to an atomic int (already provided in C11
standard: https://en.cppreference.com/w/c/language/atomic)?

We can provide the patch if you are OK with it.

Best regards,
Rabih and Jeremy (Murex)

Reply via email to