Skip to content

gcovr error #43

@sdarwin

Description

@sdarwin

lcov and gcovr are code coverage executables.

The latest gcovr (8.3) is hitting this error on buffers:

"Got function __ in slice.hpp on multiple lines: 56, 110".

Maybe that's already enough to find the issue.

Otherwise, to discuss more...

File "/opt/venv/lib/python3.12/site-packages/gcovr/merging.py", line 222, in _insert_coverage_item
    merged_item = merge_item(target_dict[key], new_item, options, context)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.12/site-packages/gcovr/merging.py", line 295, in merge_file
    raise AssertionError("\n".join(message)) from None
AssertionError: Got function void boost::buffers::._anon_95::operator()<boost::buffers::const_buffer, void>(boost::buffers::const_buffer&, unsigned long) const in /jenkins/workspace/boost-root/boost/buffers/slice.hpp on multiple lines: 56, 110.
	You can run gcovr with --merge-mode-functions=MERGE_MODE.
	The available values for MERGE_MODE are described in the documentation.
GCOV source files of merge source is/are:
	bin.v2/libs/buffers/test/unit/buffer.test/gcc-13/debug/x86_64/cxxstd-11-iso/threading-multi/visibility-hidden/buffer.gcda
and of merge target is/are:
	bin.v2/libs/buffers/build/gcc-13/debug/x86_64/cxxstd-11-iso/threading-multi/visibility-hidden/buffer_pair.gcda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions