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

race in updating coverage report #464

Open
pdeligia opened this issue Mar 27, 2023 · 0 comments
Open

race in updating coverage report #464

pdeligia opened this issue Mar 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pdeligia
Copy link
Member

Reported internally (must be a zombie thread updating coverage after iteration finishes). We need to make the code more defensive.

Error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
   at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
   at Microsoft.Coyote.Coverage.CoverageInfo.Merge(CoverageInfo coverageInfo)
   at Microsoft.Coyote.Actors.Coverage.ActorCoverageInfo.Merge(CoverageInfo coverageInfo)
   at Microsoft.Coyote.SystematicTesting.TestingEngine.GatherTestingStatistics(CoyoteRuntime runtime)
   at Microsoft.Coyote.SystematicTesting.TestingEngine.RunNextIteration(TestMethodInfo methodInfo, UInt32 iteration)
   at Microsoft.Coyote.SystematicTesting.TestingEngine.<>c__DisplayClass41_0.<CreateTestingTask>b__0()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Coyote.SystematicTesting.TestingEngine.<>c__DisplayClass41_0.<CreateTestingTask>b__0()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Coyote.SystematicTesting.TestingEngine.Run()
   at Microsoft.Azure.Giza.Meta.Test.ModelChecker.GizaMMCoyoteTest.GizaCoyoteBasedMMTest()
@pdeligia pdeligia added the bug Something isn't working label Mar 27, 2023
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

1 participant