Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435396 - dev-util/lcov-1.9-r1 crashed with "Out of memory" error together with gcc-4.7.1
Summary: dev-util/lcov-1.9-r1 crashed with "Out of memory" error together with gcc-4.7.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Olivier Crete (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-18 10:40 UTC by poletti.marco
Modified: 2012-10-20 14:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.