You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(path_ext)]
use std::path::Path;
use std::fs::PathExt;
fn main() {
println!("Hello, world!");
Path::new("/dev/disk/by-uuid/").join("foo").exists();
println!("Hello, world!");
}
in valgrind, I see the following error message:
==26463== Conditional jump or move depends on uninitialised value(s)
==26463== at 0x1112DA: fs::Path.PathExt::exists::h3c82b8406965b0063of (in /path/to/project/target/debug/hello_world)
==26463== by 0x10CDCB: main::h6347461cf51c6d88gaa (main.rs:9)
==26463== by 0x116E9F: __rust_try_inner (in /path/to/project/target/debug/hello_world)
==26463== by 0x116EDA: __rust_try (in /path/to/project/target/debug/hello_world)
==26463== by 0x119267: rt::lang_start::h874802a6840d4e108gx (in /path/to/project/target/debug/hello_world)
==26463== by 0x10F61B: main (in /path/to/project/target/debug/hello_world)
This happens with the latest rust nightly, but also with older versions. It has been around for at least 2 months. It is reproducible for others too, see e.g. #27316 (comment)
Unfortunately valgrind is known to have false positives for checks like this (it's a well known bug between valgrind/LLVM), and this comes as a result of optimized code. It ends up not actually causing problems, and the exact functions which hit this codegen pattern tend to shift over time.
Regardless though I remember investigating this in the past and seeing that it was a false positive, so I don't think there's an issue to resolve here.
When running this test program
in valgrind, I see the following error message:
This happens with the latest rust nightly, but also with older versions. It has been around for at least 2 months. It is reproducible for others too, see e.g. #27316 (comment)
Meta
The text was updated successfully, but these errors were encountered: