Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1os7Bo-0005JJ-5J for pgsql-general@arkaria.postgresql.org; Mon, 07 Nov 2022 18:49:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1os7Bm-0000BB-Sh for pgsql-general@arkaria.postgresql.org; Mon, 07 Nov 2022 18:49:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1os7Bm-0000Ak-9u for pgsql-general@lists.postgresql.org; Mon, 07 Nov 2022 18:49:42 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1os7Bj-00040K-24 for pgsql-general@lists.postgresql.org; Mon, 07 Nov 2022 18:49:41 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 525763200344; Mon, 7 Nov 2022 13:49:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 07 Nov 2022 13:49:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding: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=1667846974; x= 1667933374; bh=Ns0tVKWh7TYongUppkjMJUtfPLVBE1HWLAZth1C4urg=; b=g oWeSFw7blaWt/3quQ4YMxP5H0NQ6+5WSjOex3aUyu/sUMwFQRzZtZW1fkGWtT2RP 4maH9ffd6oVT1dhcLJtsm20L+MPc7uZilPm+ULKcaPgZu2fbiezBDYRboHBahy9T gLWreuOqBF9msQHP/Dj/vjPFNJMPmYjzlHfiIYszqDZ1VuP5NZ1HaOIGqfIWOMqM VDbakfOOyLcqL1O1jvJwRyxrYRVPfuZhhrazneJaZq8SNlxJnMp+6IeedMidtN6D EVyVEOjr9KQbi0uoNlJXXtK8rcuM8cKaKwq6ddkw3dcU5UskuP5zb38eY95unRMM tel0v7etZQAUjgPqInbvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm1; t=1667846974; x= 1667933374; bh=Ns0tVKWh7TYongUppkjMJUtfPLVBE1HWLAZth1C4urg=; b=r zdCLF5VzRmHBd3cIlXwQO0uaXylkXCuunwr3YNQk3zhsii75JoYmazzBlf5w59IX 2Hmm/k45imGtRrlvWpLnIh5wcEcOAa2SkOiK53Da1rn4DsKFtkZpQOR1paQ0OZCQ 7oXIbZySN3BX/c1+Wn3kbV9vsVhUfzqXG1NJk4KP4mRMqKrv+qB9xXciJjCYUou4 Bo0K2RaHXID1MUo5u1OlmlzXZhz+yoo/vyRvN5C1RjaIhBhuaWLHnqCfNTveyJjO OLQjN/pywX7gh3XLbgR0QrbP/L8rYGeL+XR0ktjqnzGsdiVOwqEoNj1lus6uLzki Wj8L8e6MbyZX5IWZ/Roxw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdekgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepgfduvefhgeejgeffueeuudevlefgueejuefgieeu leeluddtueefvdfffeegteevnecuffhomhgrihhnpehtrhhimhgslhgvrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 13:49:33 -0500 (EST) Subject: Re: Segmentation Fault PG 14 To: Willian Colognesi , Tom Lane Cc: pgsql-general@lists.postgresql.org References: <3316399.1667844527@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <168a3b2b-dcab-fe33-81d5-94e5d4482fc4@aklaver.com> Date: Mon, 7 Nov 2022 10:49:32 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/7/22 10:36 AM, Willian Colognesi wrote: > Hi Tom, > > `I take it things were okay with the version you used previously?` > Yes, it was working pretty well in another instance with pg version > `12.4-1.pgdg18.04+1`, and we had to make a migration of one database > that was running in this server to another using Logical Replication. Actually you used dump/restore and logical replication. ' In below: 1) What versions of pg_dump and pg_restore did you use? 2) To be clear the subscription was started after the restore? 3) Where there any error messages issued at any point in below? 4) Are the database clusters on the same machine? > > the process was basically this: > |CREATE| |PUBLICATION my_database_pub ||FOR| |ALL| |TABLES;| > |postgres@origin:~$ psql "dbname= replication=database" > | > | > |my_database=# CREATE_REPLICATION_SLOT LOGICAL pgoutput;| > pg_dump -j4 -h -p 5432 --no-subscriptions --no-publications -d > --snapshot= -Fd -U -f > > postgres@destination:/mnt/database$ pg_restore -d -j 5 > > > CREATE SUBSCRIPTION >        CONNECTION 'host= dbname= user=replica > password=?? port=5432' >        PUBLICATION >        WITH (slot_name=, create_slot=false, copy_data=false); > | > > > After this migration we started to have this kind of problem in both > replica and primary servers. > > `This looks pretty messed up.  Are you sure the debug symbols you're using` > What exactly do you mean? I'm not too familiar with this debug toolings, > the packages I've used were: > > postgresql-14/focal-pgdg,now 14.5-2.pgdg20.04+2 arm64 [installed] > postgresql-14-dbgsym/focal-pgdg,now 14.5-2.pgdg20.04+2 arm64 [installed] > > `Even better, can you construct a self-contained test case?`: > Actually I couldn't reproduce the problem because it's happening just in > a production database, and it doesn't look to have a pattern in the > cases when it happens. > > Is there anything I could provide you to help the analysis ? > > > > On Mon, Nov 7, 2022 at 3:08 PM Tom Lane > wrote: > > Willian Colognesi > writes: > > I started to use version `14.5-2.pgdg20.04+2` for a dedicated > database and > > I'm facing many segmentation faults during the day when the > database has > > more heavy queries. > > I take it things were okay with the version you used previously? > What was that exactly?  Has anything else changed? > > > I could also get a little information from gdb, I'm not sure if > it will > > help: > > This looks pretty messed up.  Are you sure the debug symbols you're > using > match the package? > > Even better, can you construct a self-contained test case? > >                         regards, tom lane > > > > -- > > *Willian Cezar de O. Colognesi > * > Systems Analysis Specialist, Trimble Transportation Brazil > Avenida Santos Dumont, 271 | Londrina, PR | 86039-090 > -- Adrian Klaver adrian.klaver@aklaver.com