<?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>171989</bug_id>
          
          <creation_ts>2017-05-11 14:27:15 -0700</creation_ts>
          <short_desc>REGRESSION(r216217): lldb_webkit.py no longer prints out a WTFString, StringImpl needs to handle StringImplShape change</short_desc>
          <delta_ts>2017-05-11 16:34:24 -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>WebKit 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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>bburg</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jer.noble</cc>
    
    <cc>joepeck</cc>
    
    <cc>lforschler</cc>
    
    <cc>mark.lam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1307470</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-11 14:27:15 -0700</bug_when>
    <thetext>Attempting to print out a WTF::String results in lldb produces:

    (lldb) p selectorText
    Traceback (most recent call last):
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 53, in WTFString_SummaryProvider
        return &quot;{ length = %d, contents = &apos;%s&apos; }&quot; % (provider.get_length(), provider.to_string())
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 275, in to_string
        return impl.to_string()
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 245, in to_string
        return lstring_to_string(self.get_data8(), error, self.get_length())
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 219, in lstring_to_string
        string = contents.decode(&apos;utf8&apos;)
    AttributeError: &apos;NoneType&apos; object has no attribute &apos;decode&apos;
    Traceback (most recent call last):
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 60, in WTFStringImpl_SummaryProvider
        return &quot;{ length = %d, is8bit = %d, contents = &apos;%s&apos; }&quot; % (provider.get_length(), provider.is_8bit(), provider.to_string())
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 245, in to_string
        return lstring_to_string(self.get_data8(), error, self.get_length())
      File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/lldb/lldb_webkit.py&quot;, line 219, in lstring_to_string
        string = contents.decode(&apos;utf8&apos;)
    AttributeError: &apos;NoneType&apos; object has no attribute &apos;decode&apos;
    (WTF::String) $1 = {
      m_impl = {
        m_ptr = 0x0000000123034980
      }
    }

Expected:

    (lldb) p selectorText
    (WTF::String) $0 = { length = 38, contents = &apos;head, link, meta, script, style, title&apos; } {
      m_impl = {
        m_ptr = 0x0000000123034980 { length = 38, is8bit = 1, contents = &apos;head, link, meta, script, style, title&apos; }
      }
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307473</commentid>
    <comment_count>1</comment_count>
      <attachid>309786</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-11 14:29:51 -0700</bug_when>
    <thetext>Created attachment 309786
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307474</commentid>
    <comment_count>2</comment_count>
      <attachid>309787</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-11 14:30:54 -0700</bug_when>
    <thetext>Created attachment 309787
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307479</commentid>
    <comment_count>3</comment_count>
      <attachid>309787</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-05-11 14:39:21 -0700</bug_when>
    <thetext>Comment on attachment 309787
[PATCH] Proposed Fix

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307481</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2017-05-11 14:40:23 -0700</bug_when>
    <thetext>r=me too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307492</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-05-11 14:55:39 -0700</bug_when>
    <thetext>Very nice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307517</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-11 15:32:33 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 309787:

workers/bomb.html bug 171985 (author: fpizlo@apple.com)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307518</commentid>
    <comment_count>7</comment_count>
      <attachid>309787</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-11 15:33:01 -0700</bug_when>
    <thetext>Comment on attachment 309787
[PATCH] Proposed Fix

Rejecting attachment 309787 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.webkit.org&apos;, &apos;--bot-id=webkit-cq-03&apos;, &apos;land-attachment&apos;, &apos;--force-clean&apos;, &apos;--non-interactive&apos;, &apos;--parent-command=commit-queue&apos;, 309787, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
ingContext should implement WebGLRenderingContextBase
The copy of the patch that failed is found in:
   /Volumes/Data/EWS/WebKit/.git/rebase-apply/patch

When you have resolved this problem, run &quot;git rebase --continue&quot;.
If you prefer to skip this patch, run &quot;git rebase --skip&quot; instead.
To check out the original branch and stop rebasing, run &quot;git rebase --abort&quot;.

rebase refs/remotes/origin/master: command returned error: 1

Died at /Volumes/Data/EWS/WebKit/Tools/Scripts/webkitdirs.pm line 2719.

Full output: http://webkit-queues.webkit.org/results/3721293</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307528</commentid>
    <comment_count>8</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-05-11 15:43:03 -0700</bug_when>
    <thetext>(In reply to WebKit Commit Bot from comment #7)
&gt; Comment on attachment 309787 [details]
&gt; [PATCH] Proposed Fix
&gt; 
&gt; Rejecting attachment 309787 [details] from commit-queue.
&gt; 
&gt; Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;,
&gt; &apos;--status-host=webkit-queues.webkit.org&apos;, &apos;--bot-id=webkit-cq-03&apos;,
&gt; &apos;land-attachment&apos;, &apos;--force-clean&apos;, &apos;--non-interactive&apos;,
&gt; &apos;--parent-command=commit-queue&apos;, 309787, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd:
&gt; /Volumes/Data/EWS/WebKit
&gt; 
&gt; Last 500 characters of output:
&gt; ingContext should implement WebGLRenderingContextBase
&gt; The copy of the patch that failed is found in:
&gt;    /Volumes/Data/EWS/WebKit/.git/rebase-apply/patch
&gt; 
&gt; When you have resolved this problem, run &quot;git rebase --continue&quot;.
&gt; If you prefer to skip this patch, run &quot;git rebase --skip&quot; instead.
&gt; To check out the original branch and stop rebasing, run &quot;git rebase --abort&quot;.
&gt; 
&gt; rebase refs/remotes/origin/master: command returned error: 1
&gt; 
&gt; Died at /Volumes/Data/EWS/WebKit/Tools/Scripts/webkitdirs.pm line 2719.
&gt; 
&gt; Full output: http://webkit-queues.webkit.org/results/3721293

You had one job, commit-queue bot.. you are fired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307539</commentid>
    <comment_count>9</comment_count>
      <attachid>309787</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-11 16:04:43 -0700</bug_when>
    <thetext>Comment on attachment 309787
[PATCH] Proposed Fix

Lets try setting the flag again. I really don&apos;t want to do an entire clean build to land this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307573</commentid>
    <comment_count>10</comment_count>
      <attachid>309787</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-11 16:34:22 -0700</bug_when>
    <thetext>Comment on attachment 309787
[PATCH] Proposed Fix

Clearing flags on attachment: 309787

Committed r216701: &lt;http://trac.webkit.org/changeset/216701&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307574</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-11 16:34:24 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>309786</attachid>
            <date>2017-05-11 14:29:51 -0700</date>
            <delta_ts>2017-05-11 14:30:54 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>fix-lldb-1.patch</filename>
            <type>text/plain</type>
            <size>1667</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCAxZjEx
NjY5YzgzYy4uMWE0YjVkM2J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          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>309787</attachid>
            <date>2017-05-11 14:30:54 -0700</date>
            <delta_ts>2017-05-11 16:34:22 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>fix-lldb-2.patch</filename>
            <type>text/plain</type>
            <size>1665</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCAxZjEx
NjY5YzgzYy4uZTZkYTA1ZjBmOGEgMTAwNjQ0Ci0tLSBhL1Rvb2xzL0NoYW5nZUxvZworKysgYi9U
b29scy9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNyBAQAorMjAxNy0wNS0xMSAgSm9zZXBoIFBlY29y
YXJvICA8cGVjb3Jhcm9AYXBwbGUuY29tPgorCisgICAgICAgIFJFR1JFU1NJT04ocjIxNjIxNyk6
IGxsZGJfd2Via2l0LnB5IG5vIGxvbmdlciBwcmludHMgb3V0IGEgV1RGU3RyaW5nLCBTdHJpbmdJ
bXBsIG5lZWRzIHRvIGhhbmRsZSBTdHJpbmdJbXBsU2hhcGUgY2hhbmdlCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNzE5ODkKKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIGxsZGIvbGxkYl93ZWJraXQucHk6
CisgICAgICAgIChXVEZTdHJpbmdJbXBsUHJvdmlkZXIuZ2V0X2RhdGE4KToKKyAgICAgICAgKFdU
RlN0cmluZ0ltcGxQcm92aWRlci5nZXRfZGF0YTE2KToKKyAgICAgICAgbV9kYXRhOCBhbmQgbV9k
YXRhMTYgYXJlIG5vdyBwYXJ0IG9mIHRoZSBzdXBlcmNsYXNzIFN0cmluZ0ltcGxTaGFwZQorICAg
ICAg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