Bug 49129

Summary: [Qt][WK2] WebKitTestRunner is dead
Product: WebKit Reporter: Balazs Kelemen <kbalazs>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

Description Balazs Kelemen 2010-11-06 12:26:14 PDT
Poor WTR is always crashing on termination. This is a regression since r71409.
The killer is me. In r71409 I haved connected the QSharedMemory object's deleteLater
slot to QCoreApplication::aboutToQuit to force deletion when the SharedMemory is
leaking on termination. The unsafeness of this approach is appearing when the SharedMemory's
dtor is called after aboutToQuit had been emitted. In that case we are trying to delete an
already deleted object and ending up in a crash. This is the situation in WTR when the UI process
is terminating. (Ok, it is not really a UI process).
Comment 1 Balazs Kelemen 2010-11-06 14:49:11 PDT
Created attachment 73177 [details]
Patch
Comment 2 Balazs Kelemen 2010-11-06 14:50:41 PDT
No crashes in run-webkit-tests.
Comment 3 Balazs Kelemen 2010-11-06 18:23:50 PDT
Comment on attachment 73177 [details]
Patch

Clearing flags on attachment: 73177

Committed r71471: <http://trac.webkit.org/changeset/71471>
Comment 4 Balazs Kelemen 2010-11-06 18:23:58 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Balazs Kelemen 2010-11-06 18:24:46 PDT
Thanks for the nightly review! :)
Comment 6 Balazs Kelemen 2010-11-09 04:20:32 PST
The ASSERT need to be moved in the if as well...
Crashing in fast/frames/iframe-reparenting-new-page.html
Comment 7 Balazs Kelemen 2010-11-09 04:32:13 PST
Created attachment 73357 [details]
Patch
Comment 8 Andreas Kling 2010-11-09 04:39:06 PST
Comment on attachment 73357 [details]
Patch

D'oh, r=me
Comment 9 Balazs Kelemen 2010-11-09 04:53:52 PST
Comment on attachment 73357 [details]
Patch

Clearing flags on attachment: 73357

Committed r71624: <http://trac.webkit.org/changeset/71624>
Comment 10 Balazs Kelemen 2010-11-09 04:54:01 PST
All reviewed patches have been landed.  Closing bug.