Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qREfg-000zpy-6n for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Aug 2023 16:26:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qREfe-006Ril-Gf for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Aug 2023 16:25:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qREfd-006Rid-LK for pgsql-hackers@lists.postgresql.org; Wed, 02 Aug 2023 16:25:58 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qREfa-0009zQ-CV for pgsql-hackers@lists.postgresql.org; Wed, 02 Aug 2023 16:25:56 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6F33A320089C; Wed, 2 Aug 2023 12:25:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 02 Aug 2023 12:25:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1690993551; x=1691079951; bh=OD cThoVbSS7cz0QNasdCKi9E7stBFQmvCRPKp3C+Oh4=; b=fdI5DCQuFYJNglxBEI eqWBzl8a6nV7AIRdfTzfM9bKuxx1aW8in/DJP5JlLWPfGrNCZda06o+Qm3dgtgbj l2uPN36UWEm+ho+uzgxpFn34+gUGDeKdbdD+3tvg4A1lkDPHbcbQePlutg/91sfH la/dITdI45Om23AvyYY98RGQFlThnWRf+6uaTEBAZ6vH/4cpi2yZeHhLEoab81fy Q+19RfdCPqL65pNdAWhl4HZ+5DSU6ZLWSL8+xCAn8iVTx0D+ReJcIJYomI0/1lWK 88NIc8I/PMjUkn0QziyWgImZBph8pHhx3DDvcBnFCVUmGT4p6+j30a7g32Dd2rKz CQ2w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690993551; x=1691079951; bh=ODcThoVbSS7cz 0QNasdCKi9E7stBFQmvCRPKp3C+Oh4=; b=AsjMmmumJWXbxhqm6GVHbAfBZ/weH Nk+8egFa668b1FtQokoTy9UWVif8kwQbsonLtuGzea/utwK3nBJ+2AXA9dsK/+F0 gON5ZK928U9gP2CEpjOXJiWjQhICPUz0qgL2bpOCB8h/ZBX+iFEdeUATjVXX3SWk ewZb4XtzfW+JINaGMuqDsmjgczcYapO8Q3bo8AH0Saq9aG8OqIOdYd3t+UIhfqvf PuSRw6LbEGAPvV7Jvd9tyHgGiqTzp4cj0kBxUZEMaQX7SGuyVsxsIILrnnenk7lO wa+omgGqzIkIGxdZxogs9FnPlipt7UW9weZ5nf8RLEaMUIN088vx+AfrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrkedtgddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesthdtre dttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghn rghrrgiivghlrdguvgeqnecuggftrfgrthhtvghrnhepvdfffeevhfetveffgeeiteefhf dtvdffjeevhfeuteegleduheetveduieettddunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Aug 2023 12:25:51 -0400 (EDT) Date: Wed, 2 Aug 2023 09:25:50 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: SIGQUIT handling, redux Message-ID: <20230802162550.6d6ya6k2djpoxplb@awork3.anarazel.de> References: <1850884.1599601164@sss.pgh.pa.us> <20200909192620.dylomoxknmt6rdb3@alap3.anarazel.de> <110116.1599682140@sss.pgh.pa.us> <113530.1599684626@sss.pgh.pa.us> <116384.1599688841@sss.pgh.pa.us> <141736.1599693895@sss.pgh.pa.us> <320251.1599792006@sss.pgh.pa.us> <394091.1599839575@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <394091.1599839575@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2020-09-11 11:52:55 -0400, Tom Lane wrote: > It's simple enough that maybe we could back-patch it, once it's > aged awhile in HEAD. OTOH, given the lack of field reports of > trouble here, I'm not sure back-patching is worth the risk. FWIW, looking at collected stack traces in azure, there's a slow but steady stream of crashes below StartupPacketTimeoutHandler. Most seem to be things like libcrypto->malloc->StartupPacketTimeoutHandler->proc_exit->socket_close->free->crash there's a few other variants, some where the stack apparently was not decipherable for the relevant tooling. Note that this wouldn't even include cases where this caused hangs - which is quite common IME. Unsurprisingly just in versions before 14, where this change went in. I think that might be enough evidence for backpatching the commit? I've not heard of issues due to the checks in check_on_shmem_exit_lists_are_empty(). Greetings, Andres Freund