Comments (4)
We finally able to track it down. It turned out even if we don't specify -DESCARGOT_DEBUGGER=1
, it is somewhere in the cmake cache, and somehow emitting disabled breakpoints cause the line info issues.
from escargot.
Hello!
When I test your sample code by escargot (revision 66d9545), it shows the backtrace info correctly as follows.
Uncaught 4:
test.js (5:8)
test.js (7:6)
Is this problem occurred only for debugger?
Would you please explain the case more specifically when it is occurred?
from escargot.
I also tried this test, and get the former output (with issue.js (6:7)
). This is my cmake command:
`cmake -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DESCARGOT_HOST=linux -DESCARGOT_MODE=release -DESCARGOT_ARCH=x86 -DESCARGOT_OUTPUT=shell -GNinja``
Debugger is not enabled. I tried both debug
and release
modes and both x86
and x64
but I still get the same output. How do you compile Escargot?
from escargot.
I tried debug
and release
mode too.
I run the sample file(issue.js
) with standalone escargot.
My compile command :
"cmake -DESCARGOT_HOST=linux -DESCARGOT_ARCH=x64 -DESCARGOT_MODE=debug -DESCARGOT_OUTPUT=shell_test -GNinja"
from escargot.
Related Issues (20)
- Assertion `context->m_registerStack->size() == before' failed in Escargot::ExpressionStatementNode::generateStatementByteCode HOT 1
- SEGV on unknown address in Escargot::ExecutionState::hasRareData()
- SEGV on unknown address in Escargot::EncodedValue::readPointerIsNumberEncodedValue
- SEGV on unknown address in Escargot::TightVector
- stack-overflow in third_party/yarr/YarrPattern.cpp
- Assertion `slot.m_index != (18446744073709551615UL)' failed in Escargot::GlobalEnvironmentRecord::setMutableBindingByBindingSlot
- Assertion `findResult.first != (18446744073709551615UL)' failed in Escargot::Object::redefineOwnProperty HOT 1
- Assertion `isPointerValue()' failed in Escargot::PointerValue* Escargot::Value::asPointerValue HOT 1
- Assertion `m_optionalChainingJumpPositionLists.size()' failed in Escargot::ByteCodeGenerateContext::addOptionalChainingJumpPosition HOT 1
- stack-overflow in Escargot::ObjectStructureWithoutTransition::lastFoundPropertyIndex
- RELEASE_ASSERT_NOT_REACHED at src/runtime/EnvironmentRecord.h (94) HOT 1
- memcpy-param-overlap in Escargot::VectorCopier HOT 1
- terminate called after throwing an instance of 'Escargot::esprima::Error*' in Escargot::esprima::Parser::parsePrimaryExpression HOT 1
- Null pointer dereference in Escargot::NativeFunctionObject::processNativeFunctionCall HOT 1
- dynamic-stack-buffer-overflow in Escargot::PointerValue::getTypeTag
- global-buffer-overflow in Escargot::InterpreterSlowPath::unaryTypeof
- SEGV on unknown address in Escargot::InterpreterSlowPath::markEnumerateKey
- Invalid pointer passed to free() related to ArrayObject HOT 1
- Null pointer dereference in Escargot::EnumerateObject::checkLastEnumerateKey
- Inquiry about Security Policy and CVE Management HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from escargot.