Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 435396

Summary: dev-util/lcov-1.9-r1 crashed with "Out of memory" error together with gcc-4.7.1
Product: Gentoo Linux Reporter: poletti.marco
Component: [OLD] DevelopmentAssignee: Olivier Crete (RETIRED) <tester>
Status: RESOLVED INVALID    
Severity: normal CC: dev-tools
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description poletti.marco 2012-09-18 10:40:46 UTC
When using lcov-1.9-r1 with gcc-4.7.1, an out of memory error is reported:


 > lcov -c -d .
Capturing coverage data from .
Found gcov version: 4.5.4
Scanning . for .gcda files ...
Found 1 data files in .
Processing main.gcda
Out of memory!
 >


This is the problem that the patch already in portage is supposed to fix, but it still happens. It happens even just with the following code:

int main() { return 0; }

I tried both gcc and g++, and it happens in both.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-18 13:43:57 UTC
Please post your `emerge --info' output in a comment.
Comment 2 poletti.marco 2012-10-20 14:04:50 UTC
Sorry, I can't reproduce this anymore with 4.7.2, so I am closing this.
If someone else has a similar problem, try running:

lcov -c -d . --gcov-tool /usr/bin/gcov-4.7.1

This fixes the issue with gcc-4.7.2, and I have no system with gcc-4.7.1 where I can test this.