agora inbox for [email protected]  
help / color / mirror / Atom feed
From: Jonathan Gonzalez V. <[email protected]>
To: Álvaro Herrera <[email protected]>
Cc: Jacob Champion <[email protected]>
Cc: [email protected]
Subject: Re: Coverage (lcov) failing with inconsistent error in versions 2.x
Date: Tue, 14 Jul 2026 13:06:17 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>


Hello!

Álvaro Herrera <[email protected]> writes:

> On 2026-Jul-06, Jacob Champion wrote:
>
>> On Fri, Jul 3, 2026 at 1:17 PM Álvaro Herrera <[email protected]> wrote:
>> > I added -j0 to both so that they run parallel processes, which should be
>> > a few second faster.
>> 
>> As a heads up, I found that adding parallelism on my local machine ran
>> it out of memory pretty quickly, with lcov 2.4. YMMV.
>
> Strange!
>
> Anyway I noticed that "-j0" doesn't work -- apparently it has to be "-j 0".
> I'll see how bad the memory usage gets on the next report, and turn that
> off (or set it lower?) if things are too tight.

I ran into the same issues and I took a different direction, since lcov
wasn't working I started to look for other solutions, turns out that
meson comes with a fallback if lcov is not installed called gcovr, and
works really well, at least for my requirements (not running in the full
stack), without any configuration I have a coverage report, enough at
least.

Has anyone tried gcovr before? I'd be interested to know whether there
are any drawbacks to using it.

Going back to lcov, according to an issue [0], it looks like users are
expected to use the "TOT" version, which makes no sense to me. I tested
the latest lcov release from last week, and I'm still experiencing the
same issues that started this thread.

In conclusion, I'll stick with gcovr for now rather than maintaining an
lcov configuration with many exceptions.

[0] https://github.com/linux-test-project/lcov/issues/473#issuecomment-4492099808

Regards

--
Jonathan Gonzalez V.
EDB
https://www.enterprisedb.com






view thread (10+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Coverage (lcov) failing with inconsistent error in versions 2.x
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox