Skip to content
New issue

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

jalangi.analyze does not always perform an analysis #58

Closed
esbena opened this issue Jun 26, 2015 · 3 comments
Closed

jalangi.analyze does not always perform an analysis #58

esbena opened this issue Jun 26, 2015 · 3 comments

Comments

@esbena
Copy link
Contributor

esbena commented Jun 26, 2015

Description

It seems that require('jalangi2').analyze(...) can fail to perform an analysis by silently not loading the application of interest.

When the failure occurs, it occurs on every instrument-and-analyze attempt for an application except for the first. The situation only occurs if the instrumented files are named the same as in the previous attempt.

Abstract example

$ node instrument-and-analyze.js test1.js instumentationDirectory
<<instumentationDirectory/test1.js outputs>>

$ node instrument-and-analyze.js test1.js instumentationDirectory
<<instumentationDirectory/test1.js outputs>>

$ node instrument-and-analyze.js test2.js instumentationDirectory
<<instumentationDirectory/test2.js outputs>>

$ node instrument-and-analyze.js test2.js instumentationDirectory
<<instumentationDirectory/test2.js NOT LOADED>>

Concrete example

See https://github.com/esbena/jalangi-api-caching-bug

Additional information

  • reproducible with node 0.10 and 0.12 on ubuntu.
  • src/js/commands/{instrument,jalangi,direct}.js does not encounter the problem
@msridhar
Copy link
Contributor

Reproduced; weird. I'm looking into it.

@msridhar
Copy link
Contributor

This was due to some horrible bug in ncp 2.0.0. Reverting to 0.6.0 fixed the problem. We should really fix #16 at some point.

BTW, @ksen007 this is exactly why I am against just updating library dependencies in package.json to the latest versions.

@msridhar
Copy link
Contributor

@esbena I published [email protected] in the npmjs database with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants