microbat
microbat copied to clipboard
[Instrumentation] Agent: ExecutionTracer error: null.
hi @lylytran
Would you please check Lang-62? The agent reports an exception of Agent: ExecutionTracer error: null
. Thanks!
hi @lylytran
Please kindly check the following cmd, which causes the exception:
E:\linyun\bug_repo\jdk1.7.0_800\bin\java -Xmx30g -ea -noverify -javaagent:E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\instrumentator.jar=precheck=false,excludes=java.util.Properties*,java_home=E:\linyun\bug_repo\jdk1.7.0_800,stepLimit=100000,log=printProgress;info,working_dir=E:\linyun\bug_repo\Lang\62\bug,varLayer=1,includes=java.lang.AbstractStringBuilder;java.lang.StringBuffer;java.lang.String;java.lang.Number;java.lang.Integer,launch_class=org.apache.commons.lang.EntitiesTest,class_path=E:\linyun\bug_repo\Lang\62\bug\target\tests;E:\linyun\bug_repo\Lang\62\bug\target\classes;E:\linyun\bug_repo\Lang\lib\cglib-nodep-2.2.2.jar;E:\linyun\bug_repo\Lang\lib\commons-io-2.4.jar;E:\linyun\bug_repo\Lang\lib\easymock-3.1.jar;E:\linyun\bug_repo\Lang\lib\objenesis-1.2.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\junit.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\org.hamcrest.core.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\testrunner.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\bcel-6.0.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\javassist.jar,dump_file_path=E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\trace\Lang\62\bug.exec,expectedSteps=11889 -cp E:\linyun\bug_repo\Lang\62\bug\target\tests;E:\linyun\bug_repo\Lang\62\bug\target\classes;E:\linyun\bug_repo\Lang\lib\cglib-nodep-2.2.2.jar;E:\linyun\bug_repo\Lang\lib\commons-io-2.4.jar;E:\linyun\bug_repo\Lang\lib\easymock-3.1.jar;E:\linyun\bug_repo\Lang\lib\objenesis-1.2.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\junit.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\org.hamcrest.core.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\testrunner.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\bcel-6.0.jar;E:\linyun\software\eclipse-java-mars\eclipse-java-mars-clean\eclipse\dropins\junit_lib\javassist.jar microbat.evaluation.junit.MicroBatTestRunner org.apache.commons.lang.EntitiesTest testNumberOverflow
It seems like the modified code after instrumentation for method invocation in java.lang.AbstractStringBuilder.append(int arg) cause NPE at runtime. Since I still cannot figure out the root cause & so the solution for that, the commit 1b123d3 only provides workaround solution for the case.
The ClassLoaderInstrumentator has some bug, please kindly have a check.
ClassLoaderInstrumentator is fixed in commit 8a861b6