WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
106768
m_initiatorMap has keys for already deleted CachedResources.
https://bugs.webkit.org/show_bug.cgi?id=106768
Summary
m_initiatorMap has keys for already deleted CachedResources.
Ilya Tikhonovsky
Reported
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
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug