I'm analyzing C-Code with LCOV on two systems (windows 7, cygwin, Lcov 1.10). On one system I had never problems, but on the other with the same code I get:
$ lcov --directory CMakeFiles/UnitTest.dir/main --capture --output-file lcov.log
Capturing coverage data from CMakeFiles/UnitTest.dir/main
Found gcov version: 4.8.2
Scanning CMakeFiles/UnitTest.dir/main for .gcda files ...
Found 59 data files in CMakeFiles/UnitTest.dir/main
Processing analyze/analyze.c.gcda
[..]
Processing measure/measur.c.gcda
geninfo: Negative length at /usr/bin/geninfo line 2413.
On both systems the folder and files are the same (via subversion revision control). Maybe there could be a problem with some paths, I guess. Someone knows what this is about? Thanks, Led
Addendum: I found out that somethimes it helps to clean the project totally (delete all CMakeFiles and CMakeCache) and rerun the lcov commmand.