Symbolic Link Issue in grcov 0.8.20 Causing Panic
Closed this issue · 1 comments
wxie7 commented
Description:
I encountered an issue with symbolic links in grcov version 0.8.20 when collecting coverage for a Rust project. If the specified binary directory contains symbolic links, grcov panics at src/llvm_tools.rs:111
, with the error message:
File system loop found: xxx points to an ancestor another-path
This issue does not occur in version 0.8.18.
Steps to Reproduce:
- Set up a Rust project with a binary directory that includes symbolic links.
- Run coverage collection using grcov 0.8.20.
- Observe the panic at
src/llvm_tools.rs:111
.
Expected Behavior:
grcov should handle symbolic links gracefully, as it does in version 0.8.18.
Environment:
- grcov version: 0.8.20
- Rust project configuration with symbolic links in the binary directory
Thank you for looking into this issue!
By the way, the project being collected for coverage is the Rust compiler
wxie7 commented
Strangely, this problem does not occur when using the binary in release, but it does occur when compiled via cargo install.