-
Notifications
You must be signed in to change notification settings - Fork 256
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
fix: thread-safety issue in the runtime #1780
Conversation
19fe6c4
to
4ced96c
Compare
} | ||
|
||
[Fact(Timeout = 5000)] | ||
public void RunCoyoteTest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to say I'm able to run this test locally myself (after doing a dotnet tool restore
), but it passes even if I revert your fix below. I CAN reproduce the problem by only commenting out all but two tasks and setting a breakpoint on the elmts = ComputeElements();
line of the ImmutableElements
getter and then debugging the ConcatSequence
test directly through Rider: having two threads ready to go on that line pretty consistently leads to NullReferenceException
s once I resume execution.
My hope was that Coyote would be able to definitively reproduce the bug first, since it's deterministically testing many thread interleavings. We should either find a simple enough Coyote test that reveals the bug, or not bother with Coyote at all.
Not confident enough to approve, but don't want to block while away
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧵🧵🧵
Fixes #1454