-
Notifications
You must be signed in to change notification settings - Fork 137
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
[HW4] (Thread Sanitizer has been running for 10 minutes) #917
Comments
|
Regarding question 2, taking too much time in testing can be a strong signal that your code can result in deadlock. Even if your code passes other tests with |
|
Yes that looks correct. In terms of the data race, what I meant is that from the summary you posted:
The two writes by T32 and T35 are racing, so it's probably the case that the write by T32 is non-atomic. |
Thanks! This helped to debug it! |
My solution passes the test cases invoked with cargo, but when it comes to cargo_tsan, in my previous run, it was running for more than 30 minutes printing some messages, and I killed the process, then invoked it again with the hope of seeing it doesn't take this much time. But, apparently, for this time as well, it has been running for more than 10 minutes already.
I was able to read some warning messages:
WARNING: ThreadSanitizer: data race (pid=1183058)
Atomic write of size 8 at 0x720c00005a58 by thread T35:
Previous write of size 8 at 0x720c00005a58 by thread T32:
Thanks in Advance!
The text was updated successfully, but these errors were encountered: