Skip to content

[RealtimeSanitizer] Problems with interceptor tests. #107988

@yingcong-wu

Description

@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?

  1. 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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions