Skip to content

panic at grcov-0.9.1/src/llvm_tools.rs:95 #1348

@andrewdavidmackenzie

Description

@andrewdavidmackenzie

I run grcov to help measure coverage in CI (GH Actions).

In this run it crashes with an unwrap at grcov-0.9.1/src/llvm_tools.rs:95

Run grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o coverage.info
  grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o coverage.info
  lcov --remove coverage.info lcov --ignore-errors unused '/Applications/*' 'target/debug/build/**' 'target/release/build/**' '/usr*' '**/errors.rs' '**/build.rs' 'examples/**' '*tests/*' -o coverage.info
  bash <(curl -s https://codecov.io/bash) -f coverage.info
  shell: /bin/bash -e {0}
  env:
    CARGO_TERM_COLOR: always
    RUST_BACKTRACE: full
    RUSTFLAGS: -C instrument-coverage
    LLVM_PROFILE_FILE: libproc-%p-%m.profraw
Error: 9 [ERROR] A panic occurred at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/grcov-0.9.1/src/llvm_tools.rs:95: called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Error: 9 [ERROR] A panic occurred at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ignore-0.4.[2](https://github.com/andrewdavidmackenzie/libproc-rs/actions/runs/14865545898/job/41781918908#step:10:2)3/src/walk.rs:1301: called `Result::unwrap()` on an `Err` value: Any { .. }
Error: 9 [ERROR] A panic occurred at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/grcov-0.9.1/src/llvm_tools.rs:95: called `Result::unwrap()` on an `Err` value: Os { code: 1[3](https://github.com/andrewdavidmackenzie/libproc-rs/actions/runs/14865545898/job/41781918908#step:10:3), kind: PermissionDenied, message: "Permission denied" }
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions