Re: Coverage with make coverage-html is broken on latest Debian using lcov v2 - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Coverage with make coverage-html is broken on latest Debian using lcov v2
Date
Msg-id AA39D6AA-7A22-4A3E-8BD2-4E2D64EDB9BE@anarazel.de
Whole thread
In response to Re: Coverage with make coverage-html is broken on latest Debian using lcov v2  (Andres Freund <andres@anarazel.de>)
Responses Re: Coverage with make coverage-html is broken on latest Debian using lcov v2
List pgsql-hackers
Hi,

On October 3, 2026 5:03:27 PM EDT, Andres Freund <andres@anarazel.de> wrote:
>I think there are definitely some bugs in lcov around multi-line statements
>that contain branches. That's where it seems to very often get confused and
>claims the data is inconsistent, but afaict it's due to it misunderstanding
>the data that gcov spits out.  I'll try to make a bug report out of that.

Oh, huh. At least one of the two bugs is actually a behavioral difference between gcc versions, not lcov versions. The
gcovdata starting with gcc 15 reports 

var =
   cond ? a : b;

i.e. a variable assignment with a conditional in a new line, different than before. And the new output actually
triggerserrors in lcov back to at least lcov 2.0. It's actually an error in geninfo. 

I found another small repro for multi line conditionals where some branches are never reached triggering errors in lcov
itself,and that one is not gcc version dependent... 

Will report bugs later today or tomorrow, food is more important now.

Greetings,

Andres
--
Sent from my phone. Please excuse my brevity.



pgsql-hackers by date:

Previous
From: Manu
Date:
Subject: Re: Proposal: "query_work_mem" GUC, to distribute working memory to the query's individual operators
Next
From: Haibo Yan
Date:
Subject: Re: Costing for parallel scans with few/single row produced in the outer side