This is an archive of the discontinued LLVM Phabricator instance.

[LSan] Fix one source of stale segments in the process memory mapping.
ClosedPublic

Authored by alekseyshl on Nov 27 2017, 4:00 PM.

Details

Summary

Load process memory map after updating the same cache to reflect the
umap happening in the process of updating.
Also clear out the buffer in case of failed read of /proc/self/maps (not
the source of stale segments, but can lead to the similar crash).

Event Timeline

alekseyshl created this revision.Nov 27 2017, 4:00 PM
eugenis accepted this revision.Nov 28 2017, 1:00 PM
This revision is now accepted and ready to land.Nov 28 2017, 1:00 PM
This revision was automatically updated to reflect the committed changes.