Open alisevych opened 1 year ago
Looks like this project misses some inner dependencies. I tried to add netty-all
dependency manually and the error has changed, but it still remains with other dependency complaint. I think, it's not our fault, but it's interesting how it was working earlier... 🤔
I'm getting exceptions from getBody
very often, for instance this one from seata project. @sergeypospelov Are they all the same or each one requires dedicated issue?
18:21:26.931 | INFO | Started: warmup: 1st optional soot initialization and executor warmup (not to be counted in time budget)
Exception in thread "Thread-44" java.lang.RuntimeException: Failed to apply jb to <io.netty.handler.ssl.OpenSslSessionStats: long ticketKeyFail()>
at soot.asm.AsmMethodSource.getBody(AsmMethodSource.java:2281)
at soot.SootMethod.retrieveActiveBody(SootMethod.java:447)
at soot.PackManager.lambda$retrieveAllBodies$2(PackManager.java:1250)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:911)
Not reproducing with new fast-json, rebuilt with JDK 8.
Description
RuntimeException at
SootMethod.getBody
when running ContestEstimator for fastjson-1.2.50To Reproduce
utbot-junit-contest/src/main/kotlin/org/utbot/contest/ContestEstimator.kt
javaHome
property to full local path to JDK 8fun main
change:projectFilter = listOf("fastjson-1.2.50")
fun main
- make sure to set JDK 8 as JRE in Edit ConfigurationsExpected behavior
No exceptions are expected to be thrown.
Actual behavior
There are 20 identical RuntimeExceptions at
at soot.asm.AsmMethodSource.getBody
in log. No tests are generated.Visual proofs (screenshots, logs, images)
ContestEstimator output on fastjson
18:23:19.701 | INFO | ------------- project [fastjson-1.2.50] ---- 18:23:19.704 | INFO | ------------- [fastjson-1.2.50] ---->--- [1:com.alibaba.fastjson.asm.ByteVector] --------------------- 18:23:19.780 | DEBUG | ----------------------------------------------------------------------------- 18:23:19.780 | INFO | Contest.runGeneration: Time budget: 60000 ms, Generation timeout=51000 ms, classpath=utbot-junit-contest\src\main\resources\projects\fastjson-1.2.50\fastjson-1.2.50-SNAPSHOT.jar;utbot-junit-contest\src\main\resources\projects\fastjson-1.2.50\spring-core-5.3.9.jar;utbot-junit-contest\src\main\resources\projects\fastjson-1.2.50\spring-jcl-5.3.9.jar;utbot-junit-contest\src\main\resources\projects\fastjson-1.2.50\spring-web-5.3.9.jar, methodNameFilter=null 18:23:19.792 | INFO | Started: warmup: 1st optional soot initialization and executor warmup (not to be counted in time budget) Exception in thread "Thread-7" java.lang.RuntimeException: Failed to apply jb to