[Webkit-unassigned] [Bug 167876] [Soup] Deadlock in NetworkProcess

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 6 05:57:38 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=167876

--- Comment #1 from Carlos Garcia Campos <cgarcia at igalia.com> ---
WebKitSoupRequestInputStream uses a read lock.What is happening is that webkitSoupRequestInputStreamAddData takes the lock, and it calls webkitSoupRequestInputStreamPendingReadAsyncComplete with the lock help. That causes webkitSoupRequestInputStreamReadAsync to be called again to read the next chunk, but in the same run loop operation. webkitSoupRequestInputStreamReadAsync also takes the read lock. I don't know why we are using that read lock, I don't think it's needed, at least now everything should happen in the main thread. But I'm going to look at it in more detail. If the lock is needed, then the solution is to release it before calling webkitSoupRequestInputStreamPendingReadAsyncComplete

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


More information about the webkit-unassigned mailing list