<?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>47057</bug_id>
          
          <creation_ts>2010-10-03 02:15:31 -0700</creation_ts>
          <short_desc>ASSERT(m_state = Open); is bad news bears</short_desc>
          <delta_ts>2010-10-03 11:46:21 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>288754</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-03 02:15:31 -0700</bug_when>
    <thetext>ASSERT(m_state = Open); is bad news bears</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288755</commentid>
    <comment_count>1</comment_count>
      <attachid>69586</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-03 02:16:59 -0700</bug_when>
    <thetext>Created attachment 69586
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288756</commentid>
    <comment_count>2</comment_count>
      <attachid>69586</attachid>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2010-10-03 02:20:11 -0700</bug_when>
    <thetext>Comment on attachment 69586
Patch

With gcc 4.5 would write a plugin to inspect basic blocks for ASSERTs... Good catch!!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288757</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-03 02:22:59 -0700</bug_when>
    <thetext>Committed r68986: &lt;http://trac.webkit.org/changeset/68986&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288769</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-10-03 10:33:08 -0700</bug_when>
    <thetext>Good to fix, but nearly harmless; the effect is local to the assertion. In a debug build we simply lose the assertion; but if the assertion was true then the statement has no effect. In a release build the expression is not even compiled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288773</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-03 11:19:16 -0700</bug_when>
    <thetext>Sure, but the bad case is if the assertion is false.  Then the statement masks the problem in Debug builds, but Release builds behave differently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288776</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-10-03 11:46:21 -0700</bug_when>
    <thetext>Good catch!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69586</attachid>
            <date>2010-10-03 02:16:59 -0700</date>
            <delta_ts>2010-10-03 02:20:11 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-47057-20101003021658.patch</filename>
            <type>text/plain</type>
            <size>1307</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdl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IFdlYkNvcmUvcGxhdGZvcm0vbmV0d29yay9jZi9Tb2NrZXRTdHJlYW1IYW5kbGVDRk5ldC5j
cHAJKHJldmlzaW9uIDY4OTgzKQorKysgV2ViQ29yZS9wbGF0Zm9ybS9uZXR3b3JrL2NmL1NvY2tl
dFN0cmVhbUhhbmRsZUNGTmV0LmNwcAkod29ya2luZyBjb3B5KQpAQCAtNTY1LDcgKzU2NSw3IEBA
IHZvaWQgU29ja2V0U3RyZWFtSGFuZGxlOjp3cml0ZVN0cmVhbUNhbGwKICAgICAgICAgICAgIGJy
ZWFrOwogICAgICAgICB9CiAKLSAgICAgICAgQVNTRVJUKG1fc3RhdGUgPSBPcGVuKTsKKyAgICAg
ICAgQVNTRVJUKG1fc3RhdGUgPT0gT3Blbik7CiAgICAgICAgIEFTU0VSVChtX2Nvbm5lY3RpbmdT
dWJzdGF0ZSA9PSBDb25uZWN0ZWQpOwogCiAgICAgICAgIHNlbmRQZW5kaW5nRGF0YSgpOwo=
</data>
<flag name="review"
          id="59297"
          type_id="1"
          status="+"
          setter="zecke"
    />
          </attachment>
      

    </bug>

</bugzilla>