Issue 107988
Summary [RealtimeSanitizer] Problems with interceptor tests.
Labels new issue
Assignees
Reporter yingcong-wu
    I found some problems when running the recent added test for realtime sanitizer interceptor.

1. In my use case, I would enable `_FILE_OFFSET_BITS=64` by default, then the following test would fail because they don't have the 64bit version. 
```
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanOpenedFileTest/PreadDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanOpenedFileTest/PwriteDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanFileTest/CreatDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanFileTest/FcntlFlockDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanFileTest/FcntlSetFdDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanFileTest/FopenDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanFileTest/OpenDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/RtsanFileTest/OpenatDiesWhenRealtime
RealtimeSanitizer-Unit::./Rtsan-x86_64-Test/TestRtsanInterceptors/FcntlDiesWhenRealtime
```
Do we have plan to add the 64bit version of those functions to interceptors?

2. I use `Red Hat Enterprise Linux 9.0 (Plow)` and `Ubuntu 22.04 LTS`, and the following code will work fine with Ubuntu and will segment fault for the redhat.
```
#include <pthread.h>
int main() {
    pthread_t thread{};
    pthread_join(thread, nullptr);
 return 0;
}
```
Therefore test case PthreadMutexJoinDiesWhenRealtime would segment fault when I test it on the RedHat 9.

CC @cjappl.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to