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

IDEA to Engine process deadlock #1539

Closed
Domonion opened this issue Dec 16, 2022 · 0 comments · Fixed by #1541
Closed

IDEA to Engine process deadlock #1539

Domonion opened this issue Dec 16, 2022 · 0 comments · Fixed by #1541
Assignees
Labels
ctg-bug Issue is a bug

Comments

@Domonion
Copy link
Collaborator

Description

Fix deadlock when IDEA process under readlock asks Engine process, which then asks IDEA process for isCancalled which also tries to take readlock, but some write action occured and readlock for isCancelled cant be taken.

To Reproduce

Make any write action while read classes phase of test generation. It might take some time to reproduce such behaviour.

Expected behavior

Tests are supposed to be generated.

Actual behavior

Test generation indefinetely hangs.

@Domonion Domonion added the ctg-bug Issue is a bug label Dec 16, 2022
@Domonion Domonion self-assigned this Dec 16, 2022
@korifey korifey moved this to Todo in UTBot Java Dec 16, 2022
Domonion added a commit that referenced this issue Dec 16, 2022
Fix deadlock when IDEA process under readlock asks Engine process, which then asks IDEA process for isCancalled which also tries to take readlock, but some write action occured and readlock for isCancelled cant be taken
Fix #1213
Fix #1539
Domonion added a commit that referenced this issue Dec 16, 2022
Fix deadlock when IDEA process under readlock asks Engine process, which then asks IDEA process for isCancalled which also tries to take readlock, but some write action occured and readlock for isCancelled cant be taken
Fix #1213
Fix #1539
@Domonion Domonion mentioned this issue Dec 16, 2022
Domonion added a commit that referenced this issue Dec 16, 2022
Fix deadlock when IDEA process under readlock asks Engine process, which then asks IDEA process for isCancalled which also tries to take readlock, but some write action occured and readlock for isCancelled cant be taken
Fix #1213
Fix #1539
Domonion added a commit that referenced this issue Dec 16, 2022
Fix deadlock when IDEA process under readlock asks Engine process, which then asks IDEA process for isCancalled which also tries to take readlock, but some write action occured and readlock for isCancelled cant be taken
Fix #1213
Fix #1539
Repository owner moved this from Todo to Done in UTBot Java Dec 16, 2022
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
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant