remap-path-prefix from 1.47.0 results in weird prefixes in backtraces #78479
Labels
A-reproducibility
Area: Reproducible / deterministic builds
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
with the environment variables:
RUSTFLAGS='--remap-path-prefix=/home/nemo157/.cargo/registry/src/github.com-1ecc6299db9ec823=crates.io' RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1
On 1.46 (and earlier) this results in backtraces looking as expected (for both the
Backtrace::capture
andbegin_panic
):but on 1.47 and later there is a spurious
./
prefixed onto the remapped paths:If there are remapped frames on top of each other this seems to become even more complex, in another project using this set of flags:
I got a backtrace like this:
Frames 8 and 9 include duplicate
crates.io/clap-2.33.3
prefixes, and frame 10 randomly has a~/sources/bs58-rs
prefixThe text was updated successfully, but these errors were encountered: