Created attachment 321146 [details]
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.
Created attachment 322411 [details]
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
Comment on attachment 322411 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=322411&action=review
> +2017-10-02 Carlos Garcia Campos <email@example.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
Committed r222735: <http://trac.webkit.org/changeset/222735>
*** Bug 175870 has been marked as a duplicate of this bug. ***