mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
[MSAN] Fix test SmallPreAllocatedStackThread for MIPS
Summary: Msan was intercepting version 2.1 of the pthread_create function which was making it to crash in libc because __pthread_create_2_1 modifies the stack attributes of the thread. Intercepting the correct version fixes the test SmallPreAllocatedStackThread. Reviewers: eugenis, samsonov Subscribers: llvm-commits, mohit.bhakkad, jaydeep Differential: http://reviews.llvm.org/D17603 llvm-svn: 261980
This commit is contained in:
@@ -1629,7 +1629,11 @@ void InitializeInterceptors() {
|
||||
INTERCEPT_FUNCTION(getrusage);
|
||||
INTERCEPT_FUNCTION(sigaction);
|
||||
INTERCEPT_FUNCTION(signal);
|
||||
#if defined(__mips__)
|
||||
INTERCEPT_FUNCTION_VER(pthread_create, "GLIBC_2.2");
|
||||
#else
|
||||
INTERCEPT_FUNCTION(pthread_create);
|
||||
#endif
|
||||
INTERCEPT_FUNCTION(pthread_key_create);
|
||||
INTERCEPT_FUNCTION(pthread_join);
|
||||
INTERCEPT_FUNCTION(tzset);
|
||||
|
||||
Reference in New Issue
Block a user