Created attachment 143984 [details] testcase Similar to https://bugs.kde.org/show_bug.cgi?id=446138 Again on Fedora 34 This time it is pthread_rwlock_clockrdlock and pthread_rwlock_clockrwrlock that do not have intercepts. This gives several false positives e.g. Helgrind ==16048== Thread #3 unlocked lock at 0x406220 currently held by thread #1 ==16048== at 0x484A573: pthread_rwlock_unlock_WRK (hg_intercepts.c:2683) ==16048== by 0x484CA97: pthread_rwlock_unlock (hg_intercepts.c:2702) and DRD ==16064== Reader-writer lock not locked by calling thread: rwlock 0x406220. ==16064== at 0x486722B: pthread_rwlock_unlock_intercept (drd_pthread_intercepts.c:1855) ==16064== by 0x486722B: pthread_rwlock_unlock (drd_pthread_intercepts.c:1869)
Created attachment 143985 [details] initial patch Suggested patch for this and 446138
Created attachment 144011 [details] full patch with testcases Helgrind/DRD now function with this patch
Mark, you might want to backport this one on Fedora also.
Committed with commit c2607e093c54abe473b1d419cbdbba403cc87cdf