<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Samanwita,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This looks as if either the code you are analyzing is broken or Soot front-end has issues. Can you be a bit more precise on what you are trying to analyze (APK file, Java bytecode, etc.)? What does your analysis code look like? What are your Soot command-line options? To debug the issue, I would also need the respective input files.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  Steven<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> soot-list-bounces@CS.McGill.CA [mailto:soot-list-bounces@CS.McGill.CA] <b>Im Auftrag von </b></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Samanwita Pal<br><b>Gesendet:</b> Donnerstag, 31. März 2016 00:00<br><b>An:</b> Soot-list@CS.McGill.CA<br><b>Betreff:</b> [Soot-list] Crash on creating an ExceptionalBlockGraph<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Hi,<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I am trying to get hold of all the basic blocks in the body of the function and identifying if they correspond to a cat block or not.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Whenever my test file has an explicit throw statement, the following line in my CustomSceneAnalysis fails :<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>BlockGraph bg = new ExceptionalBlockGraph(b);&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>where Body b = m.getActiveBody(); is executed somewhere before that.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>The stack trace is :<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>java.lang.IllegalStateException: UnitThrowAnalysis StmtSwitch: type of throw argument is not a RefType!<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.exceptions.AbstractThrowAnalysis.mightThrowExplicitly(AbstractThrowAnalysis.java:65)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.exceptions.UnitThrowAnalysis$UnitSwitch.caseThrowStmt(UnitThrowAnalysis.java:706)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.jimple.internal.JThrowStmt.apply(JThrowStmt.java:70)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.exceptions.UnitThrowAnalysis.mightThrow(UnitThrowAnalysis.java:241)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.ExceptionalUnitGraph$1.getThrowables(ExceptionalUnitGraph.java:807)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.ExceptionalBlockGraph.collectDests(ExceptionalBlockGraph.java:259)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.ExceptionalBlockGraph.buildExceptionDests(ExceptionalBlockGraph.java:217)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.ExceptionalBlockGraph.buildBlocks(ExceptionalBlockGraph.java:183)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.BlockGraph.&lt;init&gt;(BlockGraph.java:69)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.ExceptionalBlockGraph.&lt;init&gt;(ExceptionalBlockGraph.java:106)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.toolkits.graph.ExceptionalBlockGraph.&lt;init&gt;(ExceptionalBlockGraph.java:93)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at myCustomAnalysis$mySceneTransformer.internalTransform(myCustomAnalysis.java:65)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.SceneTransformer.transform(SceneTransformer.java:39)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.Transform.apply(Transform.java:90)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.ScenePack.internalApply(ScenePack.java:40)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.Pack.apply(Pack.java:121)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.PackManager.runWholeProgramPacks(PackManager.java:565)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.PackManager.runPacksNormally(PackManager.java:457)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.PackManager.runPacks(PackManager.java:392)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.Main.run(Main.java:271)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at soot.Main.main(Main.java:147)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:8.5pt;font-family:"Menlo","serif"'>                at myCustomAnalysis.main(myCustomAnalysis.java:23)<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;min-height:13px'><span style='font-size:8.5pt;font-family:"Menlo","serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Any pointers to why this is happening or how to avoid it will be helpful.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Samanwita<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>