<?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>185632</bug_id>
          
          <creation_ts>2018-05-14 15:14:51 -0700</creation_ts>
          <short_desc>[WinCairo][Ninja] DRT crashes on launch after incremental build.</short_desc>
          <delta_ts>2023-03-14 01:22:01 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Kirsling">ross.kirsling</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>fujii</cc>
    
    <cc>lforschler</cc>
    
    <cc>stephan.szabo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1423809</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2018-05-14 15:14:51 -0700</bug_when>
    <thetext>Detected by WinCairo test bot:
https://build.webkit.org/builders/WinCairo%2064-bit%20WKL%20Release%20%28Tests%29/builds/81/steps/layout-test/logs/stdio

Repro steps:
0. Delete build directory.
1. Build r231703 (e7d8f1c2d620436400ee58ef73fb035af0e62d6c).
2. Run tests, confirm everything is normal.
3. Build r231704 (07c00cf1cf8625bcd5abd80857c9bf98f9d2b9ab).
4. Run tests, DRT crashes on every test.
5. Build again as-is.
6. Run tests, confirm everything is normal again.

Notes:
- Only reproes with Ninja, not with MSVC (`--no-ninja`); Release vs. Debug doesn&apos;t matter.
- There may be revisions other than r231704 which repro.
- Error dialog upon DRT crash says &quot;the procedure entry point SSL_CTX_set1_groups_list could not be located in bin64\WebKit.dll&quot;.
- Step 5 takes about 1.5 minutes and builds/links the following:

  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\WebDocumentLoader.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\Plugins\PluginStream.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\WebCoreSupport\WebResourceLoadScheduler.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\WebCoreSupport\WebVisitedLinkStore.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\WebDataSource.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\WebCoreStatistics.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\Plugins\PluginViewWin.cpp.obj
  Building CXX object Source\WebKitLegacy\CMakeFiles\WebKitLegacy\win\Plugins\PluginView.cpp.obj
  Linking CXX shared library bin64\WebKit.dll
    Creating library lib64\WebKit.lib and object lib64\WebKit.exp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424062</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2018-05-15 11:02:51 -0700</bug_when>
    <thetext>Whoops, the error dialog mentioned above was a fluke (Visual Studio just wasn&apos;t able to resolve WEBKIT_LIBRARIES when debugging a Ninja build).

The actual crash is evidently happening inside malloc.

Debug mode call stack (&quot;n&quot; is 512):
&gt; ntdll.dll!00007ff94773877a()   
&gt; ntdll.dll!00007ff94773fcfa()   
&gt; ntdll.dll!00007ff9476df9c2()   
&gt; ntdll.dll!00007ff94766cb60()   
&gt; ntdll.dll!00007ff947668deb()   
&gt; ucrtbase.dll!00007ff94444ec76()
&gt; WTF.dll!WTF::fastMalloc(unsigned __int64 n) Line 185    
&gt; WTF.dll!WTF::fastZeroedMalloc(unsigned __int64 n) Line 79   
&gt; WebKit.dll!WTF::HashTable&lt;WTF::String,WTF::KeyValuePair&lt;WTF::String,unsigned int&gt;,WTF::KeyValuePairKeyExtractor&lt;WTF::KeyValuePair&lt;WTF::String,unsigned int&gt; &gt;,WTF::StringHash,WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::KeyValuePairTraits,WTF::HashTraits&lt;WTF::String&gt; &gt;::allocateTable(unsigned int size) Line 1146 
&gt; WebKit.dll!WTF::HashTable&lt;WTF::String,WTF::KeyValuePair&lt;WTF::String,unsigned int&gt;,WTF::KeyValuePairKeyExtractor&lt;WTF::KeyValuePair&lt;WTF::String,unsigned int&gt; &gt;,WTF::StringHash,WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::KeyValuePairTraits,WTF::HashTraits&lt;WTF::String&gt; &gt;::rehash(unsigned int newTableSize, WTF::KeyValuePair&lt;WTF::String,unsigned int&gt; * entry) Line 1197   
&gt; WebKit.dll!WTF::HashTable&lt;WTF::String,WTF::KeyValuePair&lt;WTF::String,unsigned int&gt;,WTF::KeyValuePairKeyExtractor&lt;WTF::KeyValuePair&lt;WTF::String,unsigned int&gt; &gt;,WTF::StringHash,WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::KeyValuePairTraits,WTF::HashTraits&lt;WTF::String&gt; &gt;::expand(WTF::KeyValuePair&lt;WTF::String,unsigned int&gt; * entry) Line 1175  
&gt; WebKit.dll!WTF::HashTable&lt;WTF::String,WTF::KeyValuePair&lt;WTF::String,unsigned int&gt;,WTF::KeyValuePairKeyExtractor&lt;WTF::KeyValuePair&lt;WTF::String,unsigned int&gt; &gt;,WTF::StringHash,WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::KeyValuePairTraits,WTF::HashTraits&lt;WTF::String&gt; &gt;::add&lt;WTF::HashMapTranslator&lt;WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::KeyValuePairTraits,WTF::StringHash&gt;,WTF::String,int&gt;(WTF::String &amp;&amp; key, int &amp;&amp; extra) Line 938 
&gt; WebKit.dll!WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::inlineAdd&lt;WTF::String,int&gt;(WTF::String &amp;&amp; key, int &amp;&amp; value) Line 346    
&gt; WebKit.dll!WTF::HashMap&lt;WTF::String,unsigned int,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt;,WTF::HashTraits&lt;unsigned int&gt; &gt;::add&lt;int&gt;(WTF::String &amp;&amp; key, int &amp;&amp; mapped) Line 388 
&gt; WebKit.dll!WTF::HashCountedSet&lt;WTF::String,WTF::StringHash,WTF::HashTraits&lt;WTF::String&gt; &gt;::add(WTF::String &amp;&amp; value) Line 211   
&gt; WebKit.dll!WebDataSource::WebDataSource(WebDocumentLoader * loader) Line 60 
&gt; WebKit.dll!WebDataSource::createInstance(WebDocumentLoader * loader) Line 74    
&gt; WebKit.dll!WebFrameLoaderClient::createDocumentLoader(const WebCore::ResourceRequest &amp; request, const WebCore::SubstituteData &amp; substituteData) Line 933    
&gt; WebKit.dll!WebCore::FrameLoader::init() Line 310    
&gt; WebKit.dll!WebCore::Frame::init() Line 204  
&gt; WebKit.dll!WebView::initWithFrame(tagRECT frame, wchar_t * frameName, wchar_t * groupName) Line 3149    
&gt; DumpRenderTreeLib.dll!createWebViewAndOffscreenWindow(HWND__ * * webViewWindow) Line 1339   
&gt; DumpRenderTreeLib.dll!main(int argc, const char * * argv) Line 1592 
&gt; DumpRenderTreeLib.dll!dllLauncherEntryPoint(int argc, const char * * argv) Line 1665    
&gt; DumpRenderTree.exe!main(int argc, const char * * argv) Line 249 
&gt; [External Code]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424066</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2018-05-15 11:12:51 -0700</bug_when>
    <thetext>FWIW, the trace when attempting to launch MiniBrowser is roughly the same (&quot;n&quot; is 1296):
&gt; ntdll.dll!00007ff9477387bb()   
&gt; ntdll.dll!00007ff94773fcfa()   
&gt; ntdll.dll!00007ff9476df9c2()   
&gt; ntdll.dll!00007ff94773fc23()   
&gt; ntdll.dll!00007ff94766cb38()   
&gt; ntdll.dll!00007ff947668deb()   
&gt; ucrtbase.dll!00007ff94444ec76()
&gt; WTF.dll!WTF::fastMalloc(unsigned __int64 n) Line 185   
&gt; WebKit.dll!WebCore::FrameView::operator new(unsigned __int64 size) Line 72 
&gt; WebKit.dll!WebCore::FrameView::create(WebCore::Frame &amp; frame, const WebCore::IntSize &amp; initialSize) Line 235   
&gt; WebKit.dll!WebCore::Frame::createView(const WebCore::IntSize &amp; viewportSize, const WebCore::Color &amp; backgroundColor, bool transparent, const WebCore::IntSize &amp; fixedLayoutSize, const WebCore::IntRect &amp; fixedVisibleContentRect, bool useFixedLayout, WebCore::ScrollbarMode horizontalScrollbarMode, bool horizontalLock, WebCore::ScrollbarMode verticalScrollbarMode, bool verticalLock) Line 923 
&gt; WebKit.dll!WebFrameLoaderClient::transitionToCommittedForNewPage() Line 1004   
&gt; WebKit.dll!WebCore::FrameLoader::transitionToCommitted(WebCore::CachedPage * cachedPage) Line 2088 
&gt; WebKit.dll!WebCore::FrameLoader::commitProvisionalLoad() Line 1910 
&gt; WebKit.dll!WebCore::DocumentLoader::commitIfReady() Line 360   
&gt; WebKit.dll!WebCore::DocumentLoader::finishedLoading() Line 423 
&gt; WebKit.dll!WebCore::DocumentLoader::maybeLoadEmpty() Line 1670 
&gt; WebKit.dll!WebCore::DocumentLoader::startLoadingMainResource(WebCore::ShouldContinue shouldContinue) Line 1685 
&gt; WebKit.dll!WebCore::FrameLoader::init() Line 314   
&gt; WebKit.dll!WebCore::Frame::init() Line 204 
&gt; WebKit.dll!WebView::initWithFrame(tagRECT frame, wchar_t * frameName, wchar_t * groupName) Line 3149   
&gt; MiniBrowserLib.dll!MiniBrowser::prepareViews(HWND__ * mainWnd, const tagRECT &amp; clientRect, wchar_t * const &amp; requestedURL) Line 100
&gt; MiniBrowserLib.dll!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpstrCmdLine, int nCmdShow) Line 160   
&gt; MiniBrowserLib.dll!dllLauncherEntryPoint(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpstrCmdLine, int nCmdShow) Line 877  
&gt; MiniBrowser.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpstrCmdLine, int nCmdShow) Line 251  
&gt; [External Code]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1941145</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-14 01:22:01 -0700</bug_when>
    <thetext>The Windows WK1 was removed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>