Bug 191795 - ProcessSwap.NavigationWithLockedHistoryWithoutPSON API test is a flaky crash in debug
Summary: ProcessSwap.NavigationWithLockedHistoryWithoutPSON API test is a flaky crash ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 191781
  Show dependency treegraph
 
Reported: 2018-11-16 16:57 PST by Chris Dumez
Modified: 2018-11-16 18:27 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.99 KB, patch)
2018-11-16 17:03 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2018-11-16 16:57:02 PST
ProcessSwap.NavigationWithLockedHistoryWithoutPSON API test is a flaky crash in debug:

TestWebKitAPI.ProcessSwap.NavigationWithLockedHistoryWithoutPSON
        _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
        Received data during response processing, queuing it.
        Received data during response processing, queuing it.
        _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
        ASSERTION FAILED: process->hasOneRef()
        /Volumes/Data/slave/mojave-debug/build/Source/WebKit/UIProcess/WebProcessPool.cpp(344) : virtual WebKit::WebProcessPool::~WebProcessPool()
        1   0x10cff1b59 WTFCrash
        2   0x11305395b WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x1139b0441 WebKit::WebProcessPool::~WebProcessPool()
        4   0x1139b1d35 WebKit::WebProcessPool::~WebProcessPool()
        5   0x113647b8e -[WKProcessPool dealloc]
        6   0x113686cc6 WTF::RetainPtr<WKProcessPool>::~RetainPtr()
        7   0x113686c55 WTF::RetainPtr<WKProcessPool>::~RetainPtr()
        8   0x113686c39 LazyInitialized<WTF::RetainPtr<WKProcessPool> >::~LazyInitialized()
        9   0x11367bfd5 LazyInitialized<WTF::RetainPtr<WKProcessPool> >::~LazyInitialized()
        10  0x11367bebf -[WKWebViewConfiguration .cxx_destruct]
        11  0x7fff5e4d51f5 object_cxxDestructFromClass(objc_object*, objc_class*)
        12  0x7fff5e4cd9f0 objc_destructInstance
        13  0x7fff5e4cd992 object_dispose
        14  0x1136933f6 WTF::RetainPtr<WKWebViewConfiguration>::~RetainPtr()
        15  0x11366fdb5 WTF::RetainPtr<WKWebViewConfiguration>::~RetainPtr()
        16  0x11366fd48 -[WKWebView .cxx_destruct]
        17  0x7fff5e4d51f5 object_cxxDestructFromClass(objc_object*, objc_class*)
        18  0x7fff5e4cd9f0 objc_destructInstance
        19  0x7fff5e4cd992 object_dispose
        20  0x7fff2f970849 -[NSResponder dealloc]
        21  0x7fff2f96ebb4 -[NSView dealloc]
        22  0x113663e6e -[WKWebView dealloc]
        23  0x7fff5e4ce7c2 (anonymous namespace)::AutoreleasePoolPage::pop(void*)
        24  0x7fff322f8d42 _CFAutoreleasePoolPop
        25  0x7fff346c396e -[NSAutoreleasePool drain]
        26  0x10c34b297 main
        27  0x7fff5f5a108d start
        28  0x2
Comment 1 Chris Dumez 2018-11-16 17:03:07 PST
Created attachment 355164 [details]
Patch
Comment 2 Ryosuke Niwa 2018-11-16 17:05:19 PST
Comment on attachment 355164 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=355164&action=review

> Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:212
> +        else
> +            reply.second({ });

Why do we need to do this?
Comment 3 Chris Dumez 2018-11-16 17:06:04 PST
(In reply to Ryosuke Niwa from comment #2)
> Comment on attachment 355164 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=355164&action=review
> 
> > Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:212
> > +        else
> > +            reply.second({ });
> 
> Why do we need to do this?

It is a CompletionHandler, it needs to be called or it will ASSERT in its destructor.
Comment 4 WebKit Commit Bot 2018-11-16 18:26:14 PST
Comment on attachment 355164 [details]
Patch

Clearing flags on attachment: 355164

Committed r238335: <https://trac.webkit.org/changeset/238335>
Comment 5 WebKit Commit Bot 2018-11-16 18:26:16 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2018-11-16 18:27:34 PST
<rdar://problem/46145919>