-
Notifications
You must be signed in to change notification settings - Fork 45
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
Many similar sandboxed tests on sockets generated by Fuzzing and not minimized #1129
Closed
Tracked by
#1187
Labels
ctg-bug
Issue is a bug
spec-release-tailings
Failed to include in the current release, let's include it in the next one
Milestone
Comments
alisevych
changed the title
Many similar sandboxed tests on sockets generated by Fuzzing
Many similar sandboxed tests on sockets generated by Fuzzing and not minimized
Oct 10, 2022
36 tasks
Markoutte
added a commit
that referenced
this issue
Oct 11, 2022
7 tasks
@sergeypospelov Could you please check why minimization is not working in this case? |
alisevych
added
the
spec-release-tailings
Failed to include in the current release, let's include it in the next one
label
Oct 17, 2022
Markoutte
added a commit
that referenced
this issue
Oct 19, 2022
Repository owner
moved this from Todo
to Done
in UTBot Java
Oct 19, 2022
68 tasks
@Markoutte Please advise on the following: ///region Errors report for connect
public void testConnect_errors() {
// Couldn't generate some tests. List of errors:
//
// 70 occurrences of:
// Default concrete execution failed
}
///endregion There are no errors in concrete executor logs: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ctg-bug
Issue is a bug
spec-release-tailings
Failed to include in the current release, let's include it in the next one
Description
Many similar tests with same coverage are generated and not minimized.
Socket is created inside tests.
Fuzzing only mode is on.
To Reproduce
Expected behavior
There should be only one test creating Socket and sandboxed due to an unpermitted operation.
Actual behavior
There are 272 tests generated by Fuzzing with similar arguments. They all have annotation
Visual proofs (screenshots, logs, images)
There are the following warnings in concrete executor logs: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor to field java.net.Socket.created
Expand for details
19:03:52.187 | Info | DynamicClassTransformer | 16:Scheduler for Client56431 @coroutine#10 | Transforming: org/utbot/examples/SecurityCheck
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.created
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.bound
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.connected
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.closed
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.closeLock
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.shutIn
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.shutOut
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.impl
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.oldImpl
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.factory
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.options
WARNING: Illegal reflective access by org.utbot.framework.concrete.UtModelConstructor (file:/C:/Users//AppData/Roaming/JetBrains/IntelliJIdea2022.1/plugins/utbot-intellij/lib/utbot-framework-2022.10.417.jar) to field java.net.Socket.optionsSet
Environment
Windows 10 Pro
IntelliJ IDEA 2022.1.3, 2022.1.4, 2022.2.2
Additional context
Originally posted by @alisevych in #1125 (comment)
The text was updated successfully, but these errors were encountered: