[Soot-list] Error while writing instrumented class files

Steven Arzt Steven.Arzt at cased.de
Thu Oct 16 09:03:04 EDT 2014


Hi Rashmi,

When does the error occur? When running the instrumented class file or
already during Soot's transformation process? Can you provide the stack
trace of the exception if it happens inside Soot?

Best regards,
  Steven

-----Ursprüngliche Nachricht-----
Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von Rashmi Mudduluru
Gesendet: Mittwoch, 15. Oktober 2014 18:37
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] Error while writing instrumented class files

Hi,

I am instrumenting a class file in soot and I get the error message -
"Negative Stack Logical height has been attained".

The code snippet is as follows:

Chain units = b.getUnits();
Iterator<Unit> unitIt = units.snapshotIterator(); while (unitIt.hasNext()) {
        Unit u = unitIt.next();
        if((Stmt)u instanceof AssignStmt){
        InvokeExpr incExpr= Jimple.v().newStaticInvokeExpr(test.makeRef());
        Stmt incStmt = Jimple.v().newInvokeStmt(incExpr);
        Stmt stmt = (Stmt)u;
        units.insertBefore(incStmt, stmt); } }

Is anyone aware of this issue?

Thanks,
Rashmi.


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

_______________________________________________
Soot-list mailing list
Soot-list at CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list



More information about the Soot-list mailing list