Closed
Description
Hello, I wish you a nice day
I have run my personal project newsletter-rs
https://github.com/drconopoima/newsletter-rs
through thread sanitizer as detailed here https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html
I'm spawning a thread blocking to perform tokio-postgres cached statement queries in background to continuously assert the health of the postgres database.
It detects the data race at this line, on dependency Bytes 1.1.0
I'm able to reproduce reliably like:
git clone https://github.com/drconopoima/newsletter-rs --branch bytes_reserve --depth 1
cd newsletter-rs
export RUSTFLAGS=-Zsanitizer=thread RUSTDOCFLAGS=-Zsanitizer=thread
cargo +nightly run -Zbuild-std --target x86_64-unknown-linux-gnu
The complete thread sanitizer output:
Metadata
Metadata
Assignees
Labels
No labels