Title: Overflow in fuzzing · Issue #588 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Overflow in fuzzing · Issue #588 · UnitTestBot/UTBotJava
X Title: Overflow in fuzzing · Issue #588 · UnitTestBot/UTBotJava
Description: Description There is problem with negative size in Combinations. This is cause of crash UtBot. To Reproduce Run ContestEstimator on project antlr, class org.antlr.v4.parse.LeftRecursiveRuleWalker. Expected behavior Tests are supposed to ...
Open Graph Description: Description There is problem with negative size in Combinations. This is cause of crash UtBot. To Reproduce Run ContestEstimator on project antlr, class org.antlr.v4.parse.LeftRecursiveRuleWalker. ...
X Description: Description There is problem with negative size in Combinations. This is cause of crash UtBot. To Reproduce Run ContestEstimator on project antlr, class org.antlr.v4.parse.LeftRecursiveRuleWalker. ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/588
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overflow in fuzzing","articleBody":"**Description**\r\n\r\nThere is problem with negative size in Combinations. This is cause of crash UtBot.\r\n\r\n**To Reproduce**\r\n\r\nRun ContestEstimator on project antlr, class org.antlr.v4.parse.LeftRecursiveRuleWalker.\r\n\r\n**Expected behavior**\r\n\r\nTests are supposed to be generated.\r\n\r\n**Actual behavior**\r\n\r\nContestEstimator crashes with exception from fuzz function.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n~~~\r\nException in thread \"SymbolicExecution\" java.lang.IllegalStateException: Size must be positive or 0 but current value is -1810579852\r\n\tat org.utbot.fuzzer.PseudoShuffledIntProgression.\u003cinit\u003e(PseudoShuffledIntProgression.kt:95)\r\n\tat org.utbot.fuzzer.PseudoShuffledIntProgression.\u003cinit\u003e(PseudoShuffledIntProgression.kt:89)\r\n\tat org.utbot.fuzzer.CartesianProduct.iterator(CartesianProduct.kt:18)\r\n\tat org.utbot.fuzzer.CartesianProduct.asSequence(CartesianProduct.kt:13)\r\n\tat org.utbot.fuzzer.FuzzerKt.fuzz(Fuzzer.kt:34)\r\n\tat org.utbot.fuzzer.providers.ObjectModelProvider.generateModelsWithFieldsInitialization(ObjectModelProvider.kt:119)\r\n\tat org.utbot.fuzzer.providers.ObjectModelProvider.access$generateModelsWithFieldsInitialization(ObjectModelProvider.kt:37)\r\n\tat org.utbot.fuzzer.providers.ObjectModelProvider$generate$1.invokeSuspend(ObjectModelProvider.kt:90)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)\r\n\tat org.utbot.fuzzer.ModelProvider$Combined$generate$1.invokeSuspend(ModelProvider.kt:143)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)\r\n\tat org.utbot.fuzzer.FuzzerKt.fuzz(Fuzzer.kt:76)\r\n\tat org.utbot.fuzzer.providers.ObjectModelProvider$Companion.fuzzParameters(ObjectModelProvider.kt:173)\r\n\tat org.utbot.fuzzer.providers.ObjectModelProvider$Companion.access$fuzzParameters(ObjectModelProvider.kt:145)\r\n\tat org.utbot.fuzzer.providers.ObjectModelProvider$generate$1.invokeSuspend(ObjectModelProvider.kt:82)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)\r\n\tat org.utbot.fuzzer.ModelProvider$withFallback$1$1.invokeSuspend(ModelProvider.kt:142)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)\r\n\tat kotlin.sequences.TakeSequence$iterator$1.hasNext(Sequences.kt:421)\r\n\tat kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:752)\r\n\tat kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:782)\r\n\tat kotlin.sequences.SequencesKt__SequencesKt$shuffled$1.invokeSuspend(Sequences.kt:140)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)\r\n\tat kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:214)\r\n\tat kotlin.sequences.SequencesKt___SequencesKt.first(_Sequences.kt:110)\r\n\tat org.utbot.engine.UtBotSymbolicEngine$fuzzing$2.invokeSuspend(UtBotSymbolicEngine.kt:406)\r\n\tat org.utbot.engine.UtBotSymbolicEngine$fuzzing$2.invoke(UtBotSymbolicEngine.kt)\r\n\t...\r\n~~~\r\n\r\n**Environment**\r\n\r\nJava 8.\r\n","author":{"url":"https://github.com/SBOne-Kenobi","@type":"Person","name":"SBOne-Kenobi"},"datePublished":"2022-07-26T08:12:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/588/UTBotJava/issues/588"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd2d8ce5-dc31-b939-82bc-5250267e7ae6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F34:8B644:120C511:170A7A2:69902BB7 |
| html-safe-nonce | 8378c232c05c2ca374da920a9e2be1e95eb2ecd839af09adaa1e17ae6b61c5fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjM0OjhCNjQ0OjEyMEM1MTE6MTcwQTdBMjo2OTkwMkJCNyIsInZpc2l0b3JfaWQiOiI0MzU4ODU3OTY4NTQ1OTY3MDMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f6d024761e3bac14288f44dff2d0ac36af1b00ca32fee82d694cdbe513eb8beb |
| hovercard-subject-tag | issue:1317866293 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/588/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf037debbc99d773b5c80c1474e8351e8f359b24463b937a34b5627479460b66/UnitTestBot/UTBotJava/issues/588 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf037debbc99d773b5c80c1474e8351e8f359b24463b937a34b5627479460b66/UnitTestBot/UTBotJava/issues/588 |
| og:image:alt | Description There is problem with negative size in Combinations. This is cause of crash UtBot. To Reproduce Run ContestEstimator on project antlr, class org.antlr.v4.parse.LeftRecursiveRuleWalker. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SBOne-Kenobi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width