Bug 105772

Summary: [Mac] MemoryPressureHandler: Occasional crashes in uninstall() when responding to memory pressure signal.
Product: WebKit Reporter: Andreas Kling <kling>
Component: WebCore Misc.Assignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, slewis
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch slewis: review+

Andreas Kling
Reported 2012-12-26 10:52:06 PST
I've seen a few null derefs in MemoryPressureHandler::uninstall() after sending synthetic memory pressure signals to WebKit. Looks like a race.
Attachments
Patch (2.03 KB, patch)
2012-12-26 11:01 PST, Andreas Kling
slewis: review+
Andreas Kling
Comment 1 2012-12-26 11:01:32 PST
Stephanie Lewis
Comment 2 2012-12-26 11:16:57 PST
Comment on attachment 180757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180757&action=review > Source/WebCore/platform/mac/MemoryPressureHandlerMac.mm:89 > + dispatch_source_cancel(_cache_event_source); It might be a good idea to check if _cache_event_source is not null.
Andreas Kling
Comment 3 2012-12-26 12:14:44 PST
David Kilzer (:ddkilzer)
Comment 4 2012-12-28 18:17:11 PST
Note You need to log in before you can comment on or make changes to this bug.