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 1hSX5X-0002JU-NI for pgsql-bugs@arkaria.postgresql.org; Mon, 20 May 2019 01:27:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hSX5V-0001hA-JK for pgsql-bugs@arkaria.postgresql.org; Mon, 20 May 2019 01:27:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSX5V-0001h3-2F for pgsql-bugs@lists.postgresql.org; Mon, 20 May 2019 01:27:37 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSX5S-0003Xp-Jp for pgsql-bugs@lists.postgresql.org; Mon, 20 May 2019 01:27:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F12C621F3C; Sun, 19 May 2019 21:27:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 19 May 2019 21:27:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=665tmV3DChN1WKCzyiud/pW14gN 6WN/2icidCqOAduY=; b=rrcMOc53y1gxR6XIdokKj6XRtWDyC0WraqrYOvto598 ib5xpS8bslHbcd4eWD+5N0zSvNvwo/ZpeqruHsYag8SkDjOhvdRcCaPWtZOMHKBN cPiJVg1hfKeGRq9Kbp5ASvUgAVn0SEdhe0XBJBmI9H0KcUTuokY7iyyghGrLj0pn ZCLFcFhxzdbgVrps4vzjvzuVWMyqUoQuw8ZdK33Fi3s9ES6hBg5WuIZblMWTcUv6 9wlvuBkANM8lamXeg8ctlJuB5fPW31/zXsfAHHUo5IyZkAIx5o4C8S/kgjb/MqKJ QNrONhUd6rVwm+fhoHBvc/zatbkMOFSVzruLOqSZOBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=665tmV 3DChN1WKCzyiud/pW14gN6WN/2icidCqOAduY=; b=tJoNursSuIRHGypQis1cl5 5YKFtqY+u/tmear76qAqUVhLF6SXJXfG+RAQ8rhGiQ5dYiCa5dF0QN0aSlRvcLt7 9bO1OwFb6j+7+tTKpccn2s3qQ7lpgU+3mGmNlZ8pS9L5tNqrmS2FGziIZZTWk7ZH tcFweIeT60JSNuUSv0TsXyPTHW9J3rwHftTeAu/XWiv7vd2tXeCx+cbJZkKvW9v2 4JgkRNGKUBVxFAibOEsT9K1LI8ap3F3zpZZdXEPN2Q6mZoVhqDa/u3npSb3OlCxd GOem3R8QxuGXwU8lFhzfZ6npTOQo8Cx3zF0i24DhDON6WJx1XgLE39b44ge1O0gg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtjedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D44D8005A; Sun, 19 May 2019 21:27:31 -0400 (EDT) Date: Mon, 20 May 2019 10:27:28 +0900 From: Michael Paquier To: Tom Lane Cc: Andrew Dunstan , Andres Freund , Peter Eisentraut , Yuli Khodorkovskiy , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15804: Assertion failure when using logging_collector with EXEC_BACKEND Message-ID: <20190520012728.GC1923@paquier.xyz> References: <20190516060628.GE1415@paquier.xyz> <20190517042536.GM20887@paquier.xyz> <20190517202443.gw4zdfkpwgsjdel6@alap3.anarazel.de> <20190518093522.GA19212@paquier.xyz> <28565.1558196308@sss.pgh.pa.us> <20190519004344.GA3653@paquier.xyz> <22995.1558278322@sss.pgh.pa.us> <27719.1558282181@sss.pgh.pa.us> <16df9d01-8b03-2664-a18c-16c40186f5ab@2ndQuadrant.com> <2702.1558289980@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WplhKdTI2c8ulnbP" Content-Disposition: inline In-Reply-To: <2702.1558289980@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, May 19, 2019 at 02:19:40PM -0400, Tom Lane wrote: > Done. I went ahead and pushed it, but if the buildfarm shows any > sign of unhappiness I'll just revert it. I have not tested on Windows this one, but on Linux with EXEC_BACKEND the test is still not able to detect correctly the failures of the syslogger if one reverts 8334515 to re-enable the early syslogger startup, so that's a bit disappointing, and on the contrary culicidae's run frequency and its detection of the problem are good :( The trick is that the postmaster does not complain on that as we are still in early stages of initialization. Still it can be found in the logs redirected to stderr. I got some ideas on how to improve the detection unfortunately I think that these are rather fragile as the syslogger keeps restarting: - Switch all the assertions in *_shmem.c to elog(FATAL) or just elog(PANIC) to ease their detection in the logs. - Track for any FATAL or PANIC, or even assertions failures in the log files generated at early stages when starting the server. - Have a GUC switch to never restart the syslogger in case of a failure, still at realy stages we'll run into issues because the GUC configuration may not be loaded? Tracking the syslogger via pg_stat_activity is not an option either as we don't want to connect it to shared memory by design. We cannot either increase read_backend_variables(), as all its errors go to stderr. Ideas are welcome. -- Michael --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlziAoAACgkQnvQgOdby QH3L+A//ZSAiqzy6HWJoX+tm6Kj/SI/gep3CmKpVABd+O+2DCau3u29sEGdXe8eM 2unjcN0aMHA3CZD75Lamdzbfp/O8S4AhoYwCLX+7741fOqaU7u5P+E5ZBSdNUZeR SyGFxO+oqD5pi5SxYZhD9Z6/FWFgxjynkZMDHXahME8UHMMdwpi5Bt/gzPWBRqg/ os8EYJ72Ip/aDDq25OcY9rhbaFxgPWCUBdf+OX9sY4RCj6ijSAlPP6F7a0FadyNe qV05RbDAFPCe8+kLgX7eDO4I1+1ta196eymJq2ULHVtjX/f0qZL5naXASTb9CkPQ zCmYD1G2YWtaeqyBNIPSZqjbdutjNfmZmhksh0QE/HLFkNPm3f6oJSALyt55arA4 5K0MkP/S/Un7TCrL4B1k6N/KmLmiGTDRVZo+1SpjoOaHo3Oo2ctIqsBUb75KjWTN /K/F7qX7I5JKLxzkDyPWjd1F5vcotI+G1fVfn7bKRR2eSCuR1j75VbjehlBwCagP a1eci4gPX5habVGsjTbOrRgrE6C8pTrFjfxPUD/31UlKX5g7UwHQRaxS5Q2UyUap xoP0qMxa1CdCs0d5SfEtx+HOZjImEWowDZyKkrfoq5FoAP4vFivr2VRDRY+vpHPj HZ9a0My5zerkgSkm5V9UhGP4AgJsbtj1aXy8qus/uZe/PzfiOKs= =1KnE -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP--