<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>233043</bug_id>
          
          <creation_ts>2021-11-12 07:55:43 -0800</creation_ts>
          <short_desc>Regression(r285639) fast/dom/Geolocation/cached-position-iframe.html is frequently crashing on Mac-wk1</short_desc>
          <delta_ts>2021-11-12 14:32:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>232387</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Alexey Shvayka">ashvayka</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>ggaren</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1814436</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-11-12 07:55:43 -0800</bug_when>
    <thetext>fast/dom/Geolocation/cached-position-iframe.html is frequently crashing on Mac-wk1 and leads to a lot of false positive EWS warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814438</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-11-12 07:59:36 -0800</bug_when>
    <thetext>Committed r285719 (244178@main): &lt;https://commits.webkit.org/244178@main&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814439</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-11-12 07:59:52 -0800</bug_when>
    <thetext>Reopening since I merely skipped the test for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814442</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-11-12 08:02:14 -0800</bug_when>
    <thetext>I managed to reproduce the issue locally and got this crash trace:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000035
Exception Codes:       0x0000000000000001, 0x0000000000000035
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [86418]

VM Region Info: 0x35 is not in any region.  Bytes before following region: 4558184395
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
---&gt;  
      __TEXT                      10fb06000-10fc46000    [ 1280K] r-x/r-x SM=COW  ...umpRenderTree

Application Specific Information:
dyld4 config: DYLD_INSERT_LIBRARIES=/Volumes/Data/WebKit/OpenSource/WebKitBuild/Debug/libWebCoreTestShim.dylib DYLD_FRAMEWORK_PATH=/Volumes/Data/WebKit/OpenSource/WebKitBuild/Debug DYLD_LIBRARY_PATH=/Volumes/Data/WebKit/OpenSource/WebKitBuild/Debug
CRASHING TEST: fast/dom/Geolocation/cached-position-iframe.html


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   DumpRenderTree                	       0x10fbcab24 TestRunner::setGeolocationPermissionCommon(bool) + 20 (TestRunner.cpp:2190)
1   DumpRenderTree                	       0x10fbd8d95 TestRunner::setGeolocationPermission(bool) + 37 (TestRunnerMac.mm:479)
2   DumpRenderTree                	       0x10fbc6bc1 setGeolocationPermissionCallback(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 113 (TestRunner.cpp:977)
3   JavaScriptCore                	       0x11b5d49e4 long long JSC::APICallbackFunction::callImpl&lt;JSC::JSCallbackFunction&gt;(JSC::JSGlobalObject*, JSC::CallFrame*) + 612 (APICallbackFunction.h:61)
4   JavaScriptCore                	       0x11b5c9d4d JSC::callJSCallbackFunction(JSC::JSGlobalObject*, JSC::CallFrame*) + 29 (JSCallbackFunction.cpp:42)
5   JavaScriptCore                	       0x11b47efcc vmEntryToNative + 299 (LowLevelInterpreter64.asm:343)
6   JavaScriptCore                	       0x11c35be2d JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 1869 (Interpreter.cpp:966)
7   JavaScriptCore                	       0x11c7238aa JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 218 (CallData.cpp:57)
8   JavaScriptCore                	       0x11c72398d JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 205 (CallData.cpp:64)
9   JavaScriptCore                	       0x11c723c4d JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 125 (CallData.cpp:85)
10  WebCore                       	       0x16465112c WebCore::JSExecState::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 108 (JSExecState.h:73)
11  WebCore                       	       0x164650d9d WebCore::JSCallbackData::invokeCallback(WebCore::JSDOMGlobalObject&amp;, WebCore::JSDOMGlobalObject*, JSC::JSObject*, JSC::JSValue, JSC::MarkedArgumentBufferWithSize&lt;8ul&gt;&amp;, WebCore::JSCallbackData::CallbackType, JSC::PropertyName, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 1469 (JSCallbackData.cpp:91)
12  WebCore                       	       0x162130943 WebCore::JSCallbackDataStrong::invokeCallback(WebCore::JSDOMGlobalObject&amp;, JSC::JSValue, JSC::MarkedArgumentBufferWithSize&lt;8ul&gt;&amp;, WebCore::JSCallbackData::CallbackType, JSC::PropertyName, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 131 (JSCallbackData.h:83)
13  WebCore                       	       0x162f75a89 WebCore::JSPositionErrorCallback::handleEvent(WebCore::GeolocationPositionError&amp;) + 409 (JSPositionErrorCallback.cpp:74)
14  WebCore                       	       0x163da81f8 WebCore::GeoNotifier::runErrorCallback(WebCore::GeolocationPositionError&amp;) + 72 (GeoNotifier.cpp:85)
15  WebCore                       	       0x163da7cad WebCore::GeoNotifier::timerFired() + 93 (GeoNotifier.cpp:109)
16  WebCore                       	       0x163dea6ee decltype(*(std::__1::forward&lt;WebCore::GeoNotifier*&amp;&gt;(fp0)).*fp()) std::__1::__invoke&lt;void (WebCore::GeoNotifier::*&amp;)(), WebCore::GeoNotifier*&amp;, void&gt;(void (WebCore::GeoNotifier::*&amp;)(), WebCore::GeoNotifier*&amp;) + 110 (type_traits:3635)
17  WebCore                       	       0x163dea66d std::__1::__bind_return&lt;void (WebCore::GeoNotifier::*)(), std::__1::tuple&lt;WebCore::GeoNotifier*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::GeoNotifier::*)(), std::__1::tuple&lt;WebCore::GeoNotifier*&gt;, std::__1::tuple&lt;&gt; &gt;::value&gt;::type std::__1::__apply_functor&lt;void (WebCore::GeoNotifier::*)(), std::__1::tuple&lt;WebCore::GeoNotifier*&gt;, 0ul, std::__1::tuple&lt;&gt; &gt;(void (WebCore::GeoNotifier::*&amp;)(), std::__1::tuple&lt;WebCore::GeoNotifier*&gt;&amp;, std::__1::__tuple_indices&lt;0ul&gt;, std::__1::tuple&lt;&gt;&amp;&amp;) + 61 (functional:2857)
18  WebCore                       	       0x163dea620 std::__1::__bind_return&lt;void (WebCore::GeoNotifier::*)(), std::__1::tuple&lt;WebCore::GeoNotifier*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::GeoNotifier::*)(), std::__1::tuple&lt;WebCore::GeoNotifier*&gt;, std::__1::tuple&lt;&gt; &gt;::value&gt;::type std::__1::__bind&lt;void (WebCore::GeoNotifier::*&amp;)(), WebCore::GeoNotifier*&gt;::operator()&lt;&gt;() + 32 (functional:2890)
19  WebCore                       	       0x163dea5b9 WTF::Detail::CallableWrapper&lt;std::__1::__bind&lt;void (WebCore::GeoNotifier::*&amp;)(), WebCore::GeoNotifier*&gt;, void&gt;::call() + 25 (Function.h:53)
20  WebCore                       	       0x161cd3102 WTF::Function&lt;void ()&gt;::operator()() const + 130 (Function.h:82)
21  WebCore                       	       0x161cfbae9 WebCore::Timer::fired() + 25 (Timer.h:135)
22  WebCore                       	       0x165c3e8af WebCore::ThreadTimers::sharedTimerFiredInternal() + 671 (ThreadTimers.cpp:127)
23  WebCore                       	       0x165c49661 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const + 33 (ThreadTimers.cpp:67)
24  WebCore                       	       0x165c495f9 WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call() + 25 (Function.h:53)
25  WebCore                       	       0x161cd3102 WTF::Function&lt;void ()&gt;::operator()() const + 130 (Function.h:82)
26  WebCore                       	       0x165bf6d11 WebCore::MainThreadSharedTimer::fired() + 129 (MainThreadSharedTimer.cpp:83)
27  WebCore                       	       0x165cbc836 WebCore::timerFired(__CFRunLoopTimer*, void*) + 38 (MainThreadSharedTimerCF.cpp:85)
28  CoreFoundation                	    0x7ff80376184f __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
29  CoreFoundation                	    0x7ff80376133e __CFRunLoopDoTimer + 927
30  CoreFoundation                	    0x7ff803760e9d __CFRunLoopDoTimers + 307
31  CoreFoundation                	    0x7ff80374745f __CFRunLoopRun + 1985
32  CoreFoundation                	    0x7ff8037465dd CFRunLoopRunSpecific + 563
33  DumpRenderTree                	       0x10fb2d0aa runTest(std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;) + 3434 (DumpRenderTree.mm:1965)
34  DumpRenderTree                	       0x10fb2c297 runTestingServerLoop() + 215 (DumpRenderTree.mm:1078)
35  DumpRenderTree                	       0x10fb2bafb dumpRenderTree(int, char const**) + 555 (DumpRenderTree.mm:1191)
36  DumpRenderTree                	       0x10fb2dc28 DumpRenderTreeMain(int, char const**) + 104 (DumpRenderTree.mm:1302)
37  DumpRenderTree                	       0x10fbf53e2 main + 34 (DumpRenderTreeMain.mm:34)
38  dyld                          	       0x11ad2f4fe start + 462</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814448</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-11-12 08:12:45 -0800</bug_when>
    <thetext>Per the dashboard this is a regression from Alexey&apos;s r285639.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814450</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-12 08:13:55 -0800</bug_when>
    <thetext>&lt;rdar://problem/85343956&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814633</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-11-12 14:32:26 -0800</bug_when>
    <thetext>Committed r285743 (244202@main): &lt;https://commits.webkit.org/244202@main&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>