nuprl / augur Goto Github PK
View Code? Open in Web Editor NEWPerformant taint analysis for Node.js
License: Universal Permissive License v1.0
Performant taint analysis for Node.js
License: Universal Permissive License v1.0
The details of the error are as follows
#10 1872.7 Compiling com.oracle.truffle.nfi.test with javac-daemon(JDK 1.8): Failed due to error: [Errno 111] Connection refused
#10 1872.7 Process Process-176:
#10 1872.7 Traceback (most recent call last):
#10 1872.7 File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
#10 1872.7 self.run()
#10 1872.7 File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
#10 1872.7 self._target(*self._args, **self._kwargs)
#10 1872.7 File "/root/mx/mx.py", line 14410, in executeTask
#10 1872.7 task.execute()
#10 1872.7 File "/root/mx/mx.py", line 5140, in execute
#10 1872.7 _built = self.build()
#10 1872.7 File "/root/mx/mx.py", line 7540, in build
#10 1872.7 self.compiler.compile(self.compileArgs)
#10 1872.7 File "/root/mx/mx.py", line 7901, in compile
#10 1872.7 return self.daemon.compile(nonJvmArgs)
#10 1872.7 File "/root/mx/mx.py", line 7985, in compile
#10 1872.7 s.connect(('127.0.0.1', self.port))
#10 1872.7 File "/usr/lib/python2.7/socket.py", line 228, in meth
#10 1872.7 return getattr(self._sock,name)(*args)
#10 1872.8 error: [Errno 111] Connection refused
#10 1876.1 Compiling com.oracle.truffle.nfi.test with javac-daemon(JDK 1.8) failed
#10 1876.1 1 build tasks failed
------
executor failed running [/bin/sh -c (cd /root/nodeprof && (mx update && mx sforceimports && mx build))]: exit code: 1
I am using macOS 11.6 and Docker's version is 20.10.5.
Do you know the reason for the error?Thanks in advance.
I tried to run test case in tests-unit, but I found that it can't find taint flow and results are different from expectedFlows.
I executed command as follows:
node ./runner/cli.js ../tests-unit/input/arguments-1-tainted/ project .
and I got result:
Source file: /data00/home/zhaohongxia/whitebox/augur/tests-unit/input/arguments-1-tainted/test.js
Executing instructions from /data00/home/zhaohongxia/whitebox/augur/ts/project_out.js with the specification: {
main: 'test.js',
sources: [ { type: 'variable', name: 'a', location: [Object] } ],
sinks: [ { type: 'variable', name: 'z', location: [Object] } ],
expectedFlows: [ { type: 'variable', name: 'z', location: [Object] } ]
}
---
No flows found.
I executed command as follows:
cd tests-unit/input/benchmark-os-toolbox
npm install os-tool
cd ../../../ts
node ./runner/cli.js ../tests-unit/input/benchmark-os-toolbox/ project .
and I got result:
Source file: /data00/home/zhaohongxia/whitebox/augur/tests-unit/input/benchmark-os-toolbox/os-toolbox.js
Executing instructions from /data00/home/zhaohongxia/whitebox/augur/ts/project_out.js with the specification: {
main: 'os-toolbox.js',
sources: [
{
type: 'functionInvocation',
name: 'dummySource',
location: [Object]
}
],
sinks: [ { type: 'functionInvocation', name: 'exec' } ],
expectedFlows: [ { type: 'functionInvocation', name: 'exec' } ]
}
---
No flows found.
Then I executed command as follows:
cd ../tests-unit/input/benchmark-sequelize-sql/
npm install sequelize
cd ../../../ts
node ./runner/cli.js ../tests-unit/input/benchmark-sequelize-sql/ project .
Then I got an error directly:
RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded
(node:925544) UnhandledPromiseRejectionWarning: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at /data00/home/zhaohongxia/whitebox/augur/ts/runner/cli.js:23:63
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:925544) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:925544) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Is it because the tool can't execute the test case correctly or because I'm doing it wrong?
I'm getting this issue when trying to apply augur to a demo-app, which is a naked expressJs app.
TypeError: compiledOutput.drive is not a function
at executeInstructionsFromFile (/home/lpi/augur/ts/dist/src/utils.js:195:20)
at exports.run (/home/lpi/augur/ts/runner/run.js:225:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Tried using the default spec.json, but it doesn't seem to do anything. Does this happen when I'm using a native function or something along those lines?
I install the docker based on the https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
However, after this, I find I can't successfully init the nodeprof for it return copy wrong.
Step 8/10 : COPY ${nodeprof_repo} /root/nodeprof
COPY failed: file not found in build context or excluded by .dockerignore: stat nodeprof-clones/vanilla/nodeprof.js: file does not exist
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.