-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
compiler-rt:rtsanRealtime sanitizerRealtime sanitizer
Description
I found some problems when running the recent added test for realtime sanitizer interceptor.
- In my use case, I would enable
_FILE_OFFSET_BITS=64by 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?
- I use
Red Hat Enterprise Linux 9.0 (Plow)andUbuntu 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.
Metadata
Metadata
Assignees
Labels
compiler-rt:rtsanRealtime sanitizerRealtime sanitizer