[PATCH] Fix the atomic_compare_and_exchange_*_rel definitions.
Tulio Magno Quites Machado Filho
tuliom@linux.vnet.ibm.com
Mon Jun 13 14:19:00 GMT 2016
Hi Lei,
Lei Xu <lei.xu@nxp.com> writes:
> In current code, atomic_compare_and_exchange_*_rel is defined as
> atomic_compare_and_exchange_*_acq, however this is wrong on power arch,
> especially __arch_*_rel has been defined on power arch.
> This has caused segmentation fault issue
> when doing pthread_mutex_lock/unlock operations on PowerPC E6500.
I didn't expect the generic code to affect a PowerPC E6500 build.
It should be using both of the files:
sysdeps/powerpc/atomic-machine.h
sysdeps/powerpc/powerpc32/atomic-machine.h
These files define atomic_compare_and_exchange_val_rel(), which should
prevent from defining the atomic_compare_and_exchange_val_rel() as
atomic_compare_and_exchange_val_acq() in the generic file.
So, there is a chance your build didn't use these files...
How are you configuring your glibc build?
--
Tulio Magno
More information about the Libc-alpha
mailing list