<?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>152752</bug_id>
          
          <creation_ts>2016-01-05 12:37:39 -0800</creation_ts>
          <short_desc>Crash in regress/script-tests/Int16Array-bubble-sort.js.ftl-eager</short_desc>
          <delta_ts>2016-01-07 13:37:39 -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>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>132470</dup_id>
          
          <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="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Mark Lam">mark.lam</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1152830</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2016-01-05 12:37:39 -0800</bug_when>
    <thetext>I&apos;m seeing this test failure every time on my machine:

regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 1   0x10bf865c9 WTF::CrashOnOverflow::overflowed()
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 2   0x10c0b47bb JSC::CodeBlock::resultProfileForBytecodeOffset(int)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 3   0x10c14611d JSC::DFG::ByteCodeParser::makeDivSafe(JSC::DFG::Node*)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 4   0x10c137ebd JSC::DFG::ByteCodeParser::parseBlock(unsigned int)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 5   0x10c14259a JSC::DFG::ByteCodeParser::parseCodeBlock()
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 6   0x10c142906 JSC::DFG::ByteCodeParser::parse()
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 7   0x10c142b7d JSC::DFG::parse(JSC::DFG::Graph&amp;)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 8   0x10c250cb3 JSC::DFG::Plan::compileInThreadImpl(JSC::DFG::LongLivedState&amp;)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 9   0x10c250895 JSC::DFG::Plan::compileInThread(JSC::DFG::LongLivedState&amp;, JSC::DFG::ThreadData*)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 10  0x10c309cfc JSC::DFG::Worklist::runThread(JSC::DFG::ThreadData*)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 11  0x10c803f73 WTF::threadEntryPoint(void*)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 12  0x10c80433f WTF::wtfThreadEntryPoint(void*)
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 13  0x7fff8b5b8268 _pthread_body
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 14  0x7fff8b5b81e5 _pthread_body
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: 15  0x7fff8b5b641d thread_start
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: test_script_22385: line 2: 53407 Segmentation fault: 11  ( &quot;$@&quot; ../../../.vm/JavaScriptCore.framework/Resources/jsc --useFTLJIT\=false --useFunctionDotArguments\=true --useFTLJIT\=true --ftlCrashesIfCantInitializeLLVM\=true --thresholdForJITAfterWarmUp\=10 --thresholdForJITSoon\=10 --thresholdForOptimizeAfterWarmUp\=20 --thresholdForOptimizeAfterLongWarmUp\=20 --thresholdForOptimizeSoon\=20 --thresholdForFTLOptimizeAfterWarmUp\=20 --thresholdForFTLOptimizeSoon\=20 --maximumEvalCacheableSourceLength\=150000 Int16Array-bubble-sort.js )
regress/script-tests/Int16Array-bubble-sort.js.ftl-eager: ERROR: Unexpected exit code: 139

The failure appears to require the test to run concurrently to something.  It doesn&apos;t crash when you just do a standalone run.  In fact, I can run the test standalone &gt;700 times without seeing a crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1152841</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2016-01-05 12:46:34 -0800</bug_when>
    <thetext>It looks like this is due to us now being able to add result profiles not in bytecode order.  This will be fixed in my patch for https://bugs.webkit.org/show_bug.cgi?id=132470.

*** This bug has been marked as a duplicate of bug 132470 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153545</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2016-01-07 13:29:29 -0800</bug_when>
    <thetext>Found another source of a crasher.  De-dupping to apply the fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153555</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2016-01-07 13:37:39 -0800</bug_when>
    <thetext>Nevermind.  This specific crash is indeed fixed in the patch for https://bugs.webkit.org/show_bug.cgi?id=132470.  I&apos;ll handle the other crasher bug separately.

*** This bug has been marked as a duplicate of bug 132470 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>