[compiler-rt] r294001 - [lsan] Disable sem_init_glibc.cc testcase for LSan x86.

Maxim Ostapenko via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 03:57:27 PST 2017

Author: chefmax
Date: Fri Feb  3 05:57:26 2017
New Revision: 294001

URL: http://llvm.org/viewvc/llvm-project?rev=294001&view=rev
[lsan] Disable sem_init_glibc.cc testcase for LSan x86.

This test relies on sanitizer common interceptor to pick the oldest version of
sem_init function from Glibc. But LSan actually doesn't intercept sem_init, thus
the new implementation is called that causes test failure. Disable it for LSan x86,
the proper fix would require to check Glibc version at runtime and adjust
GET_SEM_VALUE(V) accordingly. 


Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc?rev=294001&r1=294000&r2=294001&view=diff
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc Fri Feb  3 05:57:26 2017
@@ -1,7 +1,7 @@
 // RUN: %clangxx -O0 -g %s -lutil -o %t && %run %t
 // This test depends on the glibc layout of struct sem_t and checks that we
 // don't leave sem_t::private uninitialized.
-// UNSUPPORTED: android
+// UNSUPPORTED: android, lsan-x86
 #include <features.h>
 #include <assert.h>
 #include <semaphore.h>

More information about the llvm-commits mailing list