<?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>17590</bug_id>
          
          <creation_ts>2008-02-28 07:25:45 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: subject in jsRegExpExecute()</short_desc>
          <delta_ts>2008-02-28 10:20: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>JavaScriptCore</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://mibbit.com</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="Matt Lilek">dev+webkit</reporter>
          <assigned_to>mitz</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72251</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-28 07:25:45 -0800</bug_when>
    <thetext>I hit the following ASSERT on mibbit.com.  It happens after I finish typing my username (but before I can tab away from that field).  

&lt;http://trac.webkit.org/projects/webkit/browser/trunk/JavaScriptCore/pcre/pcre_exec.cpp#L1905&gt;

ASSERTION FAILED: subject
(/Users/mlilek/Documents/WebKit/JavaScriptCore/pcre/pcre_exec.cpp:1905 int jsRegExpExecute(const JSRegExp*, const UChar*, int, int, int*, int))

Thread 0 Crashed:
0   com.apple.JavaScriptCore      	0x004c5b9c jsRegExpExecute(JSRegExp const*, unsigned short const*, int, int, int*, int) + 130 (pcre_exec.cpp:1905)
1   com.apple.WebCore             	0x01ef4706 WebCore::RegularExpression::match(WebCore::String const&amp;, int, int*) const + 176 (RegularExpression.cpp:132)
2   com.apple.WebCore             	0x01ef49f0 WebCore::RegularExpression::search(WebCore::String const&amp;, int) const + 70 (RegularExpression.cpp:155)
3   com.apple.WebCore             	0x01cfa985 WebCore::Frame::matchLabelsAgainstElement(NSArray*, WebCore::Element*) + 235 (FrameMac.mm:311)
4   com.apple.WebCore             	0x020dd591 -[WebCoreFrameBridge matchLabels:againstElement:] + 63 (WebCoreFrameBridge.mm:626)
5   com.apple.WebKit              	0x001bfc7c -[WebHTMLRepresentation matchLabels:againstElement:] + 58 (WebHTMLRepresentation.mm:320)
6   com.apple.Safari              	0x00090fc7 0x1000 + 589767
7   com.apple.Safari              	0x00091771 0x1000 + 591729
8   com.apple.Safari              	0x00091491 0x1000 + 590993
9   com.apple.Safari              	0x00091399 0x1000 + 590745
10  com.apple.Safari              	0x0008bb23 0x1000 + 568099
11  com.apple.Foundation          	0x91f29fce __NSFireDelayedPerform + 382
12  com.apple.CoreFoundation      	0x933a7b5e CFRunLoopRunSpecific + 4494
13  com.apple.CoreFoundation      	0x933a7d18 CFRunLoopRunInMode + 88
14  com.apple.HIToolbox           	0x947f86a0 RunCurrentEventLoopInMode + 283
15  com.apple.HIToolbox           	0x947f84b9 ReceiveNextEventCommon + 374
16  com.apple.HIToolbox           	0x947f832d BlockUntilNextEventMatchingListInMode + 106
17  com.apple.AppKit              	0x93a687d9 _DPSNextEvent + 657
18  com.apple.AppKit              	0x93a6808e -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
19  com.apple.Safari              	0x0000965e 0x1000 + 34398
20  com.apple.AppKit              	0x93a610c5 -[NSApplication run] + 795
21  com.apple.AppKit              	0x93a2e30a NSApplicationMain + 574
22  com.apple.Safari              	0x00002a76 0x1000 + 6774</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72266</commentid>
    <comment_count>1</comment_count>
      <attachid>19434</attachid>
    <who name="">mitz</who>
    <bug_when>2008-02-28 10:12:13 -0800</bug_when>
    <thetext>Created attachment 19434
Return early if the element name is empty</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72268</commentid>
    <comment_count>2</comment_count>
      <attachid>19434</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-28 10:17:15 -0800</bug_when>
    <thetext>Comment on attachment 19434
Return early if the element name is empty

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72269</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-28 10:20:34 -0800</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/projects/webkit/changeset/30647&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19434</attachid>
            <date>2008-02-28 10:12:13 -0800</date>
            <delta_ts>2008-02-28 10:17:15 -0800</delta_ts>
            <desc>Return early if the element name is empty</desc>
            <filename>17590_r1.diff</filename>
            <type>text/plain</type>
            <size>1645</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzMDY0NikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDgtMDItMjggIERhbiBCZXJuc3RlaW4gIDxtaXR6QGFwcGxlLmNv
bT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAtIGZp
eCBodHRwOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNzU5MA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BsaWtl
IHdvcmQgYm91bmRhcmllcywgZS5nLiwgImFkZHJlc3MyIgogICAgIHJlcGxhY2UobmFtZSwgUmVn
dWxhckV4cHJlc3Npb24oIlxcZCIpLCAiICIpOwogICAgIG5hbWUucmVwbGFjZSgnXycsICcgJyk7
Ci0gICAgCisKICAgICBSZWd1bGFyRXhwcmVzc2lvbiogcmVnRXhwID0gcmVnRXhwRm9yTGFiZWxz
KGxhYmVscyk7CiAgICAgLy8gVXNlIHRoZSBsYXJnZXN0IG1hdGNoIHdlIGNhbiBmaW5kIGluIHRo
ZSB3aG9sZSBuYW1lIHN0cmluZwogICAgIGludCBwb3M7CkBAIC0zMTUsNyArMzE4LDcgQEAgTlNT
dHJpbmcqIEZyYW1lOjptYXRjaExhYmVsc0FnYWluc3RFbGVtZQogICAgICAgICAgICAgICAgIGJl
c3RQb3MgPSBwb3M7CiAgICAgICAgICAgICAgICAgYmVzdExlbmd0aCA9IGxlbmd0aDsKICAgICAg
ICAgICAgIH0KLSAgICAgICAgICAgIHN0YXJ0ID0gcG9zKzE7CisgICAgICAgICAgICBzdGFydCA9
IHBvcyArIDE7CiAgICAgICAgIH0KICAgICB9IHdoaWxlIChwb3MgIT0gLTEpOwogCg==
</data>
<flag name="review"
          id="8502"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>