Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY0VD-00083n-IY for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 04:57:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jY0Ug-0002S1-Kp for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 04:56:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY0Ug-0002OF-Dv for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 04:56:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY0Ua-0007sg-3V for pgsql-hackers@postgresql.org; Mon, 11 May 2020 04:56:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 04B4ubPp028860; Mon, 11 May 2020 00:56:37 -0400 From: Tom Lane To: Alvaro Herrera cc: Alexander Lakhin , pgsql-hackers Subject: Re: gcov coverage data not full with immediate stop In-reply-to: <20200511034243.GA5671@alvherre.pgsql> References: <20200511034243.GA5671@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Sun, 10 May 2020 23:42:43 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28858.1589172997.1@sss.pgh.pa.us> Date: Mon, 11 May 2020 00:56:37 -0400 Message-ID: <28859.1589172997@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-May-10, Alexander Lakhin wrote: >> 3. Explicitly call __gcov_flush in SIGQUIT handler (quickdie)? > I tried your idea 3 a long time ago and my experiments didn't show an > increase in coverage [1]. But I like this idea the best, and maybe I > did something wrong. Attached is the patch I had (on top of > fc115d0f9fc6), but I don't know if it still applies. Putting ill-defined, not-controlled-by-us work into a quickdie signal handler sounds like a really bad idea to me. Maybe it's all right, since presumably it would only appear in specialized test builds; but even so, how much could you trust the results? > I think we should definitely get this fixed for pg13 ... -1 for shoving in such a thing so late in the cycle. We've survived without it for years, we can do so for a few months more. regards, tom lane