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

Allow loop detector replayer to continue executing after it finished the replayed part #524

Merged
merged 5 commits into from
Feb 19, 2025

Conversation

eupp
Copy link
Collaborator

@eupp eupp commented Feb 12, 2025

This is part of #505

@eupp eupp requested a review from dmitrii-artuhov February 12, 2025 22:10
Comment on lines +258 to +259
// Unexpected `ThreadAbortedError` should be thrown.
check(result is UnexpectedExceptionInvocationResult)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is transferring this check below a necessary change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it was on purpose. Looks like there could be cases when suddenResult is SpinCycleFoundAndReplayRequired, but result !is UnexpectedExceptionInvocationResult.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could such case be added as a test then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to add a test with coroutines under #505, which fails because of this. But I haven't try to minimize it, because the execution trace is quite large in this test, and I cannot easily find a place that exactly triggers this problem.

Signed-off-by: Evgeniy Moiseenko <[email protected]>
@eupp eupp requested a review from dmitrii-artuhov February 18, 2025 20:38
@dmitrii-artuhov dmitrii-artuhov merged commit b7b2588 into develop Feb 19, 2025
20 checks passed
@dmitrii-artuhov dmitrii-artuhov deleted the eupp/fix-spin-loop-replay-bug branch February 19, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants