<?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>85085</bug_id>
          
          <creation_ts>2012-04-27 11:18:58 -0700</creation_ts>
          <short_desc>[chromium] svg/custom/clip-path-referencing-use2.svg fails in &quot;drt mode&quot; in DRT</short_desc>
          <delta_ts>2013-04-09 17:06:06 -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>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="Dirk Pranke">dpranke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>eric</cc>
    
    <cc>pdr</cc>
    
    <cc>schenney</cc>
    
    <cc>tkent</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>611710</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 11:18:58 -0700</bug_when>
    <thetext>For some reason, we get different output in --test-shell mode and non-test-shell (aka drt) mode in DumpRenderTree (on Linux and Mac, at least; haven&apos;t tried win yet). 

Specifically, when run without the --test-shell flag, we don&apos;t get &quot;CONSOLE MESSAGE: line 1: Error: Not allowed to use indirect reference in &lt;clip-path&gt;&quot;.

I know nothing about SVG , clip-path, or indirect references, so I have no idea if this is a bug, or a bug fix. I have confirmed that the code path doesn&apos;t even execute in DRT mode, so this isn&apos;t some sort of logging/console diff.

Anyone have any ideas? My only guess is that it has something to do with --test-shell mode getting the test as a file:/// URL and drt mode getting the test as a path, and that somehow triggering different behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611741</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-27 11:49:03 -0700</bug_when>
    <thetext>I suspect this is a bug about our handling of stderr output in one or the other modes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611745</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 11:50:40 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; I suspect this is a bug about our handling of stderr output in one or the other modes.

I don&apos;t think so;I actually instrumented the code and that code path flat out isn&apos;t being executed in drt mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611748</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-27 11:51:35 -0700</bug_when>
    <thetext>Do we have logging configured differently for one or the other? (WebCore logging I mean).  Do we know where this message comes from?  (Could you post the trac link?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611753</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 11:53:18 -0700</bug_when>
    <thetext>http://trac.webkit.org/browser/trunk/Source/WebCore/svg/SVGUseElement.cpp#L562</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611754</commentid>
    <comment_count>5</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 11:53:39 -0700</bug_when>
    <thetext>I don&apos;t believe the logging is being configured any differently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611759</commentid>
    <comment_count>6</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-04-27 11:55:59 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Do we have logging configured differently for one or the other? (WebCore logging I mean).  Do we know where this message comes from?  (Could you post the trac link?)

The error comes from http://trac.webkit.org/browser/trunk/Source/WebCore/svg/SVGUseElement.cpp#L562 and is a legitimate error to be thrown. I wonder if this is the only case in SVG where we&apos;re throwing errors at a specific time, or whether it&apos;s just the logging level/configuration as Eric pointed out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611761</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-27 11:56:45 -0700</bug_when>
    <thetext>I wonder if the ChromeClients are configured differently for Chrome DRT in DRT mode vs. TS mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611763</commentid>
    <comment_count>8</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 11:58:18 -0700</bug_when>
    <thetext>Either I&apos;m missing something, or I&apos;m not making myself clear here ...

that line of code is not being executed. In fact, IIRC, that whole function isn&apos;t executing.

How could loging being configured differently affect that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611767</commentid>
    <comment_count>9</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-04-27 12:06:08 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; Either I&apos;m missing something, or I&apos;m not making myself clear here ...
&gt; 
&gt; that line of code is not being executed. In fact, IIRC, that whole function isn&apos;t executing.
&gt; 
&gt; How could loging being configured differently affect that?

(In reply to comment #8)
&gt; Either I&apos;m missing something, or I&apos;m not making myself clear here ...
&gt; 
&gt; that line of code is not being executed. In fact, IIRC, that whole function isn&apos;t executing.
&gt; 
&gt; How could loging being configured differently affect that?

I misunderstood that the function wasn&apos;t running at all, and now I&apos;m confused as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611785</commentid>
    <comment_count>10</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 12:40:47 -0700</bug_when>
    <thetext>Okay, maybe I was stoned when I was debugging this last night :( 

It looks like the code is executing, and for some reason the message isn&apos;t getting logged, as you suggested. I will try and figure out what&apos;s going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611818</commentid>
    <comment_count>11</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 13:13:16 -0700</bug_when>
    <thetext>Okay, I figured it out ...

that line of code is getting executed. Although I&apos;m sure it wasn&apos;t the other night when I was first testing this, I have no explanation for what I was doing then; probably running the wrong test or something :(

At any rate, this ends up working its way around into WebCore::Console where we call client()-&gt;addMessageToConsole().

For whatever reason, that ends up printing the message *after* we&apos;ve dumped the renderTree. in &quot;drt mode&quot;, that means that it shows up after the #EOF signifying the end of the text input (and before the pixel input), so we drop the string on the floor. &quot;test shell mode&quot; is not so lenient, and we get the string included in stdout.

I&apos;m not sure where to go from here. One answer would be to just rebaseline the text and call it a day, but it kinda seems like a bug in DRT that this error message is getting dropped.

Thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611852</commentid>
    <comment_count>12</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-27 13:35:39 -0700</bug_when>
    <thetext>We&apos;ve had this type of bug in DRT for a very long time.  DRT instances have to work hard to make sure they don&apos;t print anything after the #EOF.  I suspect we&apos;ll need to make some adjustments to Chromium&apos;s DRT to make sure it&apos;s not leaking stderr like this.  I thought we used to have asserts/error messages in NRWT to catch this kind of &quot;dropped a log on the floor&quot; problem?  In ORWT those logs used to end up in the next test output. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611858</commentid>
    <comment_count>13</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-04-27 13:42:11 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; We&apos;ve had this type of bug in DRT for a very long time.  DRT instances have to work hard to make sure they don&apos;t print anything after the #EOF.  I suspect we&apos;ll need to make some adjustments to Chromium&apos;s DRT to make sure it&apos;s not leaking stderr like this.  I thought we used to have asserts/error messages in NRWT to catch this kind of &quot;dropped a log on the floor&quot; problem?  In ORWT those logs used to end up in the next test output. :)

This is stdout, not stderr (which is why the test is failing). stderr works fine (and we output the -stderr.txt files you&apos;re talking about).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>659732</commentid>
    <comment_count>14</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-06-28 13:13:23 -0700</bug_when>
    <thetext>Committed r121457: &lt;http://trac.webkit.org/changeset/121457&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>659733</commentid>
    <comment_count>15</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-06-28 13:14:11 -0700</bug_when>
    <thetext>I&apos;ve updated the expectations because we would like to find out about any changes to this output and work is active in this code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872408</commentid>
    <comment_count>16</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2013-04-09 17:06:06 -0700</bug_when>
    <thetext>Marked LayoutTest bugs, bugs with Chromium IDs, and some others as WontFix. Test failure bugs still are trackable via TestExpectations or disabled unit tests.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>