VG_(di_notify_mmap): once we've read debuginfo for an object, ignore all further...
commite752326cc050803c3bcfde1f8606bead66ff9642
authorJulian Seward <jseward@acm.org>
Tue, 14 Aug 2018 08:13:46 +0000 (14 10:13 +0200)
committerJulian Seward <jseward@acm.org>
Tue, 14 Aug 2018 08:13:46 +0000 (14 10:13 +0200)
treeffdce49fb42f6a69777469606c6881988ebc65ae
parent7fe4ff55cce4c62f17262f2cf30b97b23af142b4
VG_(di_notify_mmap): once we've read debuginfo for an object, ignore all further mappings.  n-i-bz.

Once we've read debuginfo for an object, ignore all further mappings.  If we
don't do that, applications that mmap in their own objects to inspect them for
whatever reason, will cause "irrelevant" mappings to be recorded in the
object's fsm.maps table.  This can lead to serious problems later on.

This has become necessary because 64aa729bfae71561505a40c12755bd6b55bb3061 of
Thu Jul 12 2018 (the fix for bug 395682) started recording readonly segments
in the fsm.maps table, where before they were ignored.
coregrind/m_debuginfo/debuginfo.c