[Webkit-unassigned] [Bug 158796] New: Assertion failure or crash when accessing let-variable in TDZ with eval and AnnexB function block hoisting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 15 10:26:34 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=158796

            Bug ID: 158796
           Summary: Assertion failure or crash when accessing let-variable
                    in TDZ with eval and AnnexB function block hoisting
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andre.bargull at gmail.com

SVN: rev202088
Build with: perl Tools/Scripts/build-jsc --gtk --debug


The following test case triggers this assertion error:
---
ASSERTION FAILED: returnValue
---


Test case:
---
{ let b = {a: eval("function b(){ return b; }"), b: (1, eval)("(b())")}; }
---


Stack trace:
---
#0  0x00007ffff6de7098 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:317
#1  0x00007ffff694c7dc in JSC::checkedReturn (returnValue=...) at ../../Source/JavaScriptCore/interpreter/Interpreter.cpp:809
#2  0x00007ffff694f249 in JSC::Interpreter::execute (this=0x7ffff0def058, eval=0x7fffaf1fbe50, callFrame=0x7fffffffcb00, thisValue=..., scope=0x7fffaf1dbfc0)
    at ../../Source/JavaScriptCore/interpreter/Interpreter.cpp:1237
#3  0x00007ffff6bd3d41 in JSC::globalFuncEval (exec=0x7fffffffcb00) at ../../Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:673
...
---


Alternative test case which crashes:
---
{ let {b} = {a: eval("function b(){ return b; }"), b: (1, eval)("print(b())")}; }
---

Stack trace:
---
#0  0x0000000000448df0 in JSC::JSCell::isString (this=0x0) at ../../Source/JavaScriptCore/runtime/JSCellInlines.h:160
#1  0x0000000000449be6 in JSC::JSValue::isString (this=0x7fffffffbe50) at ../../Source/JavaScriptCore/runtime/JSCJSValueInlines.h:553
#2  0x00000000004445d8 in JSC::JSValue::toString (this=0x7fffffffbe50, exec=0x7fffffffbec0) at ../../Source/JavaScriptCore/runtime/JSString.h:765
#3  0x000000000043556f in functionPrint (exec=0x7fffffffbec0) at ../../Source/JavaScriptCore/jsc.cpp:1143
...
---

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160615/42bdebc9/attachment-0001.html>


More information about the webkit-unassigned mailing list