[Soot-list] I got a heap memory error
Shim Gyuhang
plto001 at gmail.com
Tue Dec 20 04:21:35 EST 2011
Hello.
My name is Gyuhang from Fasoo.com Inc.
We have been used soot framework for analyzing Java codes.
Yesterday, we have a Heap Memory Error from soot framework while analyzing Android source codes.
The stack trace is like below.
Soot has run out of the memory allocated to it by the Java VM.
To allocate more memory to Soot, use the -Xmx switch to Java.
For example (for 400MB): java -Xmx400m soot.Main ...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.LinkedList.addBefore(LinkedList.java:778)
at java.util.LinkedList.addLast(LinkedList.java:164)
at soot.jimple.toolkits.typing.fast.QueuedSet.addLast(QueuedSet.java:64)
at soot.jimple.toolkits.typing.fast.QueuedSet.addLast(QueuedSet.java:74)
at soot.jimple.toolkits.typing.fast.TypeResolver.applyAssignmentConstraints(TypeResolver.java:450)
at soot.jimple.toolkits.typing.fast.TypeResolver.inferTypes(TypeResolver.java:113)
at soot.jimple.toolkits.typing.TypeAssigner.internalTransform(TypeAssigner.java:101)
at soot.BodyTransformer.transform(BodyTransformer.java:51)
at soot.Transform.apply(Transform.java:104)
at soot.JimpleBodyPack.applyPhaseOptions(JimpleBodyPack.java:66)
at soot.JimpleBodyPack.internalApply(JimpleBodyPack.java:89)
at soot.Pack.apply(Pack.java:124)
at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:117)
at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:82)
at soot.SootMethod.retrieveActiveBody(SootMethod.java:315)
at soot.PackManager.retrieveAllBodies(PackManager.java:989)
at soot.PackManager.runPacks(PackManager.java:338)
at soot.Main.run(Main.java:198)
at soot.Main.main(Main.java:141)
The command line input for soot framework is like below. (I located the package to /tmp directory.)
java -Xmx2048m -jar sootclasses.jar -cp /tmp org.apache.harmony.luni.tests.java.util.Arrays2Test -allow-phantom-refs
It will be very thankful, if you have me some advices.
The attached file below contains whole directory structure contains class file that causes Heap Memory Error.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.zip
Type: application/zip
Size: 5873 bytes
Desc: not available
Url : http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20111220/39869ec6/attachment.zip
-------------- next part --------------
--------------------------------------
Thanks.
Life is good. All the time. :)
Fasoo.com Inc, PA dev team
Gyuhang Shim starblood at fasoo.com
More information about the Soot-list
mailing list