-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken sysroot when custom "release" profile sets panic="abort"
#3313
Comments
I think the problem here is that src_dir.hash(&mut hasher);
hash_recursive(src_dir, &mut hasher)?;
self.config.hash(&mut hasher);
self.mode.hash(&mut hasher);
self.rustflags.hash(&mut hasher);
rustc_version.hash(&mut hasher); I'm not surprised that we're missing a number of things in the hash. Maybe the right way to go is to include every env var that starts with |
No I don't think this is a hashing issue. Building the sysroot with |
panic="abort"
panic="abort"
This was when trying to go full into
|
Well to be specific, this happened without setting the env var. I don't know if cargo sets it for me, but I just have a profile in |
The env-var is just an alternative way to set cargo's config, if you use |
Sort of related to rust-lang/cargo#7621 since isolating from external configs would fix this. |
Could we "isolate" by just setting a profile that people are unlikely to have configured (and if they configure a "miri_sysroot" profile and things break, it's really on them)? |
Hello,
When attempting to use miri today I did the normal
cargo +nightly miri test
. But it failed to build the project with a mysterious error:Eventually it was tracked down to me having a custom "release" profile, because I basically only use that profile for installing via
cargo install
. The key at fault is thepanic = "abort"
key.This is quite easy to replicate. Set the envar
CARGO_PROFILE_RELEASE_PANIC="abort"
then try to run anything with miri. For example I build the miri test suite and every test failed with the error above. Then since the sysroot cache is polluted you have to delete it to fix it hence my open PR :).cc @Nemo157
Nemo described it as "I'm not even seeing panic=abort in the rustc commands"
The text was updated successfully, but these errors were encountered: