Closed RustyYato closed 3 years ago
The no-op hash and eq are just for demonstration, and bear no relevance to the bug.
Ooof, yes, that's definitely not good! Will need to fix this for 11.0
(which will be based on the modifications in #73).
I'm pretty swamped at the moment, so will not be able to fix this up any time very soon for 10
unfortunately. But getting 11.0
out is high on my list of priorities.
No problem, I caught your stream about evmap and looked into this, and found this. Looks like a simple oversight, but overall this crate is great! Thanks for the great work.
evmap
let's you trivially ignoreSend
andSync
requirements on types, which allow for horrors such as:This compile and runs, and is very much UB with data races. On my machine it has given the "correct" result of
2000
, but also1257
,1095
, and1068
. Which is some more proof of UB.This bug is in
evmap
version10^
and the current master branch (commit hash:d4c12b8758c7e35145c40856f3d3474befe6ecda
).