| Summary: | [Catalina] ASSERTION FAILED: Unsafe to ref/deref from different threads seen with TestWebKitAPI.MultipleClientCertificateConnections.Failure | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryan Haddad <ryanhaddad> | ||||||||||
| Component: | New Bugs | Assignee: | Alex Christensen <achristensen> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | achristensen, ap, darin, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ryan Haddad
2020-05-01 10:29:07 PDT
The first crash I see in the result history is @ r260689 on 4/24/2020. Created attachment 398254 [details]
Patch
Comment on attachment 398254 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398254&action=review > Tools/ChangeLog:9 > + To make them safe to destroy on non-main threads, make RequestData ThreadSafeRefCounted. Wouldn't that keep derefing Strings and HTTPResponses from requestMap on the wrong thread? Comment on attachment 398254 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398254&action=review >> Tools/ChangeLog:9 >> + To make them safe to destroy on non-main threads, make RequestData ThreadSafeRefCounted. > > Wouldn't that keep derefing Strings and HTTPResponses from requestMap on the wrong thread? It would. Comment on attachment 398254 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398254&action=review > Tools/TestWebKitAPI/cocoa/HTTPServer.mm:41 > +struct HTTPServer::RequestData : public ThreadSafeRefCounted<RequestData> { Should we make sure to destroy them in Main Thread using DestructionThread::MainRunLoop? Created attachment 398386 [details]
Patch
Comment on attachment 398386 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398386&action=review > Tools/ChangeLog:9 > + To make them safe to destroy on non-main threads, make RequestData ThreadSafeRefCounted. s/destroy/ref and unref/ Created attachment 398392 [details]
Patch
Committed r261101: <https://trac.webkit.org/changeset/261101> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398392 [details]. |