Launchpad has imported 7 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=829514.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-06-07T00:09:20+00:00 Ben wrote:

Created attachment 590034
lcov-except-unreach.patch

Description of problem:
The format of gcov output files changed slightly in gcc 4.7, and lcov does not 
understand the new format. Unreachable code that can only be accessed via an 
exceptional path is now marked as ===== in the gcov output file (aside: the 
gcov manpage says ====, i.e. one '=' is missed) but lcov only understands ##### 
for unreachable code (which is now only used for non-exceptional paths). If 
given a gcov file containing the new syntax, lcov will generate an invalid 
.info file.

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

How reproducible:
Always.

Steps to Reproduce:
1. Compile the following simple C++ file:

#include <iostream>

int main()
{
  try {
    std::cout << "hello world" << std::endl;
  } catch (const std::exception &e) {
    std::cout << "caught exception" << std::endl;
  }
  return 0;
}

with
g++ -Wall -fprofile-arcs -ftest-coverage test.cpp 


2. Run with ./a.out
3. Process with lcov:
lcov -c -b . -d . -o test.info
  
Actual results:
Perl complains with:
geninfo: Argument "=====" isn't numeric in numeric gt (>) at /usr/bin/geninfo 
line 1126.

and the ===== lines get passed through to the .info file, which results in 
invalid lines:
DA:7,=====
DA:8,=====

Expected results:
No Perl errors; correctly formatted .info file.

Additional info:
It is straightforward to fix geninfo to work with the new format; see attached 
patch "lcov-except-unreach.patch".

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/0

------------------------------------------------------------------------
On 2013-03-19T14:28:23+00:00 Fedora wrote:

lcov-1.10-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/lcov-1.10-1.fc18

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/1

------------------------------------------------------------------------
On 2013-03-19T14:28:55+00:00 Daniel wrote:

It turns out upstream have fixed this too, so I pulled in their patch,
which achieves the same as yours.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/2

------------------------------------------------------------------------
On 2013-03-19T14:37:57+00:00 Fedora wrote:

lcov-1.10-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/lcov-1.10-1.fc17

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/3

------------------------------------------------------------------------
On 2013-03-20T21:39:45+00:00 Fedora wrote:

Package lcov-1.10-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lcov-1.10-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4076/lcov-1.10-1.fc18
then log in and leave karma (feedback).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/4

------------------------------------------------------------------------
On 2013-06-04T21:08:18+00:00 Fedora wrote:

lcov-1.10-1.fc17 has been pushed to the Fedora 17 stable repository.  If
problems still persist, please make note of it in this bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/6

------------------------------------------------------------------------
On 2013-06-04T21:10:53+00:00 Fedora wrote:

lcov-1.10-1.fc18 has been pushed to the Fedora 18 stable repository.  If
problems still persist, please make note of it in this bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/comments/7


** Changed in: lcov (Fedora)
       Status: Unknown => Fix Released

** Changed in: lcov (Fedora)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1163758

Title:
  geninfo: Argument "=====" isn't numeric in numeric gt (>) at
  /usr/bin/geninfo line 1126.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to