[Homework 6] only all_hazards_protected test failed but sometimes success
Closed this issue · 1 comments
JerrylzjTom commented
When l was testing hazard_pointer with script, only the "all_hazards_protected" test failed, but it sometimes success. I have no idea how to fix the bug, I don't know if this is the problem of my environment. The follow is my environment:
OS: Ubuntu 22.04
rustc: 1.83.0-nightly
Lee-Janggun commented
If it sometimes fails, you probably have some synchronization bug that only happens from time to time.
Without more information the only tip I can give you is to use LLDB and think hard about the synchronization.