Bug 106768
Summary: | m_initiatorMap has keys for already deleted CachedResources. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ilya Tikhonovsky <loislo> |
Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | japhet, simonjam, vsevik |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ilya Tikhonovsky
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |