<?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>20863</bug_id>
          
          <creation_ts>2008-09-15 15:45:01 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: addressOffset &lt; instructions.size() in CodeBlock::getHandlerForVPC</short_desc>
          <delta_ts>2008-09-17 19:57:47 -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>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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mjs</cc>
    
    <cc>oliver</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91258</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2008-09-15 15:45:01 -0700</bug_when>
    <thetext>~/Labyrinth/OpenSource/JavaScriptCore/tests/mozilla$ &quot;/Volumes/Big/ggaren/build/Debug/jsc&quot;  -s  -f ./js1_5/shell.js -f ./js1_5/Regress/regress-96128-n.js

BUGNUMBER: 96128
STATUS: Testing that JS infinite recursion protection works
ASSERTION FAILED: addressOffset &lt; instructions.size()
(/Volumes/Big/ggaren/Labyrinth/OpenSource/JavaScriptCore/VM/CodeBlock.cpp:978 bool JSC::CodeBlock::getHandlerForVPC(const JSC::Instruction*, JSC::Instruction*&amp;, int&amp;))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91259</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2008-09-15 15:45:30 -0700</bug_when>
    <thetext>Only fails in CTI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91266</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-09-15 16:20:04 -0700</bug_when>
    <thetext>The problem is that exception range info is not being correctly generated, now that op_get_by_id is emitted before op_construct and op_instanceof (in this case it is op_construct). I tried to make a quick fix to avoid the crash, but it doesn&apos;t seem to work.

I must leave now for a while, so I am unassigning this to myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91301</commentid>
    <comment_count>3</comment_count>
      <attachid>23457</attachid>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-09-15 19:36:46 -0700</bug_when>
    <thetext>Created attachment 23457
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91303</commentid>
    <comment_count>4</comment_count>
      <attachid>23457</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2008-09-15 19:40:22 -0700</bug_when>
    <thetext>Comment on attachment 23457
Proposed patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91572</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-09-17 19:57:47 -0700</bug_when>
    <thetext>Landed in r36472.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23457</attachid>
            <date>2008-09-15 19:36:46 -0700</date>
            <delta_ts>2008-09-15 19:40:22 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>construct.diff</filename>
            <type>text/plain</type>
            <size>1623</size>
            <attacher name="Cameron Zwarich (cpst)">zwarich</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDM2NDcx
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTggQEAKKzIwMDgtMDkt
MTUgIENhbWVyb24gWndhcmljaCAgPGN3endhcmljaEB1d2F0ZXJsb28uY2E+CisKKyAgICAgICAg
UmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQnVnIDIwODYzOiBBU1NFUlRJ
T04gRkFJTEVEOiBhZGRyZXNzT2Zmc2V0IDwgaW5zdHJ1Y3Rpb25zLnNpemUoKSBpbiBDb2RlQmxv
Y2s6OmdldEhhbmRsZXJGb3JWUEMKKyAgICAgICAgPGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD0yMDg2Mz4KKworICAgICAgICByMzY0MjcgY2hhbmdlZCB0aGUgbnVtYmVy
IG9mIGFyZ3VtZW50cyB0byBvcF9jb25zdHJ1Y3Qgd2l0aG91dCBjaGFuZ2luZworICAgICAgICB0
aGUgYXJndW1lbnQgaW5kZXggZm9yIHRoZSB2UEMgaW4gdGhlIGNhbGwgdG8gaW5pdGlhbGl6ZUNh
bGxGcmFtZSgpIGluCisgICAgICAgIHRoZSBDVEkgY2FzZS4gVGhpcyBjYXVzZWQgYSBKU0MgdGVz
dCBmYWlsdXJlLiBDb3JyZWN0aW5nIHRoZSBhcmd1bWVudAorICAgICAgICBpbmRleCBmaXhlcyB0
aGUgdGVzdCBmYWlsdXJlLgorCisgICAgICAgICogVk0vTWFjaGluZS5jcHA6CisgICAgICAgIChK
U0M6Ok1hY2hpbmU6OmN0aV9vcF9jb25zdHJ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cmVnaXN0ZXJCYXNlLCByLCBmaXJzdEFyZywg
YXJnQ291bnQsIGV4Y2VwdGlvblZhbHVlKTsK
</data>
<flag name="review"
          id="10475"
          type_id="1"
          status="+"
          setter="mjs"
    />
          </attachment>
      

    </bug>

</bugzilla>