<?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>54386</bug_id>
          
          <creation_ts>2011-02-14 04:17:25 -0800</creation_ts>
          <short_desc>[GTK] Crashes after r78451, added built-in decoder for UTF-8</short_desc>
          <delta_ts>2011-02-14 09:54:34 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>53898</dup_id>
          
          <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="Alejandro G. Castro">alex</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>350584</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2011-02-14 04:17:25 -0800</bug_when>
    <thetext>Apparently some tests are hiting assertions:

http://webkit-bots.igalia.com/amd64/svn_78458.core-when_1297677236-_-who_DumpRenderTree-_-why_11.trace.html

#0  0x00007f90dbe36c29 in WTF::StringBuffer::shrink (this=0x7fffc5173760, newLength=2) at ../../Source/JavaScriptCore/wtf/text/StringBuffer.h:56
56	        ASSERT(newLength &lt;= m_length);

#0  0x00007f90dbe36c29 in WTF::StringBuffer::shrink (this=0x7fffc5173760, newLength=2) at ../../Source/JavaScriptCore/wtf/text/StringBuffer.h:56
#1  0x00007f90dc2dd535 in WebCore::TextCodecUTF8::decode (this=0x1699de0, bytes=0x7fffc51738c8 &quot;\200&quot;, length=1, flush=true, stopOnError=false, sawError=@0x7fffc517386f) at ../../Source/WebCore/platform/text/TextCodecUTF8.cpp:313
#2  0x00007f90dc2ddc77 in WebCore::TextEncoding::decode (this=0x7f90de39ae70, data=0x7fffc51738c8 &quot;\200&quot;, length=1, stopOnError=false, sawError=@0x7fffc517386f) at ../../Source/WebCore/platform/text/TextEncoding.cpp:71
#3  0x00007f90dc05efbe in WebCore::TextEncoding::decode (this=0x7f90de39ae70, str=0x7fffc51738c8 &quot;\200&quot;, length=1) at ../../Source/WebCore/platform/text/TextEncoding.h:69
#4  0x00007f90dc299f90 in WebCore::decodeURLEscapeSequences (str=..., encoding=...) at ../../Source/WebCore/platform/KURL.cpp:947
#5  0x00007f90dc299d3c in WebCore::decodeURLEscapeSequences (str=...) at ../../Source/WebCore/platform/KURL.cpp:909
#6  0x00007f90dc05cc68 in WebCore::(anonymous namespace)::decodeURL (string=..., encoding=...) at ../../Source/WebCore/html/parser/XSSFilter.cpp:115

And also we can find:

http://webkit-bots.igalia.com/amd64/svn_78458.core-when_1297677247-_-who_DumpRenderTree-_-why_11.trace.html

#0  0x00007f550ed24f75 in WebCore::TextCodecUTF8::decode (this=0x2910a60, bytes=0x0, length=0, flush=true, stopOnError=false, sawError=@0x29dd004) at ../../Source/WebCore/platform/text/TextCodecUTF8.cpp:217
217	            ASSERT(count &gt; m_partialSequenceSize);


Thread 1 (Thread 12916):
#0  0x00007f550ed24f75 in WebCore::TextCodecUTF8::decode (this=0x2910a60, bytes=0x0, length=0, flush=true, stopOnError=false, sawError=@0x29dd004) at ../../Source/WebCore/platform/text/TextCodecUTF8.cpp:217
#1  0x00007f550ebd8dab in WebCore::TextResourceDecoder::flush (this=0x29dcfb0) at ../../Source/WebCore/loader/TextResourceDecoder.cpp:687
#2  0x00007f550f04c41d in WebCore::XMLHttpRequest::didFinishLoading (this=0x29d5390, identifier=502) at ../../Source/WebCore/xml/XMLHttpRequest.cpp:999
#3  0x00007f550eb82789 in WebCore::DocumentThreadableLoader::didFinishLoading (this=0x2980700, identifier=502) at ../../Source/WebCore/loader/DocumentThreadableLoader.cpp:248
#4  0x00007f550eb831ab in WebCore::DocumentThreadableLoader::loadRequest (this=0x2980700, request=..., securityCheck=WebCore::DoSecurityCheck) at ../../Source/WebCore/loader/DocumentThreadableLoader.cpp:362
#5  0x00007f550eb8121d in WebCore::DocumentThreadableLoader::DocumentThreadableLoader (this=0x2980700, document=0x2965f60, client=0x29d53a0, blockingBehavior=WebCore::DocumentThreadableLoader::LoadSynchronously, request=..., options=...) at ../../Source/WebCore/loader/DocumentThreadableLoader.cpp:76
#6  0x00007f550eb808fc in WebCore::DocumentThreadableLoader::loadResourceSynchronously (document=0x2965f60, request=..., client=..., options=...) at ../../Source/WebCore/loader/DocumentThreadableLoader.cpp:53</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350585</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2011-02-14 04:24:23 -0800</bug_when>
    <thetext>Also in SnowLeopard Intel:

http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r78464%20(25297)/http/tests/xmlhttprequest/cache-override-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350587</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2011-02-14 04:32:52 -0800</bug_when>
    <thetext>Rolled out the patch: http://trac.webkit.org/changeset/78465</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350588</commentid>
    <comment_count>3</comment_count>
    <who name="Alejandro G. Castro">alex</who>
    <bug_when>2011-02-14 04:33:49 -0800</bug_when>
    <thetext>Duplicating after the reopening of the original bug.

*** This bug has been marked as a duplicate of bug 53898 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350687</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-02-14 08:53:56 -0800</bug_when>
    <thetext>*** Bug 54382 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350720</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-02-14 09:54:34 -0800</bug_when>
    <thetext>Really strange to mark this as a duplicate of the new encoder bug itself. I don’t understand how you folks use bugs.webkit.org.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>