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

java frontend does not allow parallel execution #1207

Closed
DavidKorczynski opened this issue Aug 24, 2023 · 3 comments
Closed

java frontend does not allow parallel execution #1207

DavidKorczynski opened this issue Aug 24, 2023 · 3 comments

Comments

@DavidKorczynski
Copy link
Contributor

DavidKorczynski commented Aug 24, 2023

The following lines run the fuzz introspector frontend for java:

for CLASS in $(echo $ENTRYCLASS | tr ":" "\n")
do
echo $CLASS
java -Xmx6144M -cp "target/ossf.fuzz.introspector.soot-1.0.jar" ossf.fuzz.introspector.soot.CallGraphGenerator $JARFILE $CLASS $ENTRYMETHOD "$PACKAGEPREFIX" "$EXCLUDEMETHOD" "$SRCDIRECTORY" $AUTOFUZZ "$INCLUDEPREFIX===$EXCLUDEPREFIX===$SINKMETHOD"
done

In the case where a project has a lot of fuzzers it can take a bit of time to process all of the fuzzers, and it would be great to have some form of parallel execution in the above loop.

We could use a similar approach as the coverage runner in oss-fuzz:

https://github.com/google/oss-fuzz/blob/d253560ffd5611b136b81b183a72715f22a990a8/infra/base-images/base-runner/coverage#L367-L372

@DavidKorczynski
Copy link
Contributor Author

@arthurscchan could you take a look at this?

@DavidKorczynski
Copy link
Contributor Author

@DavidKorczynski
Copy link
Contributor Author

Am closing this. SOOT has some issues with having multiple processes analysing a .jar file it seems. Performance gains were found elsewhere.

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

1 participant