[Webkit-unassigned] [Bug 42785] Crash in WebKit2WebProcess in WaitForMultipleObjects beneath WorkQueue::workQueueThreadBody every time WebKitTestRunner runs a test

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 28 08:38:01 PDT 2010


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





--- Comment #23 from Adam Roben (aroben) <aroben at apple.com>  2010-07-28 08:38:01 PST ---
(In reply to comment #22)
> One way I think we could fix this is:
> 
> 1) Allocate an event and set it as the overlapped.hEvent member before passing the overlapped structure to ::WriteFile
> 2) If ::WriteFile succeeds, destroy the event
> 3) If ::WriteFile fails with ERROR_IO_PENDING, call ::RegisterWaitForSingleObject, passing overlapped.hEvent as the object to wait on and a newly-heap-allocated structure that holds the event and the ArgumentEncoder as the context pointer
> 4) When the wait callback function is called, destroy the ArgumentEncoder and the event

Anders pointed out that this strategy will likely create too many events if many large messages are sent. He suggested having a single write event (like we have a single read event), and changing sendOutgoingMessages to be able to send only some messages, and then resume later.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list