We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checked revision: 106b9c8 Build command: cmake -H. -Bout -DESCARGOT_HOST=linux -DESCARGOT_ARCH=x64 -DESCARGOT_MODE=debug -DESCARGOT_OUTPUT=bin -GNinja && ninja -C out
Linux-4.15.0-51-generic-x86_64-with-Ubuntu-18.04-bionic
EvalError.bind( ).call( )
escargot: ../src/runtime/PointerValue.h:287: Escargot::FunctionObject* Escargot::PointerValue::asFunctionObject(): Assertion `isFunctionObject()' failed. bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007ffff6466801 in __GI_abort () at abort.c:79 #2 0x00007ffff645639a in __assert_fail_base (fmt=0x7ffff65dd7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5555558420c4 "isFunctionObject()", file=file@entry=0x555555842075 "../src/runtime/PointerValue.h", line=line@entry=287, function=function@entry=0x555555843060 <Escargot::PointerValue::asFunctionObject()::__PRETTY_FUNCTION__> "Escargot::FunctionObject* Escargot::PointerValue::asFunctionObject()") at assert.c:92 #3 0x00007ffff6456412 in __GI___assert_fail (assertion=0x5555558420c4 "isFunctionObject()", file=0x555555842075 "../src/runtime/PointerValue.h", line=287, function=0x555555843060 <Escargot::PointerValue::asFunctionObject()::__PRETTY_FUNCTION__> "Escargot::FunctionObject* Escargot::PointerValue::asFunctionObject()") at assert.c:101 #4 0x00005555555cd85c in Escargot::PointerValue::asFunctionObject (this=0x7ffff4612970) at ../src/runtime/PointerValue.h:287 #5 0x00005555555d0d4e in Escargot::Value::asFunction (this=0x7fffffffce70) at ../src/runtime/ValueInlines.h:542 #6 0x0000555555717385 in Escargot::builtinFunctionCall (state=..., thisValue=..., argc=1, argv=0x7fffffffda10, isNewExpression=false) at ../src/runtime/GlobalObjectBuiltinFunction.cpp:201 #7 0x00005555556e6839 in Escargot::FunctionObject::processCall (this=0x7ffff4662430, state=..., receiverSrc=..., argc=1, argv=0x7fffffffda10, isNewExpression=false) at ../src/runtime/FunctionObject.cpp:328 #8 0x00005555556e46af in Escargot::FunctionObject::call (this=0x7ffff4662430, state=..., thisValue=..., argc=1, argv=0x7fffffffda10) at ../src/runtime/FunctionObject.h:169 #9 0x0000555555609655 in Escargot::FunctionObject::call (state=..., callee=..., thisValue=..., argc=1, argv=0x7fffffffda10) at ../src/runtime/FunctionObject.h:182 #10 0x000055555560cc22 in Escargot::ByteCodeInterpreter::interpret (state=..., byteCodeBlock=0x7ffff4678cd0, programCounter=93824999119536, registerFile=0x7fffffffd9e0) at ../src/interpreter/ByteCodeInterpreter.cpp:573 #11 0x0000555555639b31 in Escargot::Script::execute (this=0x7ffff45f16a0, state=..., isEvalMode=false, needNewEnv=false, isOnGlobal=true) at ../src/parser/Script.cpp:79 #12 0x0000555555639c83 in Escargot::Script::<lambda()>::operator()(void) const (__closure=0x7fffffffdd90) at ../src/parser/Script.cpp:92 #13 0x000055555563ac8c in std::_Function_handler<Escargot::Value(), Escargot::Script::sandboxExecute(Escargot::ExecutionState&)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/7/bits/std_function.h:302 #14 0x00005555557d410a in std::function<Escargot::Value ()>::operator()() const (this=0x7fffffffdd90) at /usr/include/c++/7/bits/std_function.h:706 #15 0x00005555557d2cbd in Escargot::SandBox::run(std::function<Escargot::Value ()> const&) (this=0x7fffffffdd00, scriptRunner=...) at ../src/runtime/SandBox.cpp:36 #16 0x0000555555639d60 in Escargot::Script::sandboxExecute (this=0x7ffff45f16a0, state=...) at ../src/parser/Script.cpp:93 #17 0x00005555557f075a in eval (context=0x7ffff4669ed0, str=0x7ffff45d0570, fileName=0x7ffff45d04d0, shouldPrintScriptResult=false) at ../src/shell/Shell.cpp:47 #18 0x00005555557f10bc in main (argc=2, argv=0x7fffffffe0b8) at ../src/shell/Shell.cpp:133
Found by Fuzzinator with grammarinator
The text was updated successfully, but these errors were encountered:
@renatahodovan Thank you for the report. I'll take a look at this issue and #287 issue too.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Escargot version:
OS:
Test case:
Backtrace:
Found by Fuzzinator with grammarinator
The text was updated successfully, but these errors were encountered: