Bug 55865 - [EFL] Crash on quit when the Web Inspector debugger is paused
Summary: [EFL] Crash on quit when the Web Inspector debugger is paused
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-03-07 02:13 PST by Mikołaj Małecki
Modified: 2017-03-11 10:35 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikołaj Małecki 2011-03-07 02:13:55 PST
The crash happens when Web Inspector is on and javascript is paused. In this case, the debugger calls WebCore::ScriptDebugServer::pauseIfNeeded(), and inside it enters another level of event loop. The problem is that once the loop is exited, the state of data, especially *page->group()->pages().begin(), is unstable, and this page is probably during destruction process or it may even be a dangling pointer. This way, when setJavaScriptPaused with this page results in crash.

I suspect the system doesn't predict that the event loop may happen to be exited in this function instead of the main event loop in the application that uses webkit.

This behavior can be reproduced with WebKit-efl, as well as with Arora [Webkit-Qt] (although I haven't observed it with Rekonq [Webkit-KDE]):

1. Run Arora with any page (preferably under gdb because without it the crash may be unable to be observed)
2. Open Web Inspector
3. Click "Scripts" and pause javascript (make sure that you can see the backtrace)
4. Close the Arora window

I know you can think that it's insignificant that a crash happens when you close the program. The problem is, though, that this problem occurs also when you close a widget realized by WRT engine, and in this case the whole WRT engine crashes, not only the widget being closed.
Comment 1 Daniel Bates 2011-03-18 19:32:29 PDT

*** This bug has been marked as a duplicate of bug 44230 ***
Comment 2 Timothy Hatcher 2011-04-01 13:54:24 PDT
I don't think this is a dupe of bug 44230, that bug is about Mac and about closign the window. This is abotu EFL and Qt in Arora.
Comment 3 Timothy Hatcher 2011-04-01 13:55:46 PDT
Reopening.
Comment 4 Blaze Burg 2014-01-25 16:00:13 PST
Is this still an issue? Migrating to new component.
Comment 5 Radar WebKit Bug Importer 2014-01-25 16:00:44 PST
<rdar://problem/15909919>
Comment 6 Michael Catanzaro 2017-03-11 10:35:48 PST
Closing this bug because the EFL port has been removed from trunk.

If you feel this bug applies to a different upstream WebKit port and was closed in error, please either update the title and reopen the bug, or leave a comment to request this.