Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewCbp-0006C1-4t for pgsql-www@arkaria.postgresql.org; Wed, 14 Mar 2018 20:02:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewCbn-00069r-IB for pgsql-www@arkaria.postgresql.org; Wed, 14 Mar 2018 20:02:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewCbn-00069i-9y for pgsql-www@lists.postgresql.org; Wed, 14 Mar 2018 20:02:47 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewCbk-0007ly-CF for pgsql-www@lists.postgresql.org; Wed, 14 Mar 2018 20:02:46 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id EB1A2C4B; Wed, 14 Mar 2018 16:02:42 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 14 Mar 2018 16:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=2xhnWdIQzQqFT2rQz VHaN8tSZm/FYZUzTh/azYE8SCY=; b=WKALawTmUWKPu7ZlaKG/5N12GHNSWmxGd oO1ScDbfiwPPokfzQenBdNbUQgyh9vMGJzVkmpnzWJ1hgoDAx+DKcqKD0fC+Dghp EJKl1GJg7Tf3hLycgogVLoqJqN3CvkfeD0Znh3SMq4ql2qvPoY1NGuD40RAUOuyg 8C8hrAJjrN5rNx0mkBxdGUhIJbUshPxOMc+VYrorPZYR83YhLpV18Ym68ubiUb2v bezdZHnEE79jYJeHMs0XSCiRC08xS4J1yCyd9d2hCxX0WWl6slWR83u/LyBaXyEd 7Lo0dLWfT5pvz029D5ISaEPZ8VcZZ6RUmIrzcP6Sa4CvPc9uarqUQ== X-ME-Sender: Received: from alvin.alvh.no-ip.org (unknown [179.56.29.253]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CA01240CE; Wed, 14 Mar 2018 16:02:42 -0400 (EDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 76A47AA4; Wed, 14 Mar 2018 17:02:40 -0300 (-03) Date: Wed, 14 Mar 2018 17:02:40 -0300 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , Stephen Frost , Magnus Hagander , PostgreSQL WWW Subject: Re: Bogus reports from coverage.postgresql.org Message-ID: <20180314200240.t2un5u2eybudldtv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <12595.1521057160@sss.pgh.pa.us> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tom Lane wrote: > Well, this is darn interesting. I got the Fedora lcov maintainer > to push an update absorbing the upstream "gcc 8" fixes. (Turned > out he'd already done that for rawhide, but forgot to push it into > the F28 branch.) And with that, and gcc 8.0.1, ... no bug. The > lines are marked "lineNoCov" with or without lcov_branch_coverage. Hmm. I wonder if this means that the reports generated with any compiler prior to gcc 8 are unreliable. At least we know now that that is indeed the case with branch coverage, but what about without? While we're on this topic ... Some time ago, I looked into whether it would be possible to make the coverage report ignore the elog(ERROR) lines, which are --or should be-- unreachable code and thus we don't care too much about test coverage. Finding no way to implement that, I gave up (I tried adding exclusion markers in the elog definition, as documented in geninfo. Perhaps I did it wrong). But maybe it is possible with these recent improvements? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services