Ayush Tomar
2016-Mar-13 01:15 UTC
Unable to generate lcov test coverage reports (Out of memory error)
Hi all, I was trying to generate lcov test coverage reports for xapian-core but got an out of memory error: $ lcov --capture --directory . --output-file xapian-core.info Capturing coverage data from . Found gcov version: 4.7.3 Scanning . for .gcda files ... Found 270 data files in . Processing bin/xapian-progsrv.gcda Out of memory! These are the steps I followed in xapian-core directory **(lcov.xapian.org is down so I referred to xapian-core/HACKING and some online resources for these steps): $ ./configure CXXFLAGS='-g -O0 --coverage' CFLAGS='-g -O0 --coverage' $ make check $ lcov --capture --directory . --output-file xapian-core.info which rendered the error mentioned above. I did make sure that gcc and gcov have same versions. Can someone please help me out? (I am generating these tests reports for getting familiar with writing tests for use in Letor stabilization project for gsoc) Regards, Ayush -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20160312/96ee4b6f/attachment.html>
Olly Betts
2016-Mar-13 23:31 UTC
Unable to generate lcov test coverage reports (Out of memory error)
On Sat, Mar 12, 2016 at 08:15:35PM -0500, Ayush Tomar wrote:> I was trying to generate lcov test coverage reports for xapian-core but got > an out of memory error: > > $ lcov --capture --directory . --output-file xapian-core.info > Capturing coverage data from . > Found gcov version: 4.7.3 > Scanning . for .gcda files ... > Found 270 data files in . > Processing bin/xapian-progsrv.gcda > Out of memory!What version of lcov are you using? 1.11 has some fixes I submitted which significantly reduce memory usage (without these, I couldn't run lcov on Xapian's testsuite on a VM with 1GB of RAM - with them it worked fine). Cheers, Olly
Ayush Tomar
2016-Mar-14 03:24 UTC
Unable to generate lcov test coverage reports (Out of memory error)
Thanks for your help. I was using version 1.19 of lcov. Getting version 1.11 fixed the issue. On Sun, Mar 13, 2016 at 7:31 PM, Olly Betts <olly at survex.com> wrote:> On Sat, Mar 12, 2016 at 08:15:35PM -0500, Ayush Tomar wrote: > > I was trying to generate lcov test coverage reports for xapian-core but > got > > an out of memory error: > > > > $ lcov --capture --directory . --output-file xapian-core.info > > Capturing coverage data from . > > Found gcov version: 4.7.3 > > Scanning . for .gcda files ... > > Found 270 data files in . > > Processing bin/xapian-progsrv.gcda > > Out of memory! > > What version of lcov are you using? 1.11 has some fixes I submitted > which significantly reduce memory usage (without these, I couldn't > run lcov on Xapian's testsuite on a VM with 1GB of RAM - with them > it worked fine). > > Cheers, > Olly >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20160313/23925452/attachment.html>
Apparently Analagous Threads
- Xen GCOV Patches for latest Xen Unbstable and linux 2.6.18.8 kernel(32/64bit)
- Xen GCOV Patches for latest Xen Unbstable and linux 2.6.18.8 kernel(32/64bit)
- Writing a test for gcov style coverage crashing after dlclose
- Customizing SBCC for lcov workflows
- [EXTERNAL] How to get branch coverage by using 'source-based code coverage'