[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolveObject fails with IndexOutOfBoundsException #164

Open
IlyaMuravjov opened this issue Nov 29, 2023 · 1 comment
Open

resolveObject fails with IndexOutOfBoundsException #164

IlyaMuravjov opened this issue Nov 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@IlyaMuravjov
Copy link
Collaborator

Run ContestEstimator with the following options:

timeLimit = 120
methodFilter = "io.seata.core.protocol.transaction.GlobalBeginResponse.doEncode"
projectFilter = listOf("seata-core-0.5.0")

There are the following errors in log:

15:03:28.174 | ERROR | executor.execute((id:23)io.seata.core.protocol.transaction.GlobalBeginResponse#doEncode()) failed
java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
	at java.util.ArrayList.rangeCheck(ArrayList.java:659) ~[?:1.8.0_392]
	at java.util.ArrayList.get(ArrayList.java:435) ~[?:1.8.0_392]
	at org.usvm.api.util.JcTestStateResolver.resolveEnumValue(JcTestStateResolver.kt:281) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.resolveObject(JcTestStateResolver.kt:222) ~[usvm-jvm-local3.jar:?]
	at org.utbot.contest.usvm.jc.JcTestExecutor$MemoryScope.resolveObject(JcTestExecutor.kt:164) ~[main/:?]
	at org.utbot.contest.usvm.jc.JcTestExecutor$MemoryScope.resolveObject(JcTestExecutor.kt:117) ~[main/:?]
	at org.usvm.api.util.JcTestStateResolver.resolveReference(JcTestStateResolver.kt:173) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.resolveExpr(JcTestStateResolver.kt:103) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.resolveLValue(JcTestStateResolver.kt:97) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.allocateAndInitializeObject(JcTestStateResolver.kt:268) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.resolveObject(JcTestStateResolver.kt:225) ~[usvm-jvm-local3.jar:?]
	at org.utbot.contest.usvm.jc.JcTestExecutor$MemoryScope.resolveObject(JcTestExecutor.kt:164) ~[main/:?]
	at org.utbot.contest.usvm.jc.JcTestExecutor$MemoryScope.resolveObject(JcTestExecutor.kt:117) ~[main/:?]
	at org.usvm.api.util.JcTestStateResolver.resolveReference(JcTestStateResolver.kt:173) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.resolveExpr(JcTestStateResolver.kt:103) ~[usvm-jvm-local3.jar:?]
	at org.usvm.api.util.JcTestStateResolver.resolveLValue(JcTestStateResolver.kt:97) ~[usvm-jvm-local3.jar:?]
	at org.utbot.contest.usvm.jc.JcTestExecutor$MemoryScope.createUTest(JcTestExecutor.kt:132) ~[main/:?]
	at org.utbot.contest.usvm.jc.JcTestExecutor.execute(JcTestExecutor.kt:76) ~[main/:?]
	at org.utbot.contest.usvm.ContestUsvmKt$runUsvmGeneration$1$9$5.invoke(ContestUsvm.kt:179) [main/:?]
	at org.utbot.contest.usvm.ContestUsvmKt$runUsvmGeneration$1$9$5.invoke(ContestUsvm.kt:172) [main/:?]
	at org.utbot.contest.usvm.ContestUsvmKt$analyzeAsync$1$1$1.addState(ContestUsvm.kt:284) [main/:?]
	at org.utbot.contest.usvm.ContestUsvmKt$analyzeAsync$1$1$1.addState(ContestUsvm.kt:278) [main/:?]
	at org.usvm.statistics.collectors.CoveredNewStatesCollector.onStateTerminated(CoveredNewStatesCollector.kt:26) [usvm-core-local3.jar:?]
	at org.usvm.statistics.CompositeUMachineObserver.onStateTerminated(UMachineObserver.kt:48) [usvm-core-local3.jar:?]
	at org.usvm.UMachine.run(Machine.kt:77) [usvm-core-local3.jar:?]
	at org.usvm.machine.JcMachine.analyze(JcMachine.kt:199) [usvm-jvm-local3.jar:?]
	at org.utbot.contest.usvm.ContestUsvmKt$analyzeAsync$1.invoke(ContestUsvm.kt:276) [main/:?]
	at org.utbot.contest.usvm.ContestUsvmKt$analyzeAsync$1.invoke(ContestUsvm.kt:274) [main/:?]
	at org.utbot.common.ThreadBasedExecutor$invokeWithTimeout$1.invoke(ThreadUtil.kt:75) [utbot-core-2023.11-SNAPSHOT.jar:?]
	at org.utbot.common.ThreadBasedExecutor$ensureThreadIsAlive$1.invoke(ThreadUtil.kt:129) [utbot-core-2023.11-SNAPSHOT.jar:?]
	at org.utbot.common.ThreadBasedExecutor$ensureThreadIsAlive$1.invoke(ThreadUtil.kt:125) [utbot-core-2023.11-SNAPSHOT.jar:?]
	at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30) [kotlin-stdlib-1.8.22.jar:1.8.22-release-407(1.8.22)]
15:03:28.689 | ERROR | (x2) executor.execute((id:23)io.seata.core.protocol.transaction.GlobalBeginResponse#doEncode()) failed
java.lang.IndexOutOfBoundsException: Index: 1073741824, Size: 15
	at java.util.ArrayList.rangeCheck(ArrayList.java:659)
15:03:30.259 | ERROR | (x5) executor.execute((id:23)io.seata.core.protocol.transaction.GlobalBeginResponse#doEncode()) failed
java.lang.IndexOutOfBoundsException: Index: 1025, Size: 15
	at java.util.ArrayList.rangeCheck(ArrayList.java:659)
15:03:37.867 | ERROR | (x10) executor.execute((id:23)io.seata.core.protocol.transaction.GlobalBeginResponse#doEncode()) failed
java.lang.IndexOutOfBoundsException: Index: 1073741824, Size: 15
	at java.util.ArrayList.rangeCheck(ArrayList.java:659)
@IlyaMuravjov IlyaMuravjov added the bug Something isn't working label Nov 29, 2023
@Damtev Damtev self-assigned this Nov 29, 2023
@Damtev
Copy link
Member
Damtev commented Nov 29, 2023

Fixed in competition branch in caaea27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants