summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/msan/msan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/msan/msan.cc')
-rw-r--r--compiler-rt/lib/msan/msan.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/msan/msan.cc b/compiler-rt/lib/msan/msan.cc
index e0d1b6cef8c..e0bff820312 100644
--- a/compiler-rt/lib/msan/msan.cc
+++ b/compiler-rt/lib/msan/msan.cc
@@ -240,8 +240,10 @@ void __msan_init() {
if (!InitShadow(/* prot1 */false, /* prot2 */true, /* map_shadow */true,
__msan_track_origins)) {
// FIXME: prot1 = false is only required when running under DR.
- Printf("FATAL: MemorySanitizer can not mmap the shadow memory\n");
+ Printf("FATAL: MemorySanitizer can not mmap the shadow memory.\n");
Printf("FATAL: Make sure to compile with -fPIE and to link with -pie.\n");
+ Printf("FATAL: Disabling ASLR is known to cause this error.\n");
+ Printf("FATAL: If running under GDB, try 'set disable-randomization off'.\n");
DumpProcessMap();
Die();
}
OpenPOWER on IntegriCloud