Skip to content
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

Need a workaround of a rare kcov bug that showed up in CI Nightly (kcov: warning: Other status: 0x85). #14824

Closed
DamrongGuoy opened this issue Mar 25, 2021 · 0 comments · Fixed by #14825
Assignees
Labels

Comments

@DamrongGuoy
Copy link
Contributor

DamrongGuoy commented Mar 25, 2021

We got a rare issue with KCov.

We got a nightly CI failure: https://drake-cdash.csail.mit.edu/test/156381170 in //multibody/plant:multibody_plant_scalar_conversion_test of linux-bionic-clang-bazel-nightly-coverage/871.

The sign of the bug is:

kcov: warning: Other status: 0x85

This command (thanks to @jeremyma-tri ) reproduced the problem on my Ubuntu 18.04.

env CC=clang-9 CXX=clang++-9 bazel  test --compilation_mode=dbg --config=kcov //multibody/plant:multibody_plant_scalar_conversion_test

with error message:

FAIL: //multibody/plant:multibody_plant_scalar_conversion_test (see /home/damrongguoy/.cache/bazel/_bazel_damrongguoy/ae8964252cc8671edabcee844c1a72e5/execroot/drake/bazel-out/k8-dbg/testlogs/multibody/plant/multibody_plant_scalar_conversion_test/test.log)
INFO: From Testing //multibody/plant:multibody_plant_scalar_conversion_test:
==================== Test output for //multibody/plant:multibody_plant_scalar_conversion_test:
kcov: warning: Other status: 0x85

kcov: 531 invalid breakpoints skipped in /home/damrongguoy/.cache/bazel/_bazel_damrongguoy/ae8964252cc8671edabcee844c1a72e5/execroot/drake/bazel-out/k8-dbg/bin/multibody/plant/multibody_plant_scalar_conversion_test
kcov: 9 invalid breakpoints skipped in /lib/x86_64-linux-gnu/libc.so.6

It is the same thing as Drake issue #14424 that @ggould-tri fixed by PR #14425. The underlying cause is this KCov issue SimonKagstrom/kcov#339.

The workaround is to change the unit test in a trivial way just to get a different object code.

Assign to @joemasterjohn . Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants