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 1qkDOU-00DYl4-3n for pgsql-admin@arkaria.postgresql.org; Sun, 24 Sep 2023 00:54:42 +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 1qkDOR-003gbF-VC for pgsql-admin@arkaria.postgresql.org; Sun, 24 Sep 2023 00:54:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkDOR-003gax-JM for pgsql-admin@lists.postgresql.org; Sun, 24 Sep 2023 00:54:39 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkDOO-007Cx7-SP for pgsql-admin@lists.postgresql.org; Sun, 24 Sep 2023 00:54:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 38O0sY5I1430984; Sat, 23 Sep 2023 20:54:34 -0400 From: Tom Lane To: Matt Gibbins cc: pgsql-admin@lists.postgresql.org Subject: Re: Segmentation fault when running queries in sequence In-reply-to: <94eaab7c-b764-418e-a623-c6b4911f4e32@fastmail.com.au> References: <728d1797-efdd-4298-8ab2-042a28ddaae2@fastmail.com.au> <1282819.1695479196@sss.pgh.pa.us> <1418006.1695513406@sss.pgh.pa.us> <94eaab7c-b764-418e-a623-c6b4911f4e32@fastmail.com.au> Comments: In-reply-to Matt Gibbins message dated "Sun, 24 Sep 2023 10:46:25 +1000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1430982.1695516874.1@sss.pgh.pa.us> Date: Sat, 23 Sep 2023 20:54:34 -0400 Message-ID: <1430983.1695516874@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matt Gibbins writes: > I executed continue and the gdb reported '[Detaching after fork from > child process 2790431]' for several sequences and the remote process > then crashed. I think this means that you attached to the parent postmaster process, not to the per-session child process where the crash will occur. On the whole, attaching to a live server process is kind of the hard way to do this anyhow. I'd recommend enabling saving of core dump files and then gdb'ing the core file. That avoids needing to identify in advance the process that is going to crash. regards, tom lane