<?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>41712</bug_id>
          
          <creation_ts>2010-07-06 12:31:32 -0700</creation_ts>
          <short_desc>[Qt] REGRESSION(62551): It make inspector tests crash</short_desc>
          <delta_ts>2010-07-06 13:33:20 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</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>P1</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41320</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>247178</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-07-06 12:31:32 -0700</bug_when>
    <thetext>After r62551 and r62554 (buildfix) every second
inspector tests crash with QtWebKit.

I tried to run run-webkit-tests with --singly
option and all inspector tests pass.

Here is a backtrace for a crash if you run the following tests
inspector/audits-panel-functional.html inspector/console-clear.html:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf319e6c0 (LWP 14468)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xf672329b in ~QWebPagePrivate (this=0x8196c38) at ../../../WebKit/qt/Api/qwebpage.cpp:315
#2  0xf67235c8 in ~QWebPage (this=0x8194360) at ../../../WebKit/qt/Api/qwebpage.cpp:1894
#3  0xf6725d9e in QWebViewPrivate::detachCurrentPage (this=0x819c800) at ../../../WebKit/qt/Api/qwebview.cpp:372
#4  0xf6726a8f in ~QWebViewPrivate (this=0x819c800) at ../../../WebKit/qt/Api/qwebview.cpp:60
#5  0xf6726b96 in ~QWebView (this=0x8196e30) at ../../../WebKit/qt/Api/qwebview.cpp:329
#6  0xf66fa22d in WTF::deleteOwnedPtr&lt;QWebView&gt; (ptr=0x8196e30) at ../../../JavaScriptCore/wtf/OwnPtrCommon.h:57
#7  0xf66fa493 in ~OwnPtr (this=0x819f110) at ../../../JavaScriptCore/wtf/OwnPtr.h:57
#8  0xf66fa550 in ~InspectorFrontendClientQt (this=0x819f0f8) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.h:70
#9  0xf62d44f7 in WTF::deleteOwnedPtr&lt;WebCore::InspectorFrontendClient&gt; (ptr=0x819f0f8) at ../../../JavaScriptCore/wtf/OwnPtrCommon.h:57
#10 0xf62dee6b in ~OwnPtr (this=0x8192b04) at ../../../JavaScriptCore/wtf/OwnPtr.h:57
#11 0xf62fe98c in ~InspectorController (this=0x8192af8) at ../../../WebCore/inspector/InspectorController.cpp:228
#12 0xf6447506 in WTF::deleteOwnedPtr&lt;WebCore::InspectorController&gt; (ptr=0x8192af8) at ../../../JavaScriptCore/wtf/OwnPtrCommon.h:57
#13 0xf6449403 in ~OwnPtr (this=0x8189be0) at ../../../JavaScriptCore/wtf/OwnPtr.h:57
#14 0xf6450734 in ~Page (this=0x8189bc8) at ../../../WebCore/page/Page.cpp:227
#15 0xf67232da in ~QWebPagePrivate (this=0x8196c38) at ../../../WebKit/qt/Api/qwebpage.cpp:318
#16 0xf6723834 in ~QWebPage (this=0x8194360) at ../../../WebKit/qt/Api/qwebpage.cpp:1894
#17 0xf66fa7bd in ~InspectorClientWebPage (this=0x8194360) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:56
#18 0xf6725d9e in QWebViewPrivate::detachCurrentPage (this=0x819c800) at ../../../WebKit/qt/Api/qwebview.cpp:372
#19 0xf6726a8f in ~QWebViewPrivate (this=0x819c800) at ../../../WebKit/qt/Api/qwebview.cpp:60
#20 0xf6726b96 in ~QWebView (this=0x8196e30) at ../../../WebKit/qt/Api/qwebview.cpp:329
#21 0xf66fa22d in WTF::deleteOwnedPtr&lt;QWebView&gt; (ptr=0x8196e30) at ../../../JavaScriptCore/wtf/OwnPtrCommon.h:57
#22 0xf66fa24f in WTF::OwnPtr&lt;QWebView&gt;::clear (this=0x819f110) at ../../../JavaScriptCore/wtf/OwnPtr.h:61
#23 0xf66fb27f in WebCore::InspectorFrontendClientQt::closeWindow (this=0x819f0f8) at ../../../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:263
#24 0xf632d276 in WebCore::InspectorFrontendHost::closeWindow (this=0x8249848) at ../../../WebCore/inspector/InspectorFrontendHost.cpp:166
#25 0xf5c47914 in WebCore::jsInspectorFrontendHostPrototypeFunctionCloseWindow (exec=0xf118a320) at generated/JSInspectorFrontendHost.cpp:205
#26 0xf0f48fcf in ?? ()
#27 0x00000200 in ?? ()
#28 0xf118a320 in ?? ()
#29 0xffffa098 in ?? ()
#30 0xf0d4c295 in ?? ()
#31 0x0855b524 in ?? ()
#32 0xf1102b40 in ?? ()
#33 0xfffffffe in ?? ()
#34 0x0882ddf8 in ?? ()
#35 0x0855b524 in ?? ()
#36 0x00000000 in ?? ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247196</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-07-06 13:33:20 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/62587 is my attempt at a fix for this.

A better fix would be to fix OwnPtr::clear.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>