Bug 47502
Summary: | WebKit2 will leak shared memory if the web process crashes after the UI process tries to send it a handle to shared memory | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> |
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | andersca, liqiong.hao |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Adam Roben (:aroben)
Consider the following scenario:
1. UI process creates some shared memory via SharedMemory::create
2. UI process sends the shared memory to the web process
3. Before the web process receives the shared memory, the web process crashes
At this point, the shared memory has an extra handle open to it (created in step 2) that has been lost and will never be closed. This will result in leaking the shared memory!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Roben (:aroben)
<rdar://problem/8537369>