[ASan] Print out the shadow memory range on shadow mapping failures
llvm-svn: 226807
This commit is contained in:
parent
94cfbbab33
commit
841572e90a
|
|
@ -386,6 +386,8 @@ static void AsanInitInternal() {
|
|||
} else {
|
||||
Report("Shadow memory range interleaves with an existing memory mapping. "
|
||||
"ASan cannot proceed correctly. ABORTING.\n");
|
||||
Report("ASan shadow was supposed to be located in the [%p-%p] range.\n",
|
||||
shadow_start, kHighShadowEnd);
|
||||
DumpProcessMap();
|
||||
Die();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ int main() {
|
|||
scanf("%s", bigchunk);
|
||||
// CHECK-NOT: Hello, world!
|
||||
// CHECK: Shadow memory range interleaves with an existing memory mapping.
|
||||
// CHECK: ASan shadow was supposed to be located in the [0x3fff0000-0x{{.*}}ffff] range.
|
||||
// CHECK: Dumping process modules:
|
||||
// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}shadow_mapping_failure
|
||||
// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}kernel32.dll
|
||||
|
|
|
|||
Loading…
Reference in New Issue