Skip to content

stack underrun: AsmMethodSource.convertMethodInsn #327

@kadirayk

Description

@kadirayk

Occurs when running:

  • testDynamicInterfaceMethod2
  • testDynamicInterfaceMethod4
  • testVirtualCall1
  • testVirtualCall3
  • testMap1
java.lang.RuntimeException: Failed to convert <javax.security.auth.AuthPermission: void <init>(java.lang.String)>

	at de.upb.swt.soot.java.bytecode.frontend.AsmMethodSource.resolveBody(AsmMethodSource.java:205)
	at de.upb.swt.soot.core.model.SootMethod.lazyBodyInitializer(SootMethod.java:86)
	at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:166)
	at de.upb.swt.soot.core.model.SootMethod.getBody(SootMethod.java:132)
	at de.upb.swt.soot.core.model.SootMethod.hasBody(SootMethod.java:137)
	at de.upb.swt.soot.callgraph.AbstractCallGraphAlgorithm.resolveAllCallsFromSourceMethod(AbstractCallGraphAlgorithm.java:93)
	at de.upb.swt.soot.callgraph.AbstractCallGraphAlgorithm.processWorkList(AbstractCallGraphAlgorithm.java:67)
	at de.upb.swt.soot.callgraph.AbstractCallGraphAlgorithm.constructCompleteCallGraph(AbstractCallGraphAlgorithm.java:48)
	at de.upb.swt.soot.callgraph.ClassHierarchyAlgorithm.initialize(ClassHierarchyAlgorithm.java:54)
	at de.upb.swt.soot.test.callgraph.ClassHierarchyAlgorithmTest.loadCallGraph(ClassHierarchyAlgorithmTest.java:68)
...
Caused by: java.lang.RuntimeException: Stack underrun
	at de.upb.swt.soot.java.bytecode.frontend.OperandStack.pop(OperandStack.java:85)
	at de.upb.swt.soot.java.bytecode.frontend.AsmMethodSource.convertMethodInsn(AsmMethodSource.java:1271)
	at de.upb.swt.soot.java.bytecode.frontend.AsmMethodSource.convert(AsmMethodSource.java:1738)
	at de.upb.swt.soot.java.bytecode.frontend.AsmMethodSource.resolveBody(AsmMethodSource.java:202)
	... 32 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions