Bug 486914

Summary: musl: all helgrind testcases fail
Product: [Developer tools] valgrind Reporter: Paul Floyd <pjfloyd>
Component: helgrindAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.24 GIT   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul Floyd 2024-05-12 07:39:15 UTC
There are at least 3 problems.

1. The redirects for Linux glibc often have @*, musl doesn't. Need to add musl-specific redirects.
2. As a consequence of 2. the expecteds all contain @*. For FreeBSD I added an awk filter to add the required @*, should be possible to reuse the filter.
3. pthread_rwlock functions are implemented in using other public  pthread_rwlock functions, e.g.

https://elixir.bootlin.com/musl/latest/source/src/thread/pthread_rwlock_rdlock.c

   which causes spurious recursive lock warnings. Only the innermost function should be redirected (not great for error messages).