__atomic_compare_exchange_n is being invoked incorrectly (the new value is not meant to be a pointer). The attached patch makes things mostly work.
__atomic_ compare_ exchange_ n is being invoked incorrectly (the new value is not meant to be a pointer). The attached patch makes things mostly work.