Description of problem: I attempted to run `ninja coverage` against libmodulemd using meson, configured with `-Db_coverage=true`. Version-Release number of selected component: gcovr-3.3-6.fc28 Additional info: reporter: libreport-2.9.4 cmdline: /usr/bin/python3 -s /usr/bin/gcovr -x -r /home/sgallagh/workspace/libmodulemd -o /home/sgallagh/workspace/libmodulemd/x86_64/meson-logs/coverage.xml crash_function: process_gcov_data exception_type: ValueError executable: /usr/bin/gcovr interpreter: python3-3.6.5-1.fc28.x86_64 kernel: 4.16.1-300.fc28.x86_64 runlevel: N 5 type: Python3 uid: 13041 Truncated backtrace: gcovr:632:process_gcov_data:ValueError: invalid literal for int() with base 10: '2605*' Traceback (most recent call last): File "/usr/bin/gcovr", line 2318, in <module> process_datafile(file_, covdata, options) File "/usr/bin/gcovr", line 897, in process_datafile process_gcov_data(fname, covdata, abs_filename, options) File "/usr/bin/gcovr", line 632, in process_gcov_data covered[lineno] = int(segments[0].strip()) ValueError: invalid literal for int() with base 10: '2605*' Local variables in innermost frame: code: '' is_code_statement: True tmp: '2605*' last_code_line_excluded: False last_code_lineno: 103 last_code_line: '\n' lineno: 104 branches: {} covered: {} uncovered_exceptional: set() uncovered: set() noncode: {32, 65, 34, 66, 36, 69, 70, 102, 72, 103, 74, 24, 63} excluding: [] i: 0 filtered_fname: 'x86_64/modulemd/modulemd@sha/modulemd-module.c' fname: '/home/sgallagh/workspace/libmodulemd/x86_64/modulemd/modulemd@sha/modulemd-module.c' root_dir: '/home/sgallagh/workspace/libmodulemd' currdir: '/home/sgallagh/workspace/libmodulemd/x86_64' segments: [' 2605*', ' 104', 'G_DEFINE_TYPE (ModulemdModule, modulemd_module, G_TYPE_OBJECT)\n'] line: ' 2605*: 104:G_DEFINE_TYPE (ModulemdModule, modulemd_module, G_TYPE_OBJECT)\n' INPUT: <_io.TextIOWrapper name='^#modulemd#modulemd-module.c.gcov' mode='r' encoding='UTF-8'> options: <Values at 0x7f980b377cf8: {'version': False, 'verbose': False, 'objdir': None, 'output': '/home/sgallagh/workspace/libmodulemd/x86_64/meson-logs/coverage.xml', 'keep': False, 'delete': False, 'filter': [re.compile('\\/home\\/sgallagh\\/workspace\\/libmodulemd\\/')], 'exclude': [], 'gcov_filter': re.compile(''), 'gcov_exclude': [], 'root': '/home/sgallagh/workspace/libmodulemd', 'xml': True, 'prettyxml': False, 'html': False, 'html_details': False, 'relative_anchors': True, 'show_branch': None, 'sort_uncovered': None, 'sort_percent': None, 'gcov_cmd': 'gcov', 'exclude_unreachable_branches': False, 'exclude_dirs': [], 'gcov_files': False, 'print_summary': False, 'root_filter': re.compile('\\/home\\/sgallagh\\/workspace\\/libmodulemd\\/')}> source_fname: '/home/sgallagh/workspace/libmodulemd/x86_64/modulemd/modulemd@sha/modulemd-module.c.gcda' covdata: {} data_fname: '^#modulemd#modulemd-module.c.gcov'
Created attachment 1422484 [details] File: backtrace
Created attachment 1422485 [details] File: cgroup
Created attachment 1422486 [details] File: cpuinfo
Created attachment 1422487 [details] File: environ
Created attachment 1422488 [details] File: mountinfo
Created attachment 1422489 [details] File: namespaces
Created attachment 1422490 [details] File: open_fds
I am also seeing this error. I think this should probably be reported on the gcovr github page rather than here though.
After some investigation, the issue appears to be that the gcovr version in dnf is out of date, in order to work with GCC 8, you need to be using GCOVR 4.0. If you install gcovr through pip instead of dnf, it has the latest version. The RPM should be upgraded too, though.
gcovr-4.1-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-51bcb5bb98
gcovr-4.1-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-9da74c592f
gcovr-4.1-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-51bcb5bb98
gcovr-4.1-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-9da74c592f
gcovr-4.1-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
gcovr-4.1-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.