[Soot-list] Error in the static inliner phase?

Mario Mendez mario at cs.unm.edu
Thu May 3 14:33:59 EDT 2007


Hi again,

When invoking soot in a simple Hello World class

package examples;

public class Hello {

	public static void main(String[] args) {
		System.out.println("Hello world");
	}

}


with the Whole program mode activated (copy of the ant parameters):

	  <arg value = "-f"/>
	  <arg value = "n"/>
	  <arg value = "-W"/>
	  <arg value = "-include-all"/>
	  <arg value = "--app"/>
	  <arg value = "-output-dir"/>
	  <arg value = "${ciao_lib}"/>	
           <arg value =  examples.Hello"/>



I obtain the following error:

      [java] Soot started on Thu May 03 12:24:00 MDT 2007
      [java] [Call Graph] For information on where the call graph may be 
incomplete, use the verbose option to the cg phase.
      [java] Exception in thread "main" java.lang.NullPointerException
      [java] 	at soot.util.HashChain.insertBefore(HashChain.java:169)
      [java] 	at soot.PatchingChain.insertBefore(PatchingChain.java:135)
      [java] 	at 
soot.jimple.toolkits.invoke.SiteInliner.inlineSite(SiteInliner.java:154)
      [java] 	at 
soot.jimple.toolkits.invoke.StaticInliner.internalTransform(StaticInliner.java:144)
      [java] 	at soot.SceneTransformer.transform(SceneTransformer.java:39)
      [java] 	at soot.Transform.apply(Transform.java:89)
      [java] 	at soot.ScenePack.internalApply(ScenePack.java:44)
      [java] 	at soot.Pack.apply(Pack.java:110)
      [java] 	at soot.PackManager.runWholeProgramPacks(PackManager.java:407)
      [java] 	at soot.PackManager.runPacks(PackManager.java:326)
      [java] 	at soot.Main.run(Main.java:203)
      [java] 	at soot.Main.main(Main.java:146)
      [java] 	at soot.CiaoMain.main(Unknown Source)
      [java] Java Result: 1


, which is not raised when the static inlining phase is deactivated (add 
this above):
	  <arg value = "-p"/>
	  <arg value = "wjop.si"/>
	  <arg value = "off"



More information about the Soot-list mailing list