Skip to content

Commit 307daa7

Browse files
committed
[ASan] Only run dlopen-mixed-c-cxx.c with static runtime
This is what the original bug (http://llvm.org/PR39641) and the fix in https://reviews.llvm.org/D63877 have been about. With the dynamic runtime the test only passes when the asan library is linked against libstdc++: In contrast to libc++abi, it does not implement __cxa_rethrow_primary_exception so the regex matches the line saying that asan cannot intercept this function. Indeed, there is no message that the runtime failed to intercept __cxa_throw. Differential Revision: https://reviews.llvm.org/D67298 llvm-svn: 371336
1 parent 14f1990 commit 307daa7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
//
44
// RUN: { env ASAN_OPTIONS=verbosity=1 %t.out %t.so || : ; } 2>&1 | FileCheck %s
55
//
6-
// CHECK: {{.*}}AddressSanitizer: failed to intercept '__cxa_{{.*}}throw{{.*}}'
6+
// CHECK: AddressSanitizer: failed to intercept '__cxa_throw'
77
//
8-
// REQUIRES: x86_64-target-arch && !android
8+
// This tests assumes static linking of the asan runtime.
9+
// UNSUPPORTED: asan-dynamic-runtime
910

1011
#ifdef __cplusplus
1112

0 commit comments

Comments
 (0)