[Soot-list] exception happened during analysis

xwlin.roy at gmail.com xwlin.roy at gmail.com
Mon Aug 15 10:20:03 EDT 2016


I don't know how to solve this issue.But I advise you to use soot nightly 
build edition.Soot-2.5.0 is too old.
https://ssebuild.cased.de/nightly/soot/lib/

在 2016年8月13日星期六 UTC+8上午3:46:13,Yue Duan写道:
>
> Hi there,
>
> Sorry to bother. I encountered an exception during analysis using 
> soot-2.5.0. I was trying to generate control-flow graph and had this 
> exception.
>
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: 
> String index out of range: -1
> at java.lang.String.substring(String.java:1967)
> at 
> soot.coffi.CONSTANT_Methodref_info.createJimpleConstantValue(CONSTANT_Methodref_info.java:102)
> at 
> soot.coffi.CONSTANT_MethodHandle_info.createJimpleConstantValue(CONSTANT_MethodHandle_info.java:72)
> at soot.coffi.CFG.generateJimple(CFG.java:4342)
> at soot.coffi.CFG.jimplify(CFG.java:1267)
> at soot.coffi.CFG.jimplify(CFG.java:955)
> at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:100)
> at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:89)
> at soot.SootMethod.retrieveActiveBody(SootMethod.java:322)
> at 
> soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processNewMethod(OnFlyCallGraphBuilder.java:531)
> at 
> soot.jimple.toolkits.callgraph.OnFlyCallGraphBuilder.processReachables(OnFlyCallGraphBuilder.java:426)
> at 
> soot.jimple.toolkits.callgraph.CallGraphBuilder.build(CallGraphBuilder.java:84)
> at 
> soot.jimple.toolkits.callgraph.CHATransformer.internalTransform(CHATransformer.java:43)
> at soot.SceneTransformer.transform(SceneTransformer.java:39)
> at soot.Transform.apply(Transform.java:89)
> at soot.RadioScenePack.internalApply(RadioScenePack.java:57)
> at 
> soot.jimple.toolkits.callgraph.CallGraphPack.internalApply(CallGraphPack.java:49)
> at soot.Pack.apply(Pack.java:114)
> at soot.PackManager.runWholeProgramPacks(PackManager.java:417)
> at soot.PackManager.runPacks(PackManager.java:336)
> at soot.Main.run(Main.java:198)
> at soot.Main.main(Main.java:141)
>
> Seems like the nameAndType string doesn't contain ":" when executing 
>
> *String name = nameAndType.substring(0, nameAndType.indexOf(":"));*
>
>
> So I printed the string out as follows:
> *nameAndType: lambda$getHeadlessProperty$0*
>
>
> Could you please help me fix this issue?
>
> Thanks,
> Yue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20160815/e923cb97/attachment-0001.html 


More information about the Soot-list mailing list