taser's People
taser's Issues
Running TASER with a mocha test suite
Hi TASER team!
I read your paper, really cool! I'm interested in trying to replicate running TASER with a mocha test suite (or some other javascript test suite as mentioned in the paper).
My current setup works just fine for the example.js
shipped in this repo, but when I try to run it with a simple javascript project having nothing other than an empty test:
describe('Missing assertions', function() {
it('cloneDeep directly from require', function() {
})
})
And running it instrumenting the mocha executable which lives normally under node_modules/mocha/bin/mocha
, with the following:
TASER_ROOT="..."
POLICY_FILE="$TASER_ROOT/src/DefaultPolicy.js" \
POLICY_OUT="model.json" \
LIBRARY_UNDER_TEST="lodash" \
bash -c "$TASER_ROOT/instrumented-node/node node_modules/mocha/bin/mocha"
I keep getting the following error:
Marked sink RegExp
Marked sink match
Marked sink search
Successfully loaded policy: /Users/thepalbi/Facultad/tesis/workspace/taser/src/DefaultPolicy.js
Successfully setup the analysis
`
Missing assertions
โ cloneDeep directly from require
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 12
at com.oracle.truffle.object.CoreLocations$LongArrayLocation.getOffset(CoreLocations.java:567)
at com.oracle.truffle.object.CoreLocations$LongArrayLocation.setLongInternal(CoreLocations.java:525)
at com.oracle.truffle.object.CoreLocations$LongArrayLocation.setLong(CoreLocations.java:531)
at com.oracle.truffle.object.CoreLocations$PrimitiveLocationDecorator.setLongInternal(CoreLocations.java:711)
at com.oracle.truffle.object.CoreLocations$DoubleLocationDecorator.setDouble(CoreLocations.java:818)
[...]
at com.oracle.truffle.js.nodes.instrumentation.DeclareTagProvider$MaterializedFunctionBodyNode.execute(DeclareTagProvider.java:155)
at com.oracle.truffle.js.nodes.function.FunctionRootNode.executeInRealm(FunctionRootNode.java:147)
at com.oracle.truffle.js.runtime.JavaScriptRealmBoundaryRootNode.execute(JavaScriptRealmBoundaryRootNode.java:93)
at com.oracle.truffle.api.impl.DefaultCallTarget.callDirectOrIndirect(DefaultCallTarget.java:84)
at com.oracle.truffle.api.impl.DefaultCallTarget.call(DefaultCallTarget.java:99)
at com.oracle.truffle.js.runtime.builtins.JSFunction.call(JSFunction.java:311)
at com.oracle.truffle.js.runtime.JSRuntime.call(JSRuntime.java:2493)
at com.oracle.truffle.trufflenode.GraalJSAccess.functionCall(GraalJSAccess.java:1424)
at com.oracle.truffle.trufflenode.GraalJSAccess.functionCall0(GraalJSAccess.java:1433)
Caused by: Attached Guest Language Frames (8)
I'm guessing my stacktrace doesn't help much, but wanted to ask if there was something special you did when running TASER alongside with javascript test suites? Almost certain that error occurs because of the instrumented NodeJS vm running the tests framework.
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.