<?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>69898</bug_id>
          
          <creation_ts>2011-10-11 21:56:59 -0700</creation_ts>
          <short_desc>Layout tests asserting in LayoutTestController::pathToLocalResource()</short_desc>
          <delta_ts>2011-10-12 17:14:05 -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>528+ (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>LayoutTestFailure, MakingBotsRed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          <cc>ap</cc>
    
    <cc>eric</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>482205</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-10-11 21:56:59 -0700</bug_when>
    <thetext>Various layout tests are asserting in LayoutTestController::pathToLocalResource() on the SL leaks bot:

http://build.webkit.org/results/SnowLeopard%20Intel%20Leaks/r97218%20(19479)/results.html

fast/loader/local-CSS-from-local.html	stderr	crash log (DumpRenderTree: LayoutTestController::pathToLocalResource(OpaqueJSContext const*, OpaqueJSString*) + 601)
fast/loader/local-JavaScript-from-local.html	stderr	crash log (DumpRenderTree: LayoutTestController::pathToLocalResource(OpaqueJSContext const*, OpaqueJSString*) + 601)
fast/loader/local-iFrame-source-from-local.html	stderr	crash log (DumpRenderTree: LayoutTestController::pathToLocalResource(OpaqueJSContext const*, OpaqueJSString*) + 601)
fast/loader/local-image-from-local.html	stderr	crash log (DumpRenderTree: LayoutTestController::pathToLocalResource(OpaqueJSContext const*, OpaqueJSString*) + 601)

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   DumpRenderTree                	0x0000000100030c91 LayoutTestController::pathToLocalResource(OpaqueJSContext const*, OpaqueJSString*) + 601 (LayoutTestControllerMac.mm:416)
1   DumpRenderTree                	0x00000001000260be pathToLocalResourceCallback(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 199 (LayoutTestController.cpp:288)
2   com.apple.JavaScriptCore      	0x00000001002c1ef9 JSC::JSCallbackFunction::call(JSC::ExecState*) + 301 (JSCallbackFunction.cpp:73)
3   com.apple.JavaScriptCore      	0x00000001002aa570 cti_op_call_NotJSFunction + 425 (JITStubs.cpp:2323)
4   com.apple.JavaScriptCore      	0x00000001002a2d2d jscGeneratedNativeCode + 0 (JITStubs.cpp:946)
5   com.apple.JavaScriptCore      	0x00000001002819ea JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*) + 86 (JITCode.h:103)
6   com.apple.JavaScriptCore      	0x000000010027bd1b JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 1359</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482208</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-11 22:00:43 -0700</bug_when>
    <thetext>There is clearly a bug here:

http://trac.webkit.org/changeset/95588/trunk/Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm
414	    // Note: It&apos;s important that we keep the file:// or http tests will get confused. 
415	    if (localResourceString.find(&quot;file://&quot;) != std::string::npos) { 
416	        ASSERT(absolutePathToLocalResource[0] == &apos;/&apos;); 

It should read:

415	    if (localResourceString.find(&quot;file://&quot;) == std::string::npos) { 
416	        ASSERT(absolutePathToLocalResource[0] == &apos;/&apos;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482210</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-11 22:08:40 -0700</bug_when>
    <thetext>Did this just start?  This change was landed long ago, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482218</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-11 22:22:50 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; There is clearly a bug here:
&gt; 
&gt; http://trac.webkit.org/changeset/95588/trunk/Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm
&gt; 414        // Note: It&apos;s important that we keep the file:// or http tests will get confused. 
&gt; 415        if (localResourceString.find(&quot;file://&quot;) != std::string::npos) { 
&gt; 416            ASSERT(absolutePathToLocalResource[0] == &apos;/&apos;); 
&gt; 
&gt; It should read:
&gt; 
&gt; 415        if (localResourceString.find(&quot;file://&quot;) == std::string::npos) { 
&gt; 416            ASSERT(absolutePathToLocalResource[0] == &apos;/&apos;);

Oh wait, this is not it. I misread the code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482226</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-11 22:40:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Did this just start?  This change was landed long ago, no?

I think this has always failed. It appears that it&apos;s coming from webkit port difference. I can reproduce the crash if I run:
 Tools/Scripts/run-webkit-tests --debug --leaks fast/loader/local-JavaScript-from-local.html

but can&apos;t reproduce the crash if I run:
 Tools/Scripts/run-webkit-tests --debug fast/loader/local-JavaScript-from-local.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482817</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 15:56:50 -0700</bug_when>
    <thetext>I am able to reproduce the failure.  Not yet sure what&apos;s causing it. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482819</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 15:57:54 -0700</bug_when>
    <thetext>Ah.  Looks like --leaks is using ORWT.  I thought it was using NRWT.  I&apos;ll make the change to ORWT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482820</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-12 15:58:49 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Ah.  Looks like --leaks is using ORWT.  I thought it was using NRWT.  I&apos;ll make the change to ORWT.

No wonder!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482826</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 16:01:44 -0700</bug_when>
    <thetext>*** Bug 69899 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482828</commentid>
    <comment_count>9</comment_count>
      <attachid>110762</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 16:04:35 -0700</bug_when>
    <thetext>Created attachment 110762
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482881</commentid>
    <comment_count>10</comment_count>
      <attachid>110762</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 17:14:00 -0700</bug_when>
    <thetext>Comment on attachment 110762
Patch

Clearing flags on attachment: 110762

Committed r97321: &lt;http://trac.webkit.org/changeset/97321&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482882</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-12 17:14:05 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110762</attachid>
            <date>2011-10-12 16:04:35 -0700</date>
            <delta_ts>2011-10-12 17:14:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-69898-20111012160434.patch</filename>
            <type>text/plain</type>
            <size>1489</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTczMTAKZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBi
L1Rvb2xzL0NoYW5nZUxvZwppbmRleCAxZmZkMGM5NDczMjNhNzAzN2ViMjhiMWNhNTkwYjQ2OGNh
NWM3Y2FlLi44NjNlOWE4NWQ4YTRiM2MwZTE1MGRjMjNkZWQ1ODEyM2U1Y2QyMzVlIDEwMDY0NAot
LS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUg
QEAKKzIwMTEtMTAtMTIgIEVyaWMgU2VpZGVsICA8ZXJpY0B3ZWJraXQub3JnPgorCisgICAgICAg
IExheW91dCB0ZXN0cyBhc3NlcnRpbmcgaW4gTGF5b3V0VGVzdENvbnRyb2xsZXI6OnBhdGhUb0xv
Y2FsUmVzb3VyY2UoKQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9Njk4OTgKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAg
ICAgICBvbGQtcnVuLXdlYmtpdC10ZXN0cyBqdXN0IGRpZG4ndCBrbm93IHRvIHNldCBMT0NBTF9S
RVN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