Bug 787502 - Reports Out of memory
Summary: Reports Out of memory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lcov
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-05 20:00 UTC by Zdenek Kabelac
Modified: 2013-01-02 09:05 UTC (History)
4 users (show)

Fixed In Version: lcov-1.9-2.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-24 00:35:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2012-02-05 20:00:59 UTC
Description of problem:

Recent combination of lcov and gcc seems to be generating Out-of-memory! message instead of processing of .gcno files.

On my other box this combination on same source base (lvm2 project) works well:
(Has same version of lcov & gcc-4.6)

18617 write(1, "Processing thin/thin.gcno\n", 26) = 26
18617 open("/lvm2/lib/thin/thin.gcno", O_RDONLY) = 3
18617 ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffaf218000) = -1 ENOTTY (Inappropriate ioctl for device)
18617 lseek(3, 0, SEEK_CUR)             = 0
18617 fstat(3, {st_mode=S_IFREG|0664, st_size=26052, ...}) = 0
18617 fcntl(3, F_SETFD, FD_CLOEXEC)     = 0
18617 read(3, "oncgR704\261m\17O\0\0\0\1\21\0\0\0\26\0\0\0\342\221_\370\254\242@H"..., 8192) = 8192
18617 mmap(NULL, 4848783360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
18617 brk(0)                            = 0x1ecc000
18617 brk(0x122ef8000)                  = 0x1ecc000




Version-Release number of selected component (if applicable):
lcov-1.9-1.fc17.noarch
gcc-4.7.0-0.10.fc17.x86_64

How reproducible:


Steps to Reproduce:
1. build project that supports lcov
   (i.e. lvm2, configure with --enable-profiling)
2. run any command (i.e. lvs)
3. build lcov for project (make lcov)
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2012-03-12 10:29:53 UTC
I've confirmed with lcov 1.9 and gcc 4.7 with a trivial 'Hello World'.  Downgrading lcov does not help, nor does lcov from upstream CVS. Therefore it must be the gcc 4.6 -> 4.7 change, upsetting some assumption in lcov.

Comment 2 Fedora Update System 2012-03-12 11:29:16 UTC
lcov-1.9-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/lcov-1.9-2.fc17

Comment 3 Fedora Update System 2012-03-12 11:38:05 UTC
lcov-1.9-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/lcov-1.9-2.fc16

Comment 4 Fedora Update System 2012-03-12 19:08:00 UTC
Package lcov-1.9-2.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lcov-1.9-2.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3611/lcov-1.9-2.fc17
then log in and leave karma (feedback).

Comment 5 Zdenek Kabelac 2012-03-23 10:14:47 UTC
Latest version lcov-1.9-2.fc18.noarch works for me, so I guess this bz could be closed as fixed.

Comment 6 Fedora Update System 2012-03-24 00:35:54 UTC
lcov-1.9-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2012-04-12 03:25:31 UTC
lcov-1.9-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Pavel Šimerda (pavlix) 2012-12-02 17:59:13 UTC
I'm getting the same error with lcov-1.9.2 after a change in the code. Unfortunately, I cannot identify the change. What information is needed
to debug this issue?

Comment 9 Pavel Šimerda (pavlix) 2012-12-02 18:29:44 UTC
An interesting thing is that after cleaning up (git clean -dfx), it works correctly.

Comment 10 Andrea 2012-12-31 11:50:26 UTC
(In reply to comment #8)
> I'm getting the same error with lcov-1.9.2 after a change in the code.
> Unfortunately, I cannot identify the change. What information is needed
> to debug this issue?

I am actually getting the same error using lcov 1.10.

I am using gcc 4.7.2 on Fedora 17 (64 bit).
Originally I was using lcov 1.7, and the error was always produced.
Now, with 1.10 is less regular.

How can I help?

Comment 11 Andrea 2013-01-02 09:05:28 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > I'm getting the same error with lcov-1.9.2 after a change in the code.
> > Unfortunately, I cannot identify the change. What information is needed
> > to debug this issue?
> 
> I am actually getting the same error using lcov 1.10.
> 
> I am using gcc 4.7.2 on Fedora 17 (64 bit).
> Originally I was using lcov 1.7, and the error was always produced.
> Now, with 1.10 is less regular.
> 
> How can I help?

I am not too sure any more.
Maybe it was a corrupted file.
Rebuilt and it works, will keep you posted.


Note You need to log in before you can comment on or make changes to this bug.