<?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>45256</bug_id>
          
          <creation_ts>2010-09-06 04:13:50 -0700</creation_ts>
          <short_desc>Web Inspector: Tests crash on Qt bots revealed by r66720</short_desc>
          <delta_ts>2010-09-06 10:21:10 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>44230</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>274541</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 04:13:50 -0700</bug_when>
    <thetext>After http://trac.webkit.org/changeset/66720 there are
some flakey crashes on Qt Linux Release bot. :/

Fortunately I reproduced the crash on our 64 bit relase
and debug bots, where 50-60 tests crash always.

$ WebKitTools/Scripts/run-webkit-tests --debug -exit-after-n-crashes 1

fast/dom/location-new-window-no-crash.html -&gt; crashed
Exiting early after 1 crashes and 0 timeouts. 4946 tests run.

$ gdb WebKitBuild/Debug/bin/DumpRenderTree core

#0  0x00007fd89917f702 in WebCore::InspectorFrontendClientQt::inspectorClientDestroyed (this=0x908e5a0a39be2ed) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:344
344         m_inspectorClient = 0;
(gdb) bt
#0  0x00007fd89917f702 in WebCore::InspectorFrontendClientQt::inspectorClientDestroyed (this=0x908e5a0a39be2ed) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:344
#1  0x00007fd89917f73e in WebCore::InspectorClientQt::inspectorDestroyed (this=0x739810) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:104
#2  0x00007fd898d3e9f6 in WebCore::InspectorController::inspectedPageDestroyed (this=0x739b30) at ../../../WebCore/inspector/InspectorController.cpp:212
#3  0x00007fd898eadab4 in ~Page (this=0x739840) at ../../../WebCore/page/Page.cpp:211
#4  0x00007fd8991a9357 in ~QWebPagePrivate (this=0x739350) at ../../../WebKit/qt/Api/qwebpage.cpp:319
#5  0x00007fd8991a98be in ~QWebPage (this=0x7391d0) at ../../../WebKit/qt/Api/qwebpage.cpp:1891
#6  0x0000000000428de3 in ~WebPage (this=0x7391d0) at /home/oszi/WebKit/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp:168
#7  0x00007fd8991abf9a in QWebViewPrivate::detachCurrentPage (this=0x6f2080) at ../../../WebKit/qt/Api/qwebview.cpp:372
#8  0x00007fd8991accd9 in ~QWebViewPrivate (this=0x6f2080) at ../../../WebKit/qt/Api/qwebview.cpp:60
#9  0x00007fd8991acdce in ~QWebView (this=0x738cc0) at ../../../WebKit/qt/Api/qwebview.cpp:329
#10 0x0000000000425b73 in ~DumpRenderTree (this=0x7fffffffea80) at /home/oszi/WebKit/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp:505
#11 0x000000000043b0a3 in main (argc=2, argv=0x7fffffffecb8) at /home/oszi/WebKit/WebKitTools/DumpRenderTree/qt/main.cpp:171

Yury, Pavel, any idea how to fix it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274556</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 04:44:35 -0700</bug_when>
    <thetext>Additionally I tried to rollout http://trac.webkit.org/changeset/66720 locally, and after that I didn&apos;t get any crashes.

Guys, could we fix it quickly? Or should we rollout 
until fix make sheriffbot not to SPAM innocent peoples.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274572</commentid>
    <comment_count>2</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-09-06 05:51:02 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Additionally I tried to rollout http://trac.webkit.org/changeset/66720 locally, and after that I didn&apos;t get any crashes.
&gt; 
&gt; Guys, could we fix it quickly? Or should we rollout 
&gt; until fix make sheriffbot not to SPAM innocent peoples.

Let me look into it. It didn&apos;t crash locally. It was 32 bit virtual machine though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274576</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 06:03:14 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Let me look into it. It didn&apos;t crash locally. It was 32 bit virtual machine though.

Qt Linux Release bot is a 32 bit machine too. Unfortunately
it isn&apos;t trivial to reproduce on it, because sometimes works,
sometimes not. See http://build.webkit.org/waterfall?show=Qt%20Linux%20Release

That&apos;s why sheriffbot make some SPAM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274584</commentid>
    <comment_count>4</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-09-06 06:22:10 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Let me look into it. It didn&apos;t crash locally. It was 32 bit virtual machine though.
&gt; 
&gt; Qt Linux Release bot is a 32 bit machine too. Unfortunately
&gt; it isn&apos;t trivial to reproduce on it, because sometimes works,
&gt; sometimes not. See http://build.webkit.org/waterfall?show=Qt%20Linux%20Release
&gt; 
&gt; That&apos;s why sheriffbot make some SPAM.

Ok, it seems that destructor ~InspectorFrontendClientQt is called without preceding call to InspectorFrontendClientQt::destroyInspectorView. I&apos;m going to commit a patch that should prove it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274646</commentid>
    <comment_count>5</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-09-06 08:27:55 -0700</bug_when>
    <thetext>It also affects the QtTestBrowser (QtWebkit&apos;s launcher)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274648</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 08:29:40 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Ok, it seems that destructor ~InspectorFrontendClientQt is called without preceding call to InspectorFrontendClientQt::destroyInspectorView. I&apos;m going to commit a patch that should prove it.

Landed in http://trac.webkit.org/changeset/66824 , but unfortunately still crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274658</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 09:05:54 -0700</bug_when>
    <thetext>I can reproduced it on 32 bit too:

#0  0xf676a9c8 in WebCore::InspectorFrontendClientQt::inspectorClientDestroyed (this=0xffffffff) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:351
351         m_inspectorClient = 0;
(gdb) bt
#0  0xf676a9c8 in WebCore::InspectorFrontendClientQt::inspectorClientDestroyed (this=0xffffffff) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:351
#1  0xf676aa06 in WebCore::InspectorClientQt::inspectorDestroyed (this=0x815f018) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:104
#2  0xf631b5a7 in WebCore::InspectorController::inspectedPageDestroyed (this=0x81691c8) at ../../../WebCore/inspector/InspectorController.cpp:212
#3  0xf648afd5 in ~Page (this=0x8168ad0) at ../../../WebCore/page/Page.cpp:211
#4  0xf6794c3a in ~QWebPagePrivate (this=0x8168df0) at ../../../WebKit/qt/Api/qwebpage.cpp:319
#5  0xf6795152 in ~QWebPage (this=0xf27017e0) at ../../../WebKit/qt/Api/qwebpage.cpp:1891
#6  0x0806948c in ~WebPage (this=0xf27017e0) at /home/oszi/WebKit/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp:168
#7  0xf679759e in QWebViewPrivate::detachCurrentPage (this=0xf2700538) at ../../../WebKit/qt/Api/qwebview.cpp:372
#8  0xf67982d7 in ~QWebViewPrivate (this=0xf2700538) at ../../../WebKit/qt/Api/qwebview.cpp:60
#9  0xf67983de in ~QWebView (this=0xf27005c0) at ../../../WebKit/qt/Api/qwebview.cpp:329
#10 0x080664b3 in ~DumpRenderTree (this=0xffffc614) at /home/oszi/WebKit/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp:505
#11 0x0807a8b8 in main (argc=2, argv=0xffffc744) at /home/oszi/WebKit/WebKitTools/DumpRenderTree/qt/main.cpp:171

It seems m_frontendClient is invalid for some reason. (this=0xffffffff)

void InspectorClientQt::inspectorDestroyed()
{
    if (m_frontendClient)
        m_frontendClient-&gt;inspectorClientDestroyed(); 
        ---&gt; crash!!! (InspectorClientQt.cpp:104)
    delete this;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274670</commentid>
    <comment_count>8</comment_count>
      <attachid>66652</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 09:36:26 -0700</bug_when>
    <thetext>Created attachment 66652
proposed fix

I tested locally, it fixed all crashes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274671</commentid>
    <comment_count>9</comment_count>
      <attachid>66652</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-09-06 09:37:33 -0700</bug_when>
    <thetext>Comment on attachment 66652
proposed fix

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274672</commentid>
    <comment_count>10</comment_count>
      <attachid>66652</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 09:42:38 -0700</bug_when>
    <thetext>Comment on attachment 66652
proposed fix

Clearing flags on attachment: 66652

Committed r66835: &lt;http://trac.webkit.org/changeset/66835&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274673</commentid>
    <comment_count>11</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-06 09:42:48 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274692</commentid>
    <comment_count>12</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-09-06 10:21:10 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; All reviewed patches have been landed.  Closing bug.

Thanks for fixing this! The idea of missing initializer just came to my mind when I was driving home. I wonder why there is no such warning in g++.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66652</attachid>
            <date>2010-09-06 09:36:26 -0700</date>
            <delta_ts>2010-09-06 09:42:38 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>1.patch</filename>
            <type>text/plain</type>
            <size>1159</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9xdC9XZWJDb3JlU3VwcG9ydC9JbnNwZWN0b3JDbGllbnRRdC5jcHAKPT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PQotLS0gV2ViS2l0L3F0L1dlYkNvcmVTdXBwb3J0L0luc3BlY3RvckNsaWVudFF0LmNw
cAkoc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cm9udGVuZENsaWVudCBtdXN0IGJlIGluaXRpYWxpemVkIGJ5IGNvbnN0
cnVjdG9yCisKIDIwMTAtMDktMDYgIFl1cnkgU2VtaWtoYXRza3kgIDx5dXJ5c0BjaHJvbWl1bS5v
cmc+CiAKICAgICAgICAgVW5yZXZpZXdlZC4gQXR0ZW1wdCB0byBmaXggcmFuZG9tIHRlc3QgY3Jh
c2hlcyBhZnRlciByNjY3MjAuCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>