<?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>54418</bug_id>
          
          <creation_ts>2011-02-14 15:45:21 -0800</creation_ts>
          <short_desc>r78499 causes assertion failure in http/tests/xmlhttprequest/cache-override.html</short_desc>
          <delta_ts>2011-02-15 11:31:06 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Text</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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>53898</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>ap</cc>
    
    <cc>koivisto</cc>
    
    <cc>mario</cc>
    
    <cc>psolanki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>350941</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-02-14 15:45:21 -0800</bug_when>
    <thetext>Chromium bots started crashing on this test after r78499 went in (see our test dashboard at http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&amp;group=%40ToT%20-%20chromium.org&amp;tests=http%2Ftests%2Fxmlhttprequest%2Fcache-override.html ).

The critical bit is this chunk I copied from the Linux run:

ASSERTION FAILED: count &gt; m_partialSequenceSize
third_party/WebKit/Source/WebCore/platform/text/TextCodecUTF8.cpp(217) : virtual WTF::String WebCore::TextCodecUTF8::decode(const char*, size_t, bool, bool, bool&amp;)
[14203:14203:2241232273962:ERROR:process_util_posix.cc(106)] Received signal 11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351152</commentid>
    <comment_count>1</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2011-02-15 02:05:10 -0800</bug_when>
    <thetext>It&apos;s also causing crashes in SnowLeopard and GTK bots.

See full backtrace as got from the GTK 32-bit debug bot in my last comment in bug 53898:
https://bugs.webkit.org/show_bug.cgi?id=53898#c56</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351164</commentid>
    <comment_count>2</comment_count>
      <attachid>82431</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2011-02-15 02:42:09 -0800</bug_when>
    <thetext>Created attachment 82431
check for zero</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351171</commentid>
    <comment_count>3</comment_count>
      <attachid>82431</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-02-15 02:53:07 -0800</bug_when>
    <thetext>Comment on attachment 82431
check for zero

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351172</commentid>
    <comment_count>4</comment_count>
      <attachid>82431</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2011-02-15 02:54:19 -0800</bug_when>
    <thetext>Comment on attachment 82431
check for zero

Hmm, no this is not correct. It should still flush the partial sequence and set the error flag. Better leave it for Darin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351173</commentid>
    <comment_count>5</comment_count>
      <attachid>82431</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-02-15 02:58:08 -0800</bug_when>
    <thetext>Comment on attachment 82431
check for zero

re-r+ing again as agreed on IRC.
I don&apos;t see a problem with this patch, TextCodecUTF16 has the same check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351176</commentid>
    <comment_count>6</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2011-02-15 03:10:03 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/78541

I also filed

https://bugs.webkit.org/show_bug.cgi?id=54444
Correct handling of end of buffer partial sequence in UFT8 decoder when flushing with zero length</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351429</commentid>
    <comment_count>7</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-02-15 11:31:06 -0800</bug_when>
    <thetext>(For clarity, the patch here landed in r78541)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82431</attachid>
            <date>2011-02-15 02:42:09 -0800</date>
            <delta_ts>2011-02-15 02:58:08 -0800</delta_ts>
            <desc>check for zero</desc>
            <filename>utf8-length.patch</filename>
            <type>text/plain</type>
            <size>1345</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDc4NTM4KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDItMTUgIEFudHRpIEtv
aXZpc3RvICA8YW50dGlAYXBwbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIHI3ODQ5OSBjYXVzZXMgYXNzZXJ0aW9uIGZhaWx1cmUgaW4gaHR0
cC90ZXN0cy94bWxodHRwcmVxdWVzdC9jYWNoZS1vdmVycmlkZS5odG1sCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn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NlcXVlbmNlIGJ1ZmZl
ciBiZWNhdXNlCiAgICAgLy8gZWFjaCBieXRlIGluIGFuIGludmFsaWQgc2VxdWVuY2Ugd2lsbCB0
dXJuIGludG8gYSByZXBsYWNlbWVudCBjaGFyYWN0ZXIuCg==
</data>
<flag name="review"
          id="74106"
          type_id="1"
          status="+"
          setter="kling"
    />
          </attachment>
      

    </bug>

</bugzilla>