| Summary: | Web Inspector: Avoid too early deref caused by RemoteInspectorXPCConnection::close | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, timothy, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
Created attachment 225713 [details]
[PATCH] Proposed Fix
Comment on attachment 225713 [details] [PATCH] Proposed Fix Clearing flags on attachment: 225713 Committed r165040: <http://trac.webkit.org/changeset/165040> All reviewed patches have been landed. Closing bug. |
Overall, the multithreaded aspects of RemoteInspectorXPCConnection are too complicated. This should be simplified in someway. For now, address a couple possible issues: - multithreaded access to m_client (close(), and XPC event handler) - deref too early in close(), if close() is called, we will receive another XPC event (XPC_ERROR) - so deref after we receive the XPC_ERROR event