Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcvay-0003a1-NJ for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jun 2019 17:39:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hcvaw-0000Xe-Vh for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jun 2019 17:39:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcvaw-0000XX-NA for pgsql-hackers@lists.postgresql.org; Mon, 17 Jun 2019 17:39:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcvau-0000GH-Lo for pgsql-hackers@lists.postgresql.org; Mon, 17 Jun 2019 17:39:02 +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 x5HHcswh010853; Mon, 17 Jun 2019 13:38:54 -0400 From: Tom Lane To: Andres Freund cc: Alvaro Herrera , Pg Hackers Subject: Re: assertion at postmaster start In-reply-to: <20190617172819.k3kq6jboo6toe42d@alap3.anarazel.de> References: <20190615160950.GA31378@alvherre.pgsql> <20190617172819.k3kq6jboo6toe42d@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 17 Jun 2019 10:28:19 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <10851.1560793134.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Jun 2019 13:38:54 -0400 Message-ID: <10852.1560793134@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-06-15 12:09:50 -0400, Alvaro Herrera wrote: >> Once in a blue moon I get this assertion failure on server start: >> TRAP: FailedAssertion(=C2=AB!(AbortStartTime =3D=3D 0)=C2=BB, Archivo: = =C2=AB/pgsql/source/master/src/backend/postmaster/postmaster.c=C2=BB, L=C3= =ADnea: 2957) > And "server process" is afaict only used for actual backends, not other > types of processes. But we've not yet seen "database system is ready to > accept accept connections", so IIRC it could only be a "dead_end" type > backend? But we didn't yet see an error from that... > Seems to indicate a logic error in postmaster's state machine. Perhaps > something related to dead_end processes? So if Andres is guessing right, this must be from something trying to connect before the postmaster is ready? Seems like that could be tested for ... regards, tom lane