-
Notifications
You must be signed in to change notification settings - Fork 76
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
Potential bug with race condition #484
Comments
This is expected behavior. By default, Coyote does not interrupt tasks at memory accesses. It only interrupts them at certain Task APIs (such as the await that you inserted in the second program). You can try the flag |
Thank you for the quick response, rewrite memory locations was already default set to true, but then I know! |
I changed my code to this and it seems to produce the correct results
So for now I guess I just have to add interleave to places where I want it to check. |
Thanks @Ulimo and @akashlal, you also need to enable: @Ulimo can you try this and let us know? (But the automated memory-access interleaving feature is indeed experimental and might not work for every single scenario as Akash said.) |
Hi, this might be a user error, but I got the examples working and got correct bug reports.
But the following code:
Does not produce any bugs. in some cases this can return -17 instead of 0, but I cant get coyote to produce that result.
Changing to this:
produces the bug report correctly, is this expected behaviour or should the first example also produce a bug?
The text was updated successfully, but these errors were encountered: