Bug 47502 - WebKit2 will leak shared memory if the web process crashes after the UI process tries to send it a handle to shared memory
Summary: WebKit2 will leak shared memory if the web process crashes after the UI proce...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-10-11 14:13 PDT by Adam Roben (:aroben)
Modified: 2011-05-25 22:44 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2010-10-11 14:13:09 PDT
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!
Comment 1 Adam Roben (:aroben) 2010-10-11 14:13:33 PDT
<rdar://problem/8537369>