File tree Expand file tree Collapse file tree 7 files changed +9
-18
lines changed Expand file tree Collapse file tree 7 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 8
8
// RUN: %env_lsan_opts=$LSAN_BASE:use_tls=1 %run %t
9
9
// RUN: %env_lsan_opts=$LSAN_BASE:use_tls=0 not %run %t 2>&1 | FileCheck %s
10
10
11
- // Investigate why it does not fail with use_stack=0
12
- // UNSUPPORTED: arm-linux || armhf-linux
13
-
14
11
#include <assert.h>
15
12
#include <pthread.h>
16
13
#include <stdio.h>
Original file line number Diff line number Diff line change 5
5
// RUN: %env_lsan_opts=$LSAN_BASE:"use_tls=1" %run %t 2>&1
6
6
// RUN: %env_lsan_opts="" %run %t 2>&1
7
7
8
- // Investigate why it does not fail with use_tls=0
9
- // UNSUPPORTED: arm-linux || armhf-linux
10
-
11
8
#include < assert.h>
12
9
#include < pthread.h>
13
10
#include < stdio.h>
Original file line number Diff line number Diff line change 3
3
// RUN: %clang_lsan %s -o %t
4
4
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t 2>&1 | FileCheck %s
5
5
6
- // Investigate why it does not fail with use_stack=0
7
- // UNSUPPORTED: arm-linux || armhf-linux
8
-
9
6
#include <stdio.h>
10
7
#include <stdlib.h>
11
8
Original file line number Diff line number Diff line change 6
6
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t 2>&1 | FileCheck --check-prefix=CHECK-strict %s
7
7
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t foo 2>&1 | FileCheck --check-prefix=CHECK-normal %s
8
8
9
- // Investigate why LeakyGlobal leak does show
10
- // UNSUPPORTED: arm-linux || armhf-linux
11
-
12
9
#include < stdio.h>
13
10
#include < stdlib.h>
14
11
#include < sanitizer/lsan_interface.h>
Original file line number Diff line number Diff line change 3
3
// RUN: %clang_lsan %s -o %t
4
4
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t 2>&1 | FileCheck %s
5
5
6
- // Investigate why it does not fail with use_stack=0
7
- // UNSUPPORTED: arm-linux || armhf-linux
8
-
9
6
#include <stdio.h>
10
7
#include <stdlib.h>
11
8
Original file line number Diff line number Diff line change 6
6
// RUN: ASAN_OPTIONS=$ASAN_OPTIONS:detect_stack_use_after_return=1 %env_lsan_opts=$LSAN_BASE:"use_stacks=1" %run %t 2>&1
7
7
// RUN: ASAN_OPTIONS=$ASAN_OPTIONS:detect_stack_use_after_return=1 %env_lsan_opts="" %run %t 2>&1
8
8
9
- // Investigate why it does not fail with use_stack=0
10
- // UNSUPPORTED: arm-linux || armhf-linux
11
-
12
9
#include < stdio.h>
13
10
#include < stdlib.h>
14
11
#include " sanitizer_common/print_address.h"
Original file line number Diff line number Diff line change @@ -76,6 +76,15 @@ foreach(tool ${SUPPORTED_TOOLS})
76
76
set (SANITIZER_COMMON_TEST_TARGET_ARCH ${arch} )
77
77
get_test_cc_for_arch (${arch} SANITIZER_COMMON_TEST_TARGET_CC SANITIZER_COMMON_TEST_TARGET_CFLAGS )
78
78
set (CONFIG_NAME ${tool} -${arch}-${OS_NAME} )
79
+
80
+ # ARM on Linux might use the slow unwinder as default and the unwind table is
81
+ # required to get a complete stacktrace.
82
+ if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Linux" AND NOT ANDROID )
83
+ list (APPEND SANITIZER_COMMON_TEST_TARGET_CFLAGS -funwind-tables )
84
+ string (REPLACE ";" " " SANITIZER_COMMON_TEST_TARGET_CFLAGS
85
+ "${SANITIZER_COMMON_TEST_TARGET_CFLAGS} " )
86
+ endif ()
87
+
79
88
configure_lit_site_cfg (
80
89
${CMAKE_CURRENT_SOURCE_DIR} /lit.site.cfg.py.in
81
90
${CMAKE_CURRENT_BINARY_DIR} /${CONFIG_NAME}/lit.site.cfg.py )
You can’t perform that action at this time.
0 commit comments