Bug 2799 - update or remove lcov installation in utils/
update or remove lcov installation in utils/
Status: CONFIRMED
Product: ns-3
Classification: Unclassified
Component: build system
unspecified
All All
: P3 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-10 09:15 EDT by Tom Henderson
Modified: 2017-10-10 09:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2017-10-10 09:15:10 EDT
Our wscript has some hooks to enable gcov and print lcov report information, for code coverage analysis:

./waf configure --enable-gcov ...
./waf build
./test.py
./waf --lcov-report

The problem is that running lcov-report even on a modestly scoped build will immediately generate the following error (e.g. from a Fedora 26 machine):

Capturing coverage data from .
Found gcov version: 7.1.1
Scanning . for .gcda files ...
Found 389 data files in .
Processing src/mobility/model/waypoint.cc.1.gcda
Out of memory!

However, running lcov at the command line (if lcov is installed somewhere else on the machine) will succeed:
$ lcov --capture --directory . --output-file coverage.info
$ genhtml coverage.info --output-directory out

Our version of lcov is 1.9 (which is reported to exhibit the above 'Out of memory!' problem).  Upstream is now at 1.13.  We need to either update our local patched version or abandon it and just run the system installed version.