<?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>161494</bug_id>
          
          <creation_ts>2016-09-01 11:04:46 -0700</creation_ts>
          <short_desc>[GTK][STABLE] REGRESSION(r202939): page loads forever when load fails</short_desc>
          <delta_ts>2016-09-05 02:48:56 -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>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=159526</see_also>
          <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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mario</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1225401</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 11:04:46 -0700</bug_when>
    <thetext>WebKitGTK+ 2.12.4 loads forever when attempting to display a customer&apos;s internal page. It&apos;s a regression from 2.12.3 and I&apos;m bisecting it on the 2.4 branch now.

When running with a debug build, instead of loading forever, we hit this assertion:

ASSERTION FAILED: !HashTranslator::equal(KeyTraits::emptyValue(), key)
../../Source/WTF/wtf/HashTable.h(585) : void WTF::HashTable&lt;Key, Value, Extractor, HashFunctions, Traits, KeyTraits&gt;::checkKey(const T&amp;) [with HashTranslator = WTF::IdentityHashTranslator&lt;WTF::IntHash&lt;long unsigned int&gt; &gt;; T = long unsigned int; Key = long unsigned int; Value = WTF::KeyValuePair&lt;long unsigned int, WTF::RefPtr&lt;WebKit::WebResourceLoader&gt; &gt;; Extractor = WTF::KeyValuePairKeyExtractor&lt;WTF::KeyValuePair&lt;long unsigned int, WTF::RefPtr&lt;WebKit::WebResourceLoader&gt; &gt; &gt;; HashFunctions = WTF::IntHash&lt;long unsigned int&gt;; Traits = WTF::HashMap&lt;long unsigned int, WTF::RefPtr&lt;WebKit::WebResourceLoader&gt; &gt;::KeyValuePairTraits; KeyTraits = WTF::HashTraits&lt;long unsigned int&gt;]
1   0x7f429f149371 /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(WTFCrash+0x1e) [0x7f429f149371]
2   0x7f42a47e173c /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3WTF9HashTableImNS_12KeyValuePairImNS_6RefPtrIN6WebKit17WebResourceLoaderEEEEENS_24KeyValuePairKeyExtractorIS6_EENS_7IntHashImEENS_7HashMapImS5_SA_NS_10HashTraitsImEENSC_IS5_EEE18KeyValuePairTraitsESD_E8checkKeyINS_22IdentityHashTranslatorISA_EEmEEvRKT0_+0x54) [0x7f42a47e173c]
3   0x7f42a47e1629 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3WTF9HashTableImNS_12KeyValuePairImNS_6RefPtrIN6WebKit17WebResourceLoaderEEEEENS_24KeyValuePairKeyExtractorIS6_EENS_7IntHashImEENS_7HashMapImS5_SA_NS_10HashTraitsImEENSC_IS5_EEE18KeyValuePairTraitsESD_E12inlineLookupINS_22IdentityHashTranslatorISA_EEmEEPS6_RKT0_+0x23) [0x7f42a47e1629]
4   0x7f42a47e15f1 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3WTF9HashTableImNS_12KeyValuePairImNS_6RefPtrIN6WebKit17WebResourceLoaderEEEEENS_24KeyValuePairKeyExtractorIS6_EENS_7IntHashImEENS_7HashMapImS5_SA_NS_10HashTraitsImEENSC_IS5_EEE18KeyValuePairTraitsESD_E6lookupINS_22IdentityHashTranslatorISA_EEmEEPS6_RKT0_+0x23) [0x7f42a47e15f1]
5   0x7f42a47e1599 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3WTF9HashTableImNS_12KeyValuePairImNS_6RefPtrIN6WebKit17WebResourceLoaderEEEEENS_24KeyValuePairKeyExtractorIS6_EENS_7IntHashImEENS_7HashMapImS5_SA_NS_10HashTraitsImEENSC_IS5_EEE18KeyValuePairTraitsESD_E6lookupERKm+0x23) [0x7f42a47e1599]
6   0x7f42a47e14b3 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZNK3WTF7HashMapImNS_6RefPtrIN6WebKit17WebResourceLoaderEEENS_7IntHashImEENS_10HashTraitsImEENS7_IS4_EEE3getERKm+0x23) [0x7f42a47e14b3]
7   0x7f42a47e148d /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZNK6WebKit17WebLoaderStrategy30webResourceLoaderForIdentifierEm+0x27) [0x7f42a47e148d]
8   0x7f42a47e120a /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN6WebKit24NetworkProcessConnection17didReceiveMessageERN3IPC10ConnectionERNS1_14MessageDecoderE+0x74) [0x7f42a47e120a]
9   0x7f42a453fde8 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3IPC10Connection15dispatchMessageERNS_14MessageDecoderE+0x3a) [0x7f42a453fde8]
10  0x7f42a453ff4c /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3IPC10Connection15dispatchMessageESt10unique_ptrINS_14MessageDecoderESt14default_deleteIS2_EE+0x160) [0x7f42a453ff4c]
11  0x7f42a454012a /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN3IPC10Connection18dispatchOneMessageEv+0xc8) [0x7f42a454012a]
12  0x7f42a453fc32 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(+0x42fdc32) [0x7f42a453fc32]
13  0x7f42a4541436 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(+0x42ff436) [0x7f42a4541436]
14  0x7f42a4514ee2 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZNKSt8functionIFvvEEclEv+0x32) [0x7f42a4514ee2]
15  0x7f429f163d61 /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(_ZN3WTF7RunLoop11performWorkEv+0xdb) [0x7f429f163d61]
16  0x7f429f19c85e /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(+0x1f2285e) [0x7f429f19c85e]
17  0x7f429f19c882 /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(+0x1f22882) [0x7f429f19c882]
18  0x7f429f19c7fe /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(+0x1f227fe) [0x7f429f19c7fe]
19  0x7f429f19c82d /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(+0x1f2282d) [0x7f429f19c82d]
20  0x7f42990543ed /home/mcatanzaro/src/jhbuild/install/lib/libglib-2.0.so.0(+0x493ed) [0x7f42990543ed]
21  0x7f4299056d31 /home/mcatanzaro/src/jhbuild/install/lib/libglib-2.0.so.0(g_main_context_dispatch+0x32) [0x7f4299056d31]
22  0x7f4299056e8b /home/mcatanzaro/src/jhbuild/install/lib/libglib-2.0.so.0(+0x4be8b) [0x7f4299056e8b]
23  0x7f429905723f /home/mcatanzaro/src/jhbuild/install/lib/libglib-2.0.so.0(g_main_loop_run+0x18c) [0x7f429905723f]
24  0x7f429f19cdde /home/mcatanzaro/src/jhbuild/install/lib/libjavascriptcoregtk-4.0.so.18(_ZN3WTF7RunLoop3runEv+0xac) [0x7f429f19cdde]
25  0x7f42a4a40ac9 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(_ZN6WebKit16ChildProcessMainINS_10WebProcessENS_14WebProcessMainEEEiiPPc+0x82) [0x7f42a4a40ac9]
26  0x7f42a4a40930 /home/mcatanzaro/src/jhbuild/install/lib/libwebkit2gtk-4.0.so.37(WebProcessMainUnix+0x20) [0x7f42a4a40930]
27  0x400c0a /home/mcatanzaro/src/jhbuild/install/libexec/webkit2gtk-4.0/WebKitWebProcess(main+0x34) [0x400c0a]
28  0x7f429449f731 /lib64/libc.so.6(__libc_start_main+0xf1) [0x7f429449f731]
29  0x400b09 /home/mcatanzaro/src/jhbuild/install/libexec/webkit2gtk-4.0/WebKitWebProcess(_start+0x29) [0x400b09]

That&apos;s not a very good backtrace. I&apos;ll try to get a better one, but I have to do it manually as coredumpctl is broken in Fedora  ATM.

Another user is complaining that ubuntu.com loads forever. I couldn&apos;t reproduce the issue on that page, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225404</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 11:08:33 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; WebKitGTK+ 2.12.4 loads forever when attempting to display a customer&apos;s
&gt; internal page. It&apos;s a regression from 2.12.3 and I&apos;m bisecting it on the 2.4
&gt; branch now.

Er, I meant &quot;2.12 branch&quot; of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225416</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 11:23:03 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Another user is complaining that ubuntu.com loads forever. I couldn&apos;t
&gt; reproduce the issue on that page, though.

Confirmed this as a 2.12.4 regression as well, so it&apos;s probably the same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225479</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 12:59:01 -0700</bug_when>
    <thetext>d0896358a290ab2f9ab11b6b4d788d62fc738ac4 is the first bad commit
commit d0896358a290ab2f9ab11b6b4d788d62fc738ac4
Author: carlosgc@webkit.org &lt;carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc&gt;
Date:   Tue Aug 23 11:16:02 2016 +0000

    Merge r202939 - Fix crash when sending failure message to closed WebProcess
    https://bugs.webkit.org/show_bug.cgi?id=159526
    &lt;rdar://problem/26767037&gt;
    
    Reviewed by Brady Eidson.
    
    * NetworkProcess/NetworkResourceLoader.cpp:
    (WebKit::NetworkResourceLoader::didFailLoading):
    Check to see if there is a connection before using it to send a message.
    Sometimes it was null.
    I think this could be tested if we had real network loading from TestWebKitAPI
    by cancelling slow loads and closing WebProcesses around the same time, but no such infrastructure exists yet.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.12@204807 268f45cc-cd09-0410-ab3c-d52691b4dbfc

:040000 040000 205aecbb5ee69adfdaa7e995f9c18cb4ed156f4d 54738d451ff116c923e99e6258635120ed1438b2 M	Source</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225495</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 13:20:48 -0700</bug_when>
    <thetext>I talked to Alex Christensen. We need to backport r202940 to the 2.12 branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225529</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 14:15:15 -0700</bug_when>
    <thetext>Turns out it&apos;s an page with a TLS certificate error (i.e. the ubuntu.com issue is something different). I thought I tested this yesterday to rule that out, but I must have messed up my testing somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225660</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-01 19:41:48 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Turns out it&apos;s an page with a TLS certificate error

(any page with any network error)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225706</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-01 22:22:24 -0700</bug_when>
    <thetext>Oh, I&apos;m sorry, I usually check the revision number is not mentioned in other commits before merging it to ensure it hasn&apos;t been rolled out or to catch follow ups, but it seems I made this release too quickly. I&apos;ll fix it and make a new release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226123</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-03 07:40:28 -0700</bug_when>
    <thetext>Hm, it&apos;s not just when load fails. It also broke patch preview with &apos;webkit-patch upload&apos;. (It&apos;s fixed by r202940.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226126</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-03 07:41:54 -0700</bug_when>
    <thetext>Also it&apos;s worth mentioning that Alex said this broke hundreds of tests. We didn&apos;t notice because bots don&apos;t run on the stable branch. It would probably be worth running tests manually before making a release and looking for large unexpected changes; I know that would take a while, but that would have caught this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226397</commentid>
    <comment_count>10</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-05 02:48:56 -0700</bug_when>
    <thetext>Merged in r205432</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>