[Webkit-unassigned] [Bug 200222] webkit_cookie_manager_get_cookies gives segmentation fault

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 29 10:29:22 PDT 2019


Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |mcatanzaro at igalia.com
         Resolution|---                         |WONTFIX

--- Comment #1 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Problem is you can't use WebKit functions on a secondary thread like you're trying to do. It must only be used on the thread that called gtk_init(). Similarly, you need to make sure you only use GTK from the GTK thread. As a rule, most Linux libraries are not threadsafe unless documented otherwise.

You can still do long-running work on a secondary thread, but when you need to use the WebKit or GTK APIs, post the work back to the default main context using g_idle_add() or g_main_context_invoke() (assuming your GTK thread is your main thread; in theory you could use GTK entirely from one secondary thread instead, though I wouldn't recommend it).

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190729/23a8c924/attachment.html>

More information about the webkit-unassigned mailing list