Giter Club home page Giter Club logo

augur's People

Contributors

aralisza avatar arpell avatar emarteca avatar franktip avatar hfreeb avatar matt-blanco avatar mwaldrich avatar reallytg avatar trueblooda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

augur's Issues

execute `./docker-nodeprof/docker-build.sh` but get error `Connection refused`

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.

cases in tests-unit are not working

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?

Compiledoutput.drive is not a function

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.