[Soot-list] Multiple instances of Soot

Arzt, Steven steven.arzt at sit.fraunhofer.de
Wed Mar 6 12:23:10 EST 2019


Hi Gregor,



You might find G.reset() useful to reset all of the Singletons to their 
initial state. Afterwards, you can run Soot anew inside the same process.



Best regards,

  Steven



From: Soot-list <soot-list-bounces at cs.mcgill.ca> On Behalf Of Gregor Beatson
Sent: Wednesday, March 6, 2019 6:20 PM
To: soot-list at cs.mcgill.ca
Subject: [Soot-list] Multiple instances of Soot



Hi everyone,



I have a program which in main() creates an instance of a class 'A' (for 
simplicity) which runs some analysis on an Android app using Soot (one 
instance of 'A' per app, instance never reused for other apps). As I need to 
run this on multiple Android apps, at the moment that would involve running my 
program in a script. I was hoping to be able to do this in a single invocation 
of my program, i.e. creating multiple instances of 'A' within main(). With the 
singleton classes in Soot, however, I am not sure of the implications for 
this. Doing this using multiple threads and very quickly ran into errors, 
which I think is due to these singleton classes. Would the only ways around 
this be either a single-threaded for-loop, or using multiple processes rather 
than threads? Or is there something I have missed that may allow me to have a 
different instance of Soot per thread? Any help would be greatly appreciated.



Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20190306/9505721e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 9148 bytes
Desc: not available
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20190306/9505721e/attachment.p7s>


More information about the Soot-list mailing list