<?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>17511</bug_id>
          
          <creation_ts>2008-02-24 01:53:29 -0800</creation_ts>
          <short_desc>REGRESSION: Reproducible crash in SegmentedSubstring::SegmentedSubstring(SegmentedSubstring const&amp;)</short_desc>
          <delta_ts>2008-02-24 13:28: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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.bankofamerica.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to>mitz</assigned_to>
          <cc>blueangelstudio</cc>
    
    <cc>darin</cc>
    
    <cc>etn1234</cc>
    
    <cc>gzieman</cc>
    
    <cc>jimoase</cc>
    
    <cc>nvdtech</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71710</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-24 01:53:29 -0800</bug_when>
    <thetext>WebKit crashes after I log in to bankofamerica.com. Backtrace:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000451021e0
Crashed Thread:  0

Thread 0 Crashed:
0   com.apple.WebCore             	0x020790aa WebCore::SegmentedSubstring::SegmentedSubstring(WebCore::SegmentedSubstring const&amp;) + 14 (SegmentedString.h:30)
1   com.apple.WebCore             	0x020790f8 WebCore::SegmentedSubstring::SegmentedSubstring(WebCore::SegmentedSubstring const&amp;) + 24 (SegmentedString.h:30)
2   com.apple.WebCore             	0x0207a273 void WTF::Deque&lt;WebCore::SegmentedSubstring&gt;::prepend&lt;WebCore::SegmentedSubstring&gt;(WebCore::SegmentedSubstring const&amp;) + 133 (Deque.h:420)
3   com.apple.WebCore             	0x02078a4f WebCore::SegmentedString::prepend(WebCore::SegmentedSubstring const&amp;) + 147 (SegmentedString.cpp:112)
4   com.apple.WebCore             	0x02078b62 WebCore::SegmentedString::prepend(WebCore::SegmentedString const&amp;) + 240 (SegmentedString.cpp:138)
5   com.apple.WebCore             	0x01d57aaa WebCore::HTMLTokenizer::scriptHandler(WebCore::HTMLTokenizer::State) + 1350 (HTMLTokenizer.cpp:472)
6   com.apple.WebCore             	0x01d58075 WebCore::HTMLTokenizer::parseSpecial(WebCore::SegmentedString&amp;, WebCore::HTMLTokenizer::State) + 991 (HTMLTokenizer.cpp:326)
7   com.apple.WebCore             	0x01d5a0ea WebCore::HTMLTokenizer::parseTag(WebCore::SegmentedString&amp;, WebCore::HTMLTokenizer::State) + 6828 (HTMLTokenizer.cpp:1472)
8   com.apple.WebCore             	0x01d5a9b5 WebCore::HTMLTokenizer::write(WebCore::SegmentedString const&amp;, bool) + 1295 (HTMLTokenizer.cpp:1697)
9   com.apple.WebCore             	0x01d569b2 WebCore::HTMLTokenizer::notifyFinished(WebCore::CachedResource*) + 886 (HTMLTokenizer.cpp:1976)
10  com.apple.WebCore             	0x01bb7b02 WebCore::CachedScript::checkNotify() + 68 (CachedScript.cpp:97)
11  com.apple.WebCore             	0x01bb7c63 WebCore::CachedScript::data(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, bool) + 279 (CachedScript.cpp:89)
12  com.apple.WebCore             	0x0211851c WebCore::Loader::didFinishLoading(WebCore::SubresourceLoader*) + 308 (loader.cpp:113)
13  com.apple.WebCore             	0x02094639 WebCore::SubresourceLoader::didFinishLoading() + 169 (SubresourceLoader.cpp:195)
14  com.apple.WebCore             	0x01f96f5a WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle*) + 24 (ResourceLoader.cpp:373)
15  com.apple.WebCore             	0x01f94935 -[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:] + 101 (ResourceHandleMac.mm:469)
16  com.apple.Foundation          	0x9239c8b7 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 87
17  com.apple.Foundation          	0x9239c844 _NSURLConnectionDidFinishLoading + 68
18  com.apple.CFNetwork           	0x922c47f3 sendDidFinishLoadingCallback + 148
19  com.apple.CFNetwork           	0x922c1920 _CFURLConnectionSendCallbacks + 1994
20  com.apple.CFNetwork           	0x922c10d9 muxerSourcePerform + 283
21  com.apple.CoreFoundation      	0x92b7b62e CFRunLoopRunSpecific + 3166
22  com.apple.CoreFoundation      	0x92b7bd18 CFRunLoopRunInMode + 88
23  com.apple.HIToolbox           	0x938916a0 RunCurrentEventLoopInMode + 283
24  com.apple.HIToolbox           	0x938914b9 ReceiveNextEventCommon + 374
25  com.apple.HIToolbox           	0x9389132d BlockUntilNextEventMatchingListInMode + 106
26  com.apple.AppKit              	0x92d487d9 _DPSNextEvent + 657
27  com.apple.AppKit              	0x92d4808e -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
28  com.apple.Safari              	0x000247e1 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 171 (BrowserApplication.m:189)
29  com.apple.AppKit              	0x92d410c5 -[NSApplication run] + 795
30  com.apple.AppKit              	0x92d0e30a NSApplicationMain + 574
31  com.apple.Safari              	0x000ac6ed main + 24 (main.m:14)
32  com.apple.Safari              	0x00002ff6 start + 54</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71711</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-24 01:57:59 -0800</bug_when>
    <thetext>Prior to the crash I see this message:
Safari(25857,0xa08d5fa0) malloc: *** mmap(size=1158688768) failed (error code=12)
*** error: can&apos;t allocate region
*** set a breakpoint in malloc_error_break to debug

I am going to do what it says.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71712</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-24 02:07:49 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; *** set a breakpoint in malloc_error_break to debug
&gt; 
&gt; I am going to do what it says.

It&apos;s Deque::expandCapacity that is failing to do a huge malloc() when trying to increase an already-huge capacity by one quarter and a byte. I need to find out how the capacity gets that big in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71741</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-24 09:30:21 -0800</bug_when>
    <thetext>*** Bug 17518 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71747</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-02-24 10:02:02 -0800</bug_when>
    <thetext>*** Bug 17514 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71748</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-24 10:04:20 -0800</bug_when>
    <thetext>I think have a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71749</commentid>
    <comment_count>6</comment_count>
      <attachid>19323</attachid>
    <who name="">mitz</who>
    <bug_when>2008-02-24 10:12:20 -0800</bug_when>
    <thetext>Created attachment 19323
Fix Deque::expandCapacityIfNeeded()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71755</commentid>
    <comment_count>7</comment_count>
      <attachid>19323</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-24 10:39:58 -0800</bug_when>
    <thetext>Comment on attachment 19323
Fix Deque::expandCapacityIfNeeded()

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71757</commentid>
    <comment_count>8</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-24 10:45:46 -0800</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/projects/webkit/changeset/30550&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71762</commentid>
    <comment_count>9</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-24 12:02:00 -0800</bug_when>
    <thetext>*** Bug 17520 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71764</commentid>
    <comment_count>10</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-24 12:04:20 -0800</bug_when>
    <thetext>*** Bug 17521 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71777</commentid>
    <comment_count>11</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-24 13:28:34 -0800</bug_when>
    <thetext>*** Bug 17522 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19323</attachid>
            <date>2008-02-24 10:12:20 -0800</date>
            <delta_ts>2008-02-24 10:39:58 -0800</delta_ts>
            <desc>Fix Deque::expandCapacityIfNeeded()</desc>
            <filename>17511_r1.diff</filename>
            <type>text/plain</type>
            <size>1822</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDMwNTQ5KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9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lIFQ+Cg==
</data>
<flag name="review"
          id="8445"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>