Posix mutex, rwlock & condvar store identifier index for miri in normal memory. #1649
Labels
A-concurrency
Area: affects our concurrency (multi-thread) support
C-enhancement
Category: a PR with an enhancement or an issue tracking an accepted enhancement
The posix mutex, rwlock and condvar store the id miri uses to correspond with the internal implementation and does not prevent any interpreted code from mutating the value.
This can cause unusual behaviour and cause miri to panic.
Although I think this is unlikely to occur in practice it would be good to detect this case, it might be better to store the memory location & associated size for the posix mutex, rwlock and condvar and detect and report any reading and writing of the associated memory as well. I however have not looked at the docs for long enough to be sure of the best solution.
The text was updated successfully, but these errors were encountered: