<?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>118664</bug_id>
          
          <creation_ts>2013-07-15 02:21:53 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: m_startOffset &gt;= m_divotLineStart in JSC::ResolveNode::ResolveNode</short_desc>
          <delta_ts>2013-07-22 09:33:59 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>118662</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">rhodovan.u-szeged</reporter>
          <assigned_to name="Mark Lam">mark.lam</assigned_to>
          <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mhahnenberg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>908347</commentid>
    <comment_count>0</comment_count>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2013-07-15 02:21:53 -0700</bug_when>
    <thetext>The following test crashes on the assertion above:

function toFuzz() {
    for (var conf = new ConfigObject({
    }) in str1.localeCompare) {
    }
}

toFuzz();


Tested on Linux 13.04 PC, x86_64


The backtrace:
==============

Program received signal SIGSEGV, Segmentation fault.
0x0000000000435185 in WTFCrash () at /home/reni/Data/REPOS/webkitnix/Source/WTF/wtf/Assertions.cpp:339
339	    *(int *)(uintptr_t)0xbbadbeef = 0;
(gdb) bt 
#0  0x0000000000435185 in WTFCrash () at /home/reni/Data/REPOS/webkitnix/Source/WTF/wtf/Assertions.cpp:339
#1  0x000000000073878b in JSC::ResolveNode::ResolveNode (this=0xeeded0, location=..., ident=..., startOffset=33, divotLine=3, divotLineStart=59)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/NodeConstructors.h:112
#2  0x000000000073b4d9 in JSC::ForInNode::ForInNode (this=0xeede88, vm=0xecfb60, location=..., ident=..., in=0xeedd90, expr=0xeede30, statement=0xeede68, 
    divot=38, startOffset=5, endOffset=27, divotLine=3, divotLineStart=59)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/NodeConstructors.h:828
#3  0x000000000073d779 in JSC::ASTBuilder::createForInLoop (this=0x7fffffffba00, location=..., ident=0xeefc10, initializer=0xeedd90, iter=0xeede30, 
    statements=0xeede68, start=33, divot=66, end=87, initStart=38, initEnd=65, startLine=2, endLine=3, divotLine=3, divotLineStart=59)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/ASTBuilder.h:381
#4  0x000000000074cc3f in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseForStatement&lt;JSC::ASTBuilder&gt; (this=0x7fffffffc000, context=...)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:394
#5  0x0000000000749958 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseStatement&lt;JSC::ASTBuilder&gt; (this=0x7fffffffc000, context=..., 
    directive=@0x7fffffffb818: 0x0, directiveLiteralLength=0x7fffffffb800) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:761
#6  0x0000000000753756 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseSourceElements&lt;(JSC::SourceElementsMode)1, JSC::ASTBuilder&gt; (this=0x7fffffffc000, 
    context=...) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:172
#7  0x000000000074b4fd in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseBlockStatement&lt;JSC::ASTBuilder&gt; (this=0x7fffffffc000, context=...)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:724
#8  0x00000000007497f2 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseStatement&lt;JSC::ASTBuilder&gt; (this=0x7fffffffc000, context=..., 
    directive=@0x7fffffffb948: 0x0, directiveLiteralLength=0x7fffffffb930) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:741
#9  0x0000000000747a53 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseSourceElements&lt;(JSC::SourceElementsMode)0, JSC::ASTBuilder&gt; (this=0x7fffffffc000, 
    context=...) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:172
#10 0x0000000000740a91 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseInner (this=0x7fffffffc000)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.cpp:118
#11 0x0000000000624de8 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parse&lt;JSC::FunctionBodyNode&gt; (this=0x7fffffffc000, error=...)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.h:1023
#12 0x000000000062426b in JSC::parse&lt;JSC::FunctionBodyNode&gt; (vm=0xecfb60, source=..., parameters=0xedd1f0, name=..., strictness=JSC::JSParseNormal, 
    parserMode=JSC::JSParseFunctionCode, error=...) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/parser/Parser.h:1091
#13 0x0000000000621fc9 in JSC::generateFunctionCodeBlock (vm=..., scope=0x7ffff7f5f870, executable=0x7fffb437ff90, source=..., kind=JSC::CodeForCall, 
    debuggerMode=JSC::DebuggerOff, profilerMode=JSC::ProfilerOff, error=...)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:52
#14 0x0000000000622ade in JSC::UnlinkedFunctionExecutable::codeBlockFor (this=0x7fffb437ff90, vm=..., scope=0x7ffff7f5f870, source=..., 
    specializationKind=JSC::CodeForCall, debuggerMode=JSC::DebuggerOff, profilerMode=JSC::ProfilerOff, error=...)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:161
#15 0x00000000004eda7e in JSC::FunctionExecutable::produceCodeBlockFor (this=0x7fffb43bfd70, scope=0x7ffff7f5f870, specializationKind=JSC::CodeForCall, 
    exception=@0x7fffffffcb98: 0x0) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/runtime/Executable.cpp:503
#16 0x00000000004eddcd in JSC::FunctionExecutable::compileForCallInternal (this=0x7fffb43bfd70, exec=0x7fffb44020a0, scope=0x7ffff7f5f870, 
    jitType=JSC::JITCode::BaselineJIT, bytecodeIndex=4294967295) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/runtime/Executable.cpp:533
#17 0x0000000000498b08 in JSC::FunctionExecutable::compileForCall (this=0x7fffb43bfd70, exec=0x7fffb44020a0, scope=0x7ffff7f5f870)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/runtime/Executable.h:612
#18 0x00000000004b4ad2 in JSC::FunctionExecutable::compileFor (this=0x7fffb43bfd70, exec=0x7fffb44020a0, scope=0x7ffff7f5f870, kind=JSC::CodeForCall)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/runtime/Executable.h:670
#19 0x00000000007abff4 in JSC::LLInt::setUpCall (execCallee=0x7fffb44020a0, pc=0xeed568, kind=JSC::CodeForCall, calleeAsValue=&lt;incomplete type&gt;, 
    callLinkInfo=0xef0520) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:1392
#20 0x00000000007ac391 in JSC::LLInt::genericCall (exec=0x7fffb4402058, pc=0xeed568, kind=JSC::CodeForCall)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:1434
#21 0x00000000007a9667 in JSC::LLInt::llint_slow_path_call (exec=0x7fffb4402058, pc=0xeed568)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:1440
#22 0x00000000005d4185 in llint_op_call ()
#23 0x00007fffb4402058 in ?? ()
#24 0x0000000000edf610 in ?? ()
#25 0x00007fffffffce00 in ?? ()
#26 0x000000000049aa77 in JSC::JSStack::installTrapsAfterFrame (this=0x0, frame=0x0)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/interpreter/JSStackInlines.h:212
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
#27 0x0000000000497fec in JSC::JITCode::execute (this=0x7fffb43bfe90, stack=0xedf610, callFrame=0x7fffb4402058, vm=0xecfb60)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/jit/JITCode.h:135
#28 0x000000000049405c in JSC::Interpreter::execute (this=0xedf600, program=0x7fffb43bfe70, callFrame=0x7ffff7f5f8d8, thisObj=0x7ffff7e6feb0)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/interpreter/Interpreter.cpp:948
#29 0x00000000004e9785 in JSC::evaluate (exec=0x7ffff7f5f8d8, source=..., thisValue=&lt;incomplete type&gt;, returnedException=0x7fffffffd970)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/runtime/Completion.cpp:83
#30 0x000000000041f710 in runWithScripts (globalObject=0x7ffff7f5f870, scripts=..., dump=false)
    at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/jsc.cpp:600
#31 0x00000000004205b6 in jscmain (argc=2, argv=0x7fffffffdc38) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/jsc.cpp:816
#32 0x000000000041f50d in main (argc=2, argv=0x7fffffffdc38) at /home/reni/Data/REPOS/webkitnix/Source/JavaScriptCore/jsc.cpp:558</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908348</commentid>
    <comment_count>1</comment_count>
      <attachid>206648</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2013-07-15 02:23:35 -0700</bug_when>
    <thetext>Created attachment 206648
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908470</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2013-07-15 11:36:59 -0700</bug_when>
    <thetext>ref: &lt;rdar://problem/14423494&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>910698</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2013-07-22 09:33:59 -0700</bug_when>
    <thetext>The test case is different, but this is a duplicate of https://bugs.webkit.org/show_bug.cgi?id=118662.  Closing as dup.

*** This bug has been marked as a duplicate of bug 118662 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>206648</attachid>
            <date>2013-07-15 02:23:35 -0700</date>
            <delta_ts>2013-07-15 02:23:35 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>m_startOffset.js</filename>
            <type>application/javascript</type>
            <size>110</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">ZnVuY3Rpb24gdG9GdXp6KCkgewogICAgZm9yICh2YXIgY29uZiA9IG5ldyBDb25maWdPYmplY3Qo
ewogICAgfSkgaW4gc3RyMS5sb2NhbGVDb21wYXJlKSB7CiAgICB9Cn0KCnRvRnV6eigpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>