<?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>126584</bug_id>
          
          <creation_ts>2014-01-07 10:51:03 -0800</creation_ts>
          <short_desc>ASSERT in compileArithNegate on pdfjs</short_desc>
          <delta_ts>2014-01-07 11:11:19 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Mark Hahnenberg">mhahnenberg</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>mhahnenberg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>965069</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2014-01-07 10:51:03 -0800</bug_when>
    <thetext>Steps to repro:

(1) Build a debug build (I used r161431).
(2) Run pdfjs
(3) ASSERT should fire</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965070</commentid>
    <comment_count>1</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2014-01-07 10:54:01 -0800</bug_when>
    <thetext>Backtrace?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965071</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2014-01-07 10:54:21 -0800</bug_when>
    <thetext>ASSERTION FAILED: m_isCheckingArgumentTypes || m_canExit
/Volumes/Data/WebKit-svn-clean/OpenSource/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp(113) : void JSC::DFG::SpeculativeJIT::speculationCheck(JSC::ExitKind, JSC::JSValueSource, JSC::DFG::Node *, MacroAssembler::Jump)
1   0x100739c60 WTFCrash
2   0x1002a6f30 JSC::DFG::SpeculativeJIT::speculationCheck(JSC::ExitKind, JSC::JSValueSource, JSC::DFG::Node*, JSC::AbstractMacroAssembler&lt;JSC::X86Assembler&gt;::Jump)
3   0x1002b63fb JSC::DFG::SpeculativeJIT::compileArithNegate(JSC::DFG::Node*)
4   0x1002f6a67 JSC::DFG::SpeculativeJIT::compile(JSC::DFG::Node*)
5   0x1002ada79 JSC::DFG::SpeculativeJIT::compileCurrentBlock()
6   0x1002ae276 JSC::DFG::SpeculativeJIT::compile()
7   0x100241034 JSC::DFG::JITCompiler::compileBody()
8   0x100242f60 JSC::DFG::JITCompiler::compileFunction()
9   0x1002a0e26 JSC::DFG::Plan::compileInThreadImpl(JSC::DFG::LongLivedState&amp;)
10  0x1002a05c2 JSC::DFG::Plan::compileInThread(JSC::DFG::LongLivedState&amp;)
11  0x10033e7f4 JSC::DFG::Worklist::runThread()
12  0x10033d8d5 JSC::DFG::Worklist::threadFunction(void*)
13  0x100788108 WTF::threadEntryPoint(void*)
14  0x100788eb8 WTF::wtfThreadEntryPoint(void*)
15  0x7fff898b8899 _pthread_body
16  0x7fff898b872a _pthread_struct_init
17  0x7fff898bcfc9 thread_start</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965072</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2014-01-07 10:55:01 -0800</bug_when>
    <thetext>More useful backtrace:

frame #0: 0x0000000100739c6a JavaScriptCore`WTFCrash + 42 at Assertions.cpp:341
    frame #1: 0x00000001002a6f30 JavaScriptCore`JSC::DFG::SpeculativeJIT::speculationCheck(this=0x0000000106822200, kind=NegativeZero, jsValueSource=JSValueSource at 0x000000010a54acc8, node=0x0000000000000000, jumpToFail=Jump at 0x000000010a54acb8) + 128 at DFGSpeculativeJIT.cpp:113
    frame #2: 0x00000001002b63fb JavaScriptCore`JSC::DFG::SpeculativeJIT::compileArithNegate(this=0x0000000106822200, node=0x000000010cfa9d80) + 1179 at DFGSpeculativeJIT.cpp:2906
    frame #3: 0x00000001002f6a67 JavaScriptCore`JSC::DFG::SpeculativeJIT::compile(this=0x0000000106822200, node=0x000000010cfa9d80) + 6663 at DFGSpeculativeJIT64.cpp:2419
    frame #4: 0x00000001002ada79 JavaScriptCore`JSC::DFG::SpeculativeJIT::compileCurrentBlock(this=0x0000000106822200) + 1881 at DFGSpeculativeJIT.cpp:1431
    frame #5: 0x00000001002ae276 JavaScriptCore`JSC::DFG::SpeculativeJIT::compile(this=0x0000000106822200) + 182 at DFGSpeculativeJIT.cpp:1543
    frame #6: 0x0000000100241034 JavaScriptCore`JSC::DFG::JITCompiler::compileBody(this=0x000000010a54fe80) + 36 at DFGJITCompiler.cpp:111
    frame #7: 0x0000000100242f60 JavaScriptCore`JSC::DFG::JITCompiler::compileFunction(this=0x000000010a54fe80) + 416 at DFGJITCompiler.cpp:336
    frame #8: 0x00000001002a0e26 JavaScriptCore`JSC::DFG::Plan::compileInThreadImpl(this=0x00000001062a8a50, longLivedState=0x000000010a550d00) + 1622 at DFGPlan.cpp:250
    frame #9: 0x00000001002a05c2 JavaScriptCore`JSC::DFG::Plan::compileInThread(this=0x00000001062a8a50, longLivedState=0x000000010a550d00) + 242 at DFGPlan.cpp:124
    frame #10: 0x000000010033e7f4 JavaScriptCore`JSC::DFG::Worklist::runThread(this=0x000000010979e460) + 468 at DFGWorklist.cpp:240
    frame #11: 0x000000010033d8d5 JavaScriptCore`JSC::DFG::Worklist::threadFunction(argument=0x000000010979e460) + 21 at DFGWorklist.cpp:261
    frame #12: 0x0000000100788108 JavaScriptCore`WTF::threadEntryPoint(contextData=0x000000010979c7f0) + 152 at Threading.cpp:69
    frame #13: 0x0000000100788eb8 JavaScriptCore`WTF::wtfThreadEntryPoint(param=0x000000010979ca00) + 296 at ThreadingPthreads.cpp:195
    frame #14: 0x00007fff898b8899 libsystem_pthread.dylib`_pthread_body + 138
    frame #15: 0x00007fff898b872a libsystem_pthread.dylib`_pthread_start + 137
    frame #16: 0x00007fff898bcfc9 libsystem_pthread.dylib`thread_start + 13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965078</commentid>
    <comment_count>4</comment_count>
      <attachid>220534</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2014-01-07 11:01:14 -0800</bug_when>
    <thetext>Created attachment 220534
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965080</commentid>
    <comment_count>5</comment_count>
      <attachid>220534</attachid>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2014-01-07 11:01:49 -0800</bug_when>
    <thetext>Comment on attachment 220534
the patch

Whoops! r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965083</commentid>
    <comment_count>6</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2014-01-07 11:11:19 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/161438</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>220534</attachid>
            <date>2014-01-07 11:01:14 -0800</date>
            <delta_ts>2014-01-07 11:01:48 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>1950</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09P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mVybyhub2RlLT5hcml0aE1vZGUoKSkpIHsKKyAgICAgICAgaWYgKHNob3VsZENoZWNrTmVn
YXRpdmVaZXJvKG5vZGUtPmFyaXRoTW9kZSgpKSkgewogICAgICAgICAgICAgc3BlY3VsYXRpb25D
aGVjaygKICAgICAgICAgICAgICAgICBOZWdhdGl2ZVplcm8sIEpTVmFsdWVSZWdzKCksIDAsCiAg
ICAgICAgICAgICAgICAgbV9qaXQuYnJhbmNoVGVzdDY0KE1hY3JvQXNzZW1ibGVyOjpaZXJvLCBy
ZXN1bHRHUFIpKTsK
</data>
<flag name="review"
          id="244263"
          type_id="1"
          status="+"
          setter="mhahnenberg"
    />
          </attachment>
      

    </bug>

</bugzilla>