[LLVMbugs] [Bug 20918] New: [ASan/Win] SEH exceptions are not handled with the MD runtime in multi-module apps
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 12 04:05:50 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20918
Bug ID: 20918
Summary: [ASan/Win] SEH exceptions are not handled with the MD
runtime in multi-module apps
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: timurrrr at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
SEH exceptions are not handled with the MD runtime in multi-module apps.
Example test that fails with the -MD build:
$ cat test/asan/TestCases/Windows/dll_null_deref.cc
// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t
// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll
// RUN: not %run %t %t.dll 2>&1 | FileCheck %s
__attribute__((noinline))
static void NullDeref(int *ptr) {
// CHECK: ERROR: AddressSanitizer: access-violation on unknown address
// CHECK: {{0x0*000.. .*pc 0x.*}}
ptr[10]++; // BOOM
}
extern "C" __declspec(dllexport)
int test_function() {
NullDeref((int*)0);
// CHECK: {{ #1 0x.* in test_function .*\dll_null_deref.cc:}}[[@LINE-1]]
// CHECK: AddressSanitizer can not provide additional info.
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140912/cd5b2065/attachment.html>
More information about the llvm-bugs
mailing list