pg.ddx.io  pgsql-www@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL WWW <pgsql-www@lists.postgresql.org>
Subject: Re: Bogus reports from coverage.postgresql.org
Date: Wed, 14 Mar 2018 12:46:39 -0400
Message-ID: <6735.1521045999@sss.pgh.pa.us> (raw)
In-Reply-To: <5744.1521045105@sss.pgh.pa.us>
References: <20180314154352.ao4psdohgxd4pw65@alvherre.pgsql>
	<4710.1521044117@sss.pgh.pa.us>
	<5744.1521045105@sss.pgh.pa.us>

I wrote:
> Our process swaps steps 1 and 2.  What I now suspect is that
> we accidentally get away with that for basic mode, but it
> doesn't work with lcov_branch_coverage.

I tested that theory by manually doing things in the "correct" order,
and it didn't change the results:

$ /usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -i -d . -d . -o lcov_base.info
geninfo: Note: --initial does not generate branch coverage data
$ make check
...
$ /usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -d . -d . -o lcov_test.info
$ rm -rf coverage
$ /usr/bin/genhtml -q --legend -o coverage --title='PostgreSQL 11devel' --num-spaces=4 --prefix='/home/tgl/pgsql' lcov_base.info lcov_test.info
$ grep bogus  coverage/src/backend/optimizer/util/predtest.c.*
coverage/src/backend/optimizer/util/predtest.c.gcov.html:<span class="lineNum">     492 </span>                :<span class="lineCov">      10186 :     elog(ERROR, &quot;predicate_classify returned a bogus value&quot;);</span>
coverage/src/backend/optimizer/util/predtest.c.gcov.html:<span class="lineNum">     803 </span>                :<span class="lineCov">      59482 :     elog(ERROR, &quot;predicate_classify returned a bogus value&quot;);</span>

I'm still a bit suspicious that we may have a process problem,
but it's looking like there may be grounds for an lcov bug
report.

			regards, tom lane




view thread (44+ messages)  latest in thread

Message-ID: <6735.1521045999@sss.pgh.pa.us>
Permalink:  ../6735.1521045999@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6735.1521045999@sss.pgh.pa.us

 · 

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: pgsql-www@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, alvherre@alvh.no-ip.org, sfrost@snowman.net, magnus@hagander.net, pgsql-www@lists.postgresql.org
  Subject: Re: Bogus reports from coverage.postgresql.org
  In-Reply-To: <6735.1521045999@sss.pgh.pa.us>

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

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