[PATCH] D90628: [lsan] Disable some LSAN tests for arm-linux-gnueabi{hf}
Adhemerval Zanella via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 09:53:18 PST 2020
zatrazz created this revision.
zatrazz added reviewers: dvyukov, kcc.
zatrazz added a project: Sanitizers.
Herald added subscribers: Sanitizers, kristof.beyls.
zatrazz requested review of this revision.
The tests do not report the expected leak when issued with use_stack
or use_tls option equal to 0 on arm-linux-gnueabihf (ubuntu 18.04,
glibc 2.27).
This issue is being tracked by https://bugs.llvm.org/show_bug.cgi?id=48052
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90628
Files:
compiler-rt/test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c
compiler-rt/test/lsan/TestCases/Linux/use_tls_pthread_specific_dynamic.cpp
compiler-rt/test/lsan/TestCases/disabler.c
compiler-rt/test/lsan/TestCases/do_leak_check_override.cpp
compiler-rt/test/lsan/TestCases/ignore_object.c
compiler-rt/test/lsan/TestCases/use_after_return.cpp
Index: compiler-rt/test/lsan/TestCases/use_after_return.cpp
===================================================================
--- compiler-rt/test/lsan/TestCases/use_after_return.cpp
+++ compiler-rt/test/lsan/TestCases/use_after_return.cpp
@@ -6,6 +6,9 @@
// RUN: ASAN_OPTIONS=$ASAN_OPTIONS:detect_stack_use_after_return=1 %env_lsan_opts=$LSAN_BASE:"use_stacks=1" %run %t 2>&1
// RUN: ASAN_OPTIONS=$ASAN_OPTIONS:detect_stack_use_after_return=1 %env_lsan_opts="" %run %t 2>&1
+// Investigate why it does not fail with use_stack=0
+// UNSUPPORTED: arm-linux || armhf-linux
+
#include <stdio.h>
#include <stdlib.h>
#include "sanitizer_common/print_address.h"
Index: compiler-rt/test/lsan/TestCases/ignore_object.c
===================================================================
--- compiler-rt/test/lsan/TestCases/ignore_object.c
+++ compiler-rt/test/lsan/TestCases/ignore_object.c
@@ -3,6 +3,9 @@
// RUN: %clang_lsan %s -o %t
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t 2>&1 | FileCheck %s
+// Investigate why it does not fail with use_stack=0
+// UNSUPPORTED: arm-linux || armhf-linux
+
#include <stdio.h>
#include <stdlib.h>
Index: compiler-rt/test/lsan/TestCases/do_leak_check_override.cpp
===================================================================
--- compiler-rt/test/lsan/TestCases/do_leak_check_override.cpp
+++ compiler-rt/test/lsan/TestCases/do_leak_check_override.cpp
@@ -6,6 +6,9 @@
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t 2>&1 | FileCheck --check-prefix=CHECK-strict %s
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t foo 2>&1 | FileCheck --check-prefix=CHECK-normal %s
+// Investigate why LeakyGlobal leak does show
+// UNSUPPORTED: arm-linux || armhf-linux
+
#include <stdio.h>
#include <stdlib.h>
#include <sanitizer/lsan_interface.h>
Index: compiler-rt/test/lsan/TestCases/disabler.c
===================================================================
--- compiler-rt/test/lsan/TestCases/disabler.c
+++ compiler-rt/test/lsan/TestCases/disabler.c
@@ -3,6 +3,9 @@
// RUN: %clang_lsan %s -o %t
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t 2>&1 | FileCheck %s
+// Investigate why it does not fail with use_stack=0
+// UNSUPPORTED: arm-linux || armhf-linux
+
#include <stdio.h>
#include <stdlib.h>
Index: compiler-rt/test/lsan/TestCases/Linux/use_tls_pthread_specific_dynamic.cpp
===================================================================
--- compiler-rt/test/lsan/TestCases/Linux/use_tls_pthread_specific_dynamic.cpp
+++ compiler-rt/test/lsan/TestCases/Linux/use_tls_pthread_specific_dynamic.cpp
@@ -5,6 +5,9 @@
// RUN: %env_lsan_opts=$LSAN_BASE:"use_tls=1" %run %t 2>&1
// RUN: %env_lsan_opts="" %run %t 2>&1
+// Investigate why it does not fail with use_tls=0
+// UNSUPPORTED: arm-linux || armhf-linux
+
#include <assert.h>
#include <pthread.h>
#include <stdio.h>
Index: compiler-rt/test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c
===================================================================
--- compiler-rt/test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c
+++ compiler-rt/test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c
@@ -8,6 +8,9 @@
// RUN: %env_lsan_opts=$LSAN_BASE:use_tls=1 %run %t
// RUN: %env_lsan_opts=$LSAN_BASE:use_tls=0 not %run %t 2>&1 | FileCheck %s
+// Investigate why it does not fail with use_stack=0
+// UNSUPPORTED: arm-linux || armhf-linux
+
#include <assert.h>
#include <pthread.h>
#include <stdio.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90628.302323.patch
Type: text/x-patch
Size: 3434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201102/daf04e32/attachment.bin>
More information about the llvm-commits
mailing list