Bug 486914 - musl: all helgrind testcases fail
Summary: musl: all helgrind testcases fail
Status: RESOLVED UNMAINTAINED
Alias: None
Product: valgrind
Classification: Developer tools
Component: helgrind (other bugs)
Version First Reported In: 3.24 GIT
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-12 07:39 UTC by Paul Floyd
Modified: 2024-10-10 05:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).