Skip to content

sandbox 是否存在当 执行到spyMethodOnReturn 之后 当Ret.state==1 的时候栈未清空的情况,麻烦帮忙确认。 #328

@xiaoxiaocaiiao

Description

@xiaoxiaocaiiao

复现step

  1. 采用 -javaagent 方式启动 sandbox 增强 某个 方法 a
  2. 重新写一个 java agent 在 transfer 中采用 javassist 中的 hookMethod.insertAfter 修改 同一个方法 a 抛出异常 jdk.internal.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 125: Incompatible stack heights
    at jdk.internal.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:324)
    这种情况 大多数因为try catch 引起

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions