Open kwhitehouse opened 2 weeks ago
cc @c-mita
It looks like your test executable is segfaulting after running the tests.
What happens if you build your test program with --collect_code_coverage
and the execute it?
bazel build --collect_code_coverage --instrumentation_filter=".*" //helloworld:my_test
./bazel-bin/helloworld/my_test
Description of the bug:
Background
I'm trying to generate code coverage using Bazel for a
cc_test
.Details
When I run the following command, all my tests pass.
When I attempt to generate coverage results by adding the flags
--collect_code_coverage --combined_report=lcov
, I see a failure to generate coverage.The error unfortunately doesn't give a ton of details - it just indicates a segmentation fault somewhere in
collect_coverage.sh
.Which category does this issue belong to?
C++ Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
I get the same outcome when running my tests on macOS and on Linux
What is the output of
bazel info release
?release 7.3.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response