[Soot-list] Problem in transforming Example code

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Sun Jan 31 11:06:40 EST 2010


Hello.

Can you try the latest Soot version, and especially the latest Jasmin
JAR file? You can find them here:
http://plg.uwaterloo.ca/~olhotak/build/

Eric

--
Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 31 January 2010 11:35, SUMEET SINGH <singhsumeet87 at gmail.com> wrote:
> Hi Eric
>
> I am new to Soot framework and for a start is trying around with some of the
> given examples. I am working with Soot-2.3.0 and is trying the example
> "Using soot to instrument a Class File" as given on:
> http://www.sable.mcgill.ca/soot/tutorial/profiler2/index.html. However,
> there seems to be a problem in transforming the output code.
>
> Command issued by me:
> java -cp
> '/home/sumeet/Desktop/polyglotclasses-1.3.5.jar':'/home/sumeet/Desktop/jasminclasses-2.3.0.jar':'/home/sumeet/Desktop/sootclasses-2.3.0.jar':/usr/share/java/libgcj.jar:.
> MainDriver TestInvoke
>
> where TestInvoke is the target class to be instrumented and libgcj.jar is
> for locating "java.lang.Object" as i am using gcj for java compiling. Result
> output is:
>
> Soot started on Sun Jan 31 15:59:42 GMT+05:30 2010
> Transforming TestInvoke...
> instrumenting method : <TestInvoke: void <clinit>()>
> instrumenting method : <TestInvoke: void <init>()>
> instrumenting method : <TestInvoke: void main(java.lang.String[])>
> instrumenting method : <TestInvoke: void foo()>
> instrumenting method : <TestInvoke: void bar()>
> Writing to sootOutput/TestInvoke.class
> Jasmin:28: Warning - Syntax error.
> Jasmin:28: Error - Couldn't repair and continue parse.
> Jasmin: Found 2 errors
>
>
> Can you please tell me what i am missing or doing wrong.
>
> Sincerely,
> Sumeet
>


More information about the Soot-list mailing list