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

Coverage crash #124

Open
jacobwilliams opened this issue Jun 1, 2021 · 2 comments
Open

Coverage crash #124

jacobwilliams opened this issue Jun 1, 2021 · 2 comments
Assignees
Labels

Comments

@jacobwilliams
Copy link

I'm seeing a crash like this with gfortran 9 in GitHub actions, using coverage:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.13/x64/bin/FoBiS.py", line 29, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/fobis/fobis.py", line 51, in main
    run_fobis()
  File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/fobis/fobis.py", line 66, in run_fobis
    run_fobis_rule(configuration)
  File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/fobis/fobis.py", line 158, in run_fobis_rule
    gcov_analyzer(configuration=configuration)
  File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/fobis/fobis.py", line 555, in gcov_analyzer
    gcov.parse()
  File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/fobis/Gcov.py", line 225, in parse
    ignoring = _coverage_update(ignoring=ignoring, cov_num=cov_num, line_num=line_num, text=text, coverage=self.coverage)
  File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/fobis/Gcov.py", line 201, in _coverage_update
    coverage.append(int(cov_num))
ValueError: invalid literal for int() with base 10: '50756163*'

It doesn't appear to be accounting for these lines with '*' in them. Is that something new in gcov (I think I was using gcov-6 before).

@szaghi
Copy link
Owner

szaghi commented Jun 1, 2021

@jacobwilliams

It has been a while since I used gcov (I am developing a new huge code that is not ready for coverage assessment) thus I am not sure that is something related to new versions of gcov.

I will try to dig this deeper asap.

Cheers

@szaghi szaghi self-assigned this Jun 1, 2021
@szaghi szaghi added the bug label Jun 1, 2021
@jacobwilliams
Copy link
Author

I think it may have been a change in gcc 8.

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

No branches or pull requests

2 participants