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 1qkDGk-00DYPm-81 for pgsql-admin@arkaria.postgresql.org; Sun, 24 Sep 2023 00:46:43 +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 1qkDGg-003bgu-NZ for pgsql-admin@arkaria.postgresql.org; Sun, 24 Sep 2023 00:46:38 +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 1qkDGe-003bfs-TM for pgsql-admin@lists.postgresql.org; Sun, 24 Sep 2023 00:46:38 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkDGa-006HdU-F3 for pgsql-admin@lists.postgresql.org; Sun, 24 Sep 2023 00:46:34 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8E491320091D; Sat, 23 Sep 2023 20:46:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 23 Sep 2023 20:46:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com.au; 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=fm2; t=1695516390; x= 1695602790; bh=AhZrAvPu5MP+wZAD+OGI/t387T3u5rNuaf4V1m7mKKc=; b=L JdXslf0Kl8l0s46RKlY0rwLmUsKjVMaBZZtL98ad8WeVvX52OneBXOKbE9X+D8Xb 4HmsMdIQJdJYS6rzhtllz7nkPCURVd0t67hr79X55crpuJlY+QUqO+UX+OtWGCcb oyR36boY6f2r2jCMdN6ODTWrCI+4boDweuKJv5k0R1AiXCCUPiCappRiEFoI8KKX 34z8oXpPT1jB6K+qncxP2YgOlnLrXKkqrv3MlvomGqP+jVsNdxkZwe4s+stJGJhA g6JHGHsuO9FZpa/SIASAXyd/vWCgdO/VdD24+7ST6jbDWmKQUnkFPBsXgRkYvG8o 95AW94MLwsoHyCGwa/DRA== 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=fm2; t=1695516390; x=1695602790; bh=AhZrAvPu5MP+w ZAD+OGI/t387T3u5rNuaf4V1m7mKKc=; b=oU6rxBiwksXYKfTDTsZ+/FgCI7maZ wUa+iaplfGbFoC2+ZKkE0dOmbyshDL9yhL6henMaZGhUlaG0CRAJHo9cSLRtc5mY JhbWgh1NLDdQZxQTmzmHMaM5fpaNIN+5JKWyVqnzGNTf9jOvCQrZPf7Y4qEIdM83 CFs4EzA2btogZ++/honT+ue+n/MpenUuAKp4w5PS9vNiGqlH598QHHw7vwlrfR7S EdrCG+oqU4pxS/L/dq1KI4nXohS/OBauD/27I803OJckJJsHqUC6yz55EXwTGp9S L07yEBPKEhUmr39LMur8bypl8yhz281IiXIiAq8+Ea7FpYg+Ll9HSUc9Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeluddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvvehfhfgjsegrtd erredtvdejnecuhfhrohhmpeforghtthcuifhisggsihhnshcuoehmrghtthgpghhisggs ihhnshesfhgrshhtmhgrihhlrdgtohhmrdgruheqnecuggftrfgrthhtvghrnhepfeduve evhffftdffvdfhueelledthfffgeejjeffudefffejjeffvdeggedtjeefnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtpghgihgssg hinhhssehfrghsthhmrghilhdrtghomhdrrghu X-ME-Proxy: Feedback-ID: i6d194797:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Sep 2023 20:46:28 -0400 (EDT) Content-Type: multipart/alternative; boundary="------------zyM4S0Lxb0SaL2ViUyDjFu0e" Message-ID: <94eaab7c-b764-418e-a623-c6b4911f4e32@fastmail.com.au> Date: Sun, 24 Sep 2023 10:46:25 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Segmentation fault when running queries in sequence Content-Language: en-AU To: Tom Lane Cc: pgsql-admin@lists.postgresql.org References: <728d1797-efdd-4298-8ab2-042a28ddaae2@fastmail.com.au> <1282819.1695479196@sss.pgh.pa.us> <1418006.1695513406@sss.pgh.pa.us> From: Matt Gibbins In-Reply-To: <1418006.1695513406@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------zyM4S0Lxb0SaL2ViUyDjFu0e Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24/9/23 09:56, Tom Lane wrote: > Matt Gibbins writes: >> When I launch gdb for stack trace on the server the process hangs. > If you mean you're attaching gdb to the active server process, yes > that would stop execution. You could just say "continue" and > wait for the segfault to occur. > > regards, tom lane Tom Thanks for that I launched gdb on the server with sudo gdp -p . Launched the client on the remote connection then executed continue in the gdb prompt on the server. Initial response Continuing. Program received signal SIGUSR1, User defined signal 1. I executed continue and the gdb reported '[Detaching after fork from child process 2790431]' for several sequences and the remote process then crashed. No further information available other than 'Detaching after fork...'. Regards Matt. --------------zyM4S0Lxb0SaL2ViUyDjFu0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 24/9/23 09:56, Tom Lane wrote:
Matt Gibbins <matt_gibbins@fastmail.com.au> writes:
When I launch gdb for stack trace on the server the process hangs.
If you mean you're attaching gdb to the active server process, yes
that would stop execution.  You could just say "continue" and
wait for the segfault to occur.

			regards, tom lane

Tom

Thanks for that

I launched gdb on the server with sudo gdp -p <port>.

Launched the client on the remote connection then executed continue in the gdb prompt on the server.

Initial response

Continuing.

Program received signal SIGUSR1, User defined signal 1.

I executed continue and the gdb reported '[Detaching after fork from child process 2790431]' for several sequences and the remote process then crashed.

No further information available other than 'Detaching after fork...'.

Regards

Matt.



--------------zyM4S0Lxb0SaL2ViUyDjFu0e--