Move madvise(MADV_NOHUGEPAGE) for the meta shadow memory after the meta
shadow memory is mapped (currently it silently fails with ENOMEM).
Add a diagnostic message to detect similar problems in the future.
Paths
| Differential D48097
[TSan] Fix madvise(MADV_NOHUGEPAGE) for meta shadow memory ClosedPublic Authored by alekseyshl on Jun 12 2018, 2:26 PM.
Details Summary Move madvise(MADV_NOHUGEPAGE) for the meta shadow memory after the meta Add a diagnostic message to detect similar problems in the future.
Diff Detail
Event TimelineHerald added subscribers: Restricted Project, delcypher, kubamracek. · View Herald TranscriptJun 12 2018, 2:26 PM
This revision is now accepted and ready to land.Jun 13 2018, 8:03 AM Comment Actions Thanks!
Closed by commit rL334624: [TSan] Fix madvise(MADV_NOHUGEPAGE) for meta shadow memory (authored by alekseyshl). · Explain WhyJun 13 2018, 10:23 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 151032 lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_posix_libcdep.cc
lib/sanitizer_common/sanitizer_win.cc
lib/tsan/rtl/tsan_platform_posix.cc
|
If we want to notice this in future we need to Die.
We never print anything unless there is a bug in program, or we terminate the program. Altered output breaks programs in surprising ways (consider altering output of protoc). Also if this happened in chrome or in our server code base all the time, we will never notice a warning line in output and nobody will notify us.