You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: exception mismatch reported by lcov in pytypes.h
#5573
The matplotlib charting library uses pybind11, and also uses GitHub Actions to run gcov and lcov -- code coverage utilities.
After upgrading the GitHub Actions runner images in matplotlib/matplotlib#29765 (to allow installation of a recently-required dependency), the updated versions of those utilities resulted in a report of a mismatch in the pytypes.h header file. Specifically, that an object-to-string conversion method declared in a macro there appeared to have mismatched exception-related behaviour:
geninfo: ERROR: "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/pybind11/include/pybind11/pytypes.h":1562: mismatched exception tag for id 1, 1: '1' -> '0'
Question
I'd prefer not to disable/ignore this warning without knowing whether it is reporting a geuine problem, or whether it is a bug in gcov/lcov, or a false positive for some reason. Does anyone here have experience with this who can identify what the problem is?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
The
matplotlibcharting library usespybind11, and also uses GitHub Actions to rungcovandlcov-- code coverage utilities.After upgrading the GitHub Actions runner images in matplotlib/matplotlib#29765 (to allow installation of a recently-required dependency), the updated versions of those utilities resulted in a report of a mismatch in the
pytypes.hheader file. Specifically, that an object-to-string conversion method declared in a macro there appeared to have mismatched exception-related behaviour:The macro callsite appears to be this one:
pybind11/include/pybind11/pytypes.h
Line 1562 in a2e59f0
Question
I'd prefer not to disable/ignore this warning without knowing whether it is reporting a geuine problem, or whether it is a bug in
gcov/lcov, or a false positive for some reason. Does anyone here have experience with this who can identify what the problem is?Thank you!
All reactions