Bug 106768 - m_initiatorMap has keys for already deleted CachedResources.
Summary: m_initiatorMap has keys for already deleted CachedResources.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 01:56 PST by Ilya Tikhonovsky
Modified: 2013-01-14 01:56 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2013-01-14 01:56:09 PST
I fixed instrumentation for CachedResourceLoader (added m_initiatorMap in reportMemoryUsage method)
As a result I got a crash in inspector-protocol/nmi-webaudio-leak-test.html layout test.
It happened because Native Memory profiler iterates through instrumented objects members
and all container values. In the current case it iterates through the keys
in m_initiatorMap  and visits them. Looks like the lifetime of the map doesn't
correlates with the lifetime of the CachedResources.

Usually it crashes when profiler visits a document from a previous test.
It happens almost always because DRT doesn't forces GC between tests.

https://bugs.webkit.org/attachment.cgi?id=182522&action=review