Bug 706040 - geninfo: ERROR: cannot read <built-in>.gcov!
Summary: geninfo: ERROR: cannot read <built-in>.gcov!
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lcov
Version: 16
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: 2011-05-19 09:35 UTC by Mark Wielaard
Modified: 2012-04-12 03:25 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:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
geninfo.patch replace 2 argument open with 3 argument open (1.19 KB, patch)
2011-05-19 09:35 UTC, Mark Wielaard
no flags Details | Diff

Description Mark Wielaard 2011-05-19 09:35:44 UTC
Created attachment 499788 [details]
geninfo.patch replace 2 argument open with 3 argument open

Description of problem:

lcov cannot read "special" file names that start with '<' or '>'
since it is using the two argument open function. It should use
the three argument open function to provide the mode itself instead
of deriving it from the filename.
http://perldoc.perl.org/perlfaq5.html#How-can-I-open-a-file-with-a-leading-%22%3E%22-or-trailing-blanks?

Version-Release number of selected component (if applicable):

lcov.noarch 0:1.7-1.fc12

How reproducible:

Always

Steps to Reproduce:
1. git clone git://git.fedorahosted.org/git/elfutils
2. ./configure --enable-gcov
3. make -j8 && make check
4. lcov --directory . --capture --output-file lcov.info
  
Actual results:

[...]
Processing ./tests/test-flag-nobits.gcda
<built-in>:cannot open source file
geninfo: ERROR: cannot read <built-in>.gcov!

Expected results:

[...]
Writing directory view page.
Overall coverage rate:
  lines......: 56.0% (13421 of 23947 lines)
  functions..: 70.1% (750 of 1070 functions)

Additional info:

Patch with a fix for geninfo attached.

Comment 1 Marek Polacek 2011-05-19 10:03:33 UTC
I've found that this is fixed in the lcov upstream CVS, see http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/geninfo?revision=1.91&view=markup

Or, here's the patch similar to Mark's: http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/geninfo?r1=1.90&r2=1.91

Comment 2 Roland McGrath 2011-05-23 02:15:24 UTC
Do either of you have any interest in co-maintaining (or taking over) lcov?
I haven't used it in quite a while, and failed to notice the upstream releases.
It should get updated to the latest upstream release.

Comment 3 Daniel Berrangé 2012-03-12 11:22:33 UTC
Fedora 14 is EOL, but this still exists in F16, so changing version

Comment 4 Fedora Update System 2012-03-12 11:29:21 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 5 Fedora Update System 2012-03-12 11:38:10 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 6 Fedora Update System 2012-03-12 19:08:07 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 7 Fedora Update System 2012-03-24 00:35:59 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 8 Fedora Update System 2012-04-12 03:25:38 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.


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