-
Notifications
You must be signed in to change notification settings - Fork 74
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
Index out of bounds #126
Comments
When you say it crashed before you added those lines, were you seeing any exception information? if so please attach it here or in a gist. Are you able to provide us with a minimum example to recreate this error? |
I can't recall getting any useful exception information. Let me get a MWE going and I'll post back. |
The back trace from the script
Do you want me to upload the offending lcov file? |
yes please, that would be super helpful. |
Apologies for resurrecting such an old thread, but I just hit this issue on Arch Linux, and as I can provide the lcov file it might help a bit to find the root cause:
The lcov file seems to be correct:
lcov file: https://mrc0mmand.fedorapeople.org/systemd-TEST-01.coverage-info |
The culprit appear to be
which is, well, expected I guess, since the file in question indeed has only 53 lines:
However, after ignoring the exception, it looks like the same issue affects most (if not all) other gperf files: https://gist.github.com/mrc0mmand/894b92df8b65ad43170319c1850b85bf |
I've come across a crash when using
cpp-coveralls
(latest version) to get thegcov
output, filter it usinglcov
and upload thelcov
output to coveralls withcpp-coveralls
. The crash surfaces inparse_lcov_file_info
ofcoverage.py
, I've added some print statements for debugging:and for the
else
branch I get (for example)I'm not sure why this has found itself in this state, ideas? Should it be looking for the maximum in the first tuple rather than from the return statements in the file to use as allocation?
The text was updated successfully, but these errors were encountered: