Error encountered while using Booster on the output of play-out agent

78 views
Skip to first unread message

Aritra Sengupta

unread,
Sep 11, 2013, 6:11:31 PM9/11/13
to tamiflex...@googlegroups.com
Hi All,
          I am trying to get the DaCapo 9.12 byte code transformed by TamiFlex play-out agent and bosster so that I can run static analysis on it.
          I am getting the following error  when I am trying to use booster  on the class files and log generated in the out directory for avrora small.
For first step I have used the comand:

java -javaagent:poa-2.0.1.jar -jar dacapo-9.12-bach.jar avrora -s small
For the second step:
java -jar booster-2.0.1.jar -p cg reflection-log:out/refl.log -cp out:scratch -main-class Harness Harness

I am getting the following error.

Exception in thread "main" java.lang.RuntimeException: Line: 'Array.newInstance;java.lang.String[];java.util.Arrays.copyOf;2772;;'
at soot.Scene.addReflectionTraceClasses(Scene.java:1033)
at soot.Scene.loadBasicClasses(Scene.java:985)
at soot.Scene.loadNecessaryClasses(Scene.java:1060)
at soot.Main.run(Main.java:167)
at soot.Main.main(Main.java:141)
at de.bodden.tamiflex.booster.ReflInliner.main(ReflInliner.java:53)
Caused by: java.lang.RuntimeException: Unknown entry kind: Array.newInstance
at soot.Scene.addReflectionTraceClasses(Scene.java:1030)
... 5 more

This error was already there in the discussion list. in the poa-2.0.1.jar there is a file poa.properties. I have removed the following :
de.bodden.tamiflex.playout.transformation.array.ArrayNewInstanceTransformation \
de.bodden.tamiflex.playout.transformation.array.ArrayMultiNewInstanceTransformation \

and created  the jar back again. Even then the error still persists.

Could you please point me to the error in my steps.

Thanks,
Aritra Sengupta.
PhD Student.
Dept of Computer Science & Engineering.
The Ohio State University.




Eric Bodden

unread,
Sep 12, 2013, 7:29:49 AM9/12/13
to tamiflex...@googlegroups.com
Hi Aritra.

Please read the documentation about the configuration files. The file you need to alter is typically in your home directory, not in the JAR file:

https://code.google.com/p/tamiflex/wiki/ConfigurationFile says:
TamiFlex looks for those files first in the current working directory and, if no such file exists, also in ${HOME}/.tamiflex. If the respective file cannot be found there, a default file will be created. You can modify this file to your liking. The defaults below hold if this configuration file contains no value for the respective setting.

Eric
> --
> You received this message because you are subscribed to the Google Groups "tamiflex-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tamiflex-discu...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Aritra Sengupta

unread,
Sep 12, 2013, 11:38:15 AM9/12/13
to tamiflex...@googlegroups.com
Hi Eric,
          I have modified the ${HOME}/.tamiflex/poa.properties and removed the first transformation to start with. Now I am getting the following error in Step 1:

sengupta@clouds transByte]$ java -javaagent:poa-2.0.1.jar -jar dacapo-9.12-bach.jar avrora -s small
============================================================
TamiFlex Play-Out Agent Version 2.0.1
Loaded properties from /home/sengupta/.tamiflex/poa.properties
*** java.lang.instrument ASSERTION FAILED ***: "!errorOccurred" at ../../../src/share/instrument/JPLISAgent.c line: 1084
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:343)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:358)
Caused by: java.lang.OutOfMemoryError
at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)
at de.bodden.tamiflex.playout.Agent.instrumentClassesForLogging(Agent.java:239)
at de.bodden.tamiflex.playout.Agent.premain(Agent.java:105)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Aborted (core dumped)

Without removal of the first line in the file : de.bodden.tamiflex.playout.transformation.array.ArrayNewInstanceTransformation \

the class files and log are dumped properly for avrora. (I removed the line while trying to actually resolve the error that I was getting using the booster).


Thanks,
Aritra Sengupta.
PhD Student.
Dept of Computer Science & Engineering.
The Ohio State University.


You received this message because you are subscribed to a topic in the Google Groups "tamiflex-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tamiflex-discuss/ipRD8rCk85k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tamiflex-discu...@googlegroups.com.

Eric Bodden

unread,
Sep 13, 2013, 11:39:52 AM9/13/13
to tamiflex...@googlegroups.com
Strange...

Did you try giving it more memory?

Eric
Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC SPRIDE
Tel: +49 6151 16-75422 Fax: +49 6151 16-72051
Room 3.2.14, Mornewegstr. 30, 64293 Darmstadt

Aritra Sengupta

unread,
Sep 13, 2013, 1:55:35 PM9/13/13
to tamiflex...@googlegroups.com
Yes I am using the following command.
java -Xmx3072m -javaagent:poa-2.0.1.jar -jar dacapo-9.12-bach.jar avrora -s small
In the discussion list a similar issue was posted https://groups.google.com/d/msg/tamiflex-discuss/6q6ShId_TIw/AHKfp8pyG8MJ
which was possibly because of white space in the properties file. Not quite sure how to fix that if that's the case.

Thanks,
Aritra Sengupta.
PhD Student.
Dept of Computer Science & Engineering.
The Ohio State University.


Reply all
Reply to author
Forward
0 new messages