-
Notifications
You must be signed in to change notification settings - Fork 241
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
lcov error: End line X less than start line #249
Comments
It is complaining about the lambda - not the method. Which compiler and version are you using? If you have a small testcase that illustrates the issue: that is probably the best/easiest. If not:
Then we can look at the data for the lambda - and see if there is anything funny about it. |
That's weird because there is no lambda used in the body of this function I'm using:
|
Hmm. The I guess no joy on a testcase. If you can find 'test.gcda' and 'test.gcno' from your problematic compilation unit 'test.cpp', can you run: I don't have a gcc/7.5.0, so I cannot check - if it does not support "-i", then just remove that flag. Yet another experiment: |
I think I know what is happening. I suspect that this is a bug/an issue fixed in somewhat newer gcc - but I am not 100% certain of that - nor do I know in which version the fix first appeared - if it is indeed fixed. Forgot to mention: if you want to skip over this issue - either to ignore it entirely, or to debug later - then you can use the |
One more idea/suggestion for debugging:
|
FWIW: I tried to write a small example to cause a similar failure - but I haven't been able to make the tool fail. |
Will provide the info you requested this week. |
Just a reminder that the info mentioned above is still pending. |
pushed c2fd3ab - which addresses at least one bug related to lambdas, but may or may not be related to the issue you saw. |
testcase not forthcoming - so closing this issue now, on the assumption that it was fixed. If there is still a problem, please either reopen this issue or file a new one. |
I'm hitting the following error when running lcov
I've changed the name of the function since this is a work project.
Command I'm running
There is nothing special about the
Test::TestClass::foo
function, it starts on line 1084 and end on line 1122Let me know what other debug information would be helpful.
The text was updated successfully, but these errors were encountered: