WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
177107
[WPE][GTK] Crash in webkit_web_resource_get_data_finish()
https://bugs.webkit.org/show_bug.cgi?id=177107
Summary
[WPE][GTK] Crash in webkit_web_resource_get_data_finish()
Michael Catanzaro
Reported
2017-09-18 16:06:29 PDT
Created
attachment 321146
[details]
Backtrace I don't know how to reproduce this crash, but it occurred for me once today when I had broken WebKit so badly that resource loads never finished, started loading something, and used Ctrl+C. Backtrace attached. The problem is that resourceDataCallback always returns a success result with g_task_return_boolean(), but that's wrong if the callback was canceled. It should probably check if wkData is nullptr and use g_task_return_error() in that case.
Attachments
Backtrace
(9.94 KB, text/plain)
2017-09-18 16:06 PDT
,
Michael Catanzaro
no flags
Details
Patch
(6.94 KB, patch)
2017-10-02 12:38 PDT
,
Carlos Garcia Campos
mcatanzaro
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-10-02 12:38:11 PDT
Created
attachment 322411
[details]
Patch
Build Bot
Comment 2
2017-10-02 12:40:21 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Michael Catanzaro
Comment 3
2017-10-02 12:45:10 PDT
Comment on
attachment 322411
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=322411&action=review
Nice test
> Source/WebKit/ChangeLog:25 > +2017-10-02 Carlos Garcia Campos <
cgarcia@igalia.com
> > + > + [GTK][WPE] WebProcess should run cleanup on quit to release resources > +
https://bugs.webkit.org/show_bug.cgi?id=168126
> + > + Reviewed by NOBODY (OOPS!). > + > + Do not call exit on sync message send failure for GTK and WPE ports. > + > + * WebProcess/WebProcess.cpp: > + (WebKit::WebProcess::initializeConnection): > +
Fix the changelog
Carlos Garcia Campos
Comment 4
2017-10-02 12:48:47 PDT
Committed
r222735
: <
http://trac.webkit.org/changeset/222735
>
Carlos Garcia Campos
Comment 5
2017-10-04 03:44:42 PDT
***
Bug 175870
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug