[Webkit-unassigned] [Bug 173315] New: [WTR] Crash in WebGeolocationManagerProxy::~WebGeolocationManagerProxy() when running several tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 13 08:57:18 PDT 2017


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

            Bug ID: 173315
           Summary: [WTR] Crash in
                    WebGeolocationManagerProxy::~WebGeolocationManagerProx
                    y() when running several tests
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: Gtk, LayoutTestFailure
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: achristensen at apple.com, bugs-noreply at webkitgtk.org,
                    csaavedra at igalia.com, lforschler at apple.com

This has started to happen after r218165, but I don't think it's a regression, but that r218165 revealed the bug somehow in WTR. The problem is that GeolocationProviderMock keeps a pointer to the WKGeolocationManagerRef returned by WKContextGetGeolocationManager. But in TestController::generatePageConfiguration() the context is freed before the GeolocationProviderMock. When the GeolocationProviderMock is then destroyed, it calls WKGeolocationManagerSetProvider(m_geolocationManager, 0); but the WKGeolocationManagerRef has already been destroyed.

Thread 1 (Thread 0x7fafced2af00 (LWP 31298)):
#0  0x0000000000000041 in ?? ()
#1  0x00007fafde78baa2 in WebKit::WebGeolocationManagerProxy::~WebGeolocationManagerProxy() () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#2  0x00007fafde7c7d56 in WebKit::WebProcessPool::~WebProcessPool() () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#3  0x00007fafde7c8639 in WebKit::WebProcessPool::~WebProcessPool() () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#4  0x00007fafe10b2019 in WTR::TestController::generatePageConfiguration(OpaqueWKContextConfiguration const*) ()
#5  0x00007fafe10b7d6b in WTR::TestController::createWebViewWithOptions(WTR::TestOptions const&) ()
#6  0x00007fafe10b8223 in WTR::TestController::ensureViewSupportsOptionsForTest(WTR::TestInvocation const&) ()
#7  0x00007fafe10b8421 in WTR::TestController::configureViewForTest(WTR::TestInvocation const&) ()
#8  0x00007fafe10c0a31 in WTR::TestInvocation::invoke() ()
#9  0x00007fafe10b369c in WTR::TestController::runTest(char const*) ()
#10 0x00007fafe10b386b in WTR::TestController::runTestingServerLoop() ()
#11 0x00007fafe10b6038 in WTR::TestController::TestController(int, char const**) ()
#12 0x00007fafe10acf9c in main ()

-- 
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/20170613/f383ee9a/attachment.html>


More information about the webkit-unassigned mailing list