[compiler-rt] [compiler-rt][rtsan] stat api interception. (PR #128430)
David CARLIER via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 23 15:00:30 PST 2025
devnexen wrote:
> Just double checking: Did you run these tests on mac? I only ask because I remember trying to implement these earlier last year and I had some problems on mac. The details are fuzzy now though...
>
> LGTM if tests are happy on mac :)
I tested on mac and only this unrelated test fails:
```shell
Input file: <stdin>
Check file: /Users/dcarlier/Contribs/llvm-project/compiler-rt/test/rtsan/fork_exec.cpp
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ==73392==ERROR: RealtimeSanitizer: unsafe-library-call
2: Intercepted call to real-time unsafe function `fork` in real-time context!
check:48'0 X error: no match found
3: #0 0x0001029cfc28 in fork rtsan_interceptors_posix.cpp:1366
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: #1 0x000102587d70 in main+0x24 (fork_exec.cpp.tmp:arm64+0x100003d70)
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: #2 0x0001937e4270 (<unknown module>)
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6:
check:48'0 ~
7: SUMMARY: RealtimeSanitizer: unsafe-library-call (fork_exec.cpp.tmp:arm64+0x100003d70) in main+0x24
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: ==73392==ERROR: RealtimeSanitizer: unsafe-library-call
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9: Intercepted call to real-time unsafe function `pthread_mutex_lock` in real-time context!
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:48'1 ? possible intended match
10: #0 0x0001029ceb6c in pthread_mutex_lock rtsan_interceptors_posix.cpp:750
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11: #1 0x000193b639ec in _pthread_atfork_prepare_handlers+0x58 (libsystem_pthread.dylib:arm64+0x69ec)
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12: #2 0x0001a172d498 in libSystem_atfork_prepare+0x1c (libSystem.B.dylib:arm64+0x1498)
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13: #3 0x000193a1b404 in fork+0x20 (libsystem_c.dylib:arm64+0x24404)
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14: #4 0x000102587d70 in main+0x24 (fork_exec.cpp.tmp:arm64+0x100003d70)
check:48'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
```
https://github.com/llvm/llvm-project/pull/128430
More information about the llvm-commits
mailing list