[Soot-list] problem with -process-dir for JVM98 benchmarks

Manjiri Namjoshi manjiri.namjoshi at googlemail.com
Mon Aug 4 14:35:59 EDT 2008


Hello,

I am working with JVM98 benchmarks.
I want to annotate all the class files for a particular benchmark.

For example i want to process all the classes in  _201_compress.
The directory structure is as follows:

jvm98/spec/benchmarks/_201_compress

And the classes in _201_compress have the package as
spec.benchmarks._201_compress
So, i guess, i have to run the Soot program to annotate the classfiles from
the jvm98 folder.

But then it will end up annotating other benchmarks as well.
Also, i tried doing that but it trows following exception:

[jvm98]$ java AnnExampleWrapper -process-dir . -p jb use-original-names:true

instance
Soot started on Mon Aug 04 13:21:28 CDT 2008
Exception in thread "main" java.lang.RuntimeException: Error: class
BasePeakGraph read in from a classfile in which class.BasePeakGraph was
expected.
        at soot.coffi.Util.resolveFromClassFile(Util.java:93)
        at soot.CoffiClassSource.resolve(CoffiClassSource.java:37)
        at soot.SootResolver.bringToHierarchy(SootResolver.java:148)
        at soot.SootResolver.bringToSignatures(SootResolver.java:172)
        at soot.SootResolver.processResolveWorklist(SootResolver.java:104)
        at soot.SootResolver.resolveClass(SootResolver.java:89)
        at soot.Scene.loadClass(Scene.java:336)
        at soot.Scene.loadClassAndSupport(Scene.java:321)
        at soot.Scene.loadNecessaryClasses(Scene.java:897)
        at soot.Main.run(Main.java:170)
        at soot.Main.main(Main.java:146)
        at AnnExampleWrapper.main(AnnExampleWrapper.java:25)


AnnExampleWrapper is my program.



Thanks !


Sincerely,
Manjiri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20080804/639517d7/attachment.htm


More information about the Soot-list mailing list