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 1kf4cs-0001zE-FB for pgsql-general@arkaria.postgresql.org; Tue, 17 Nov 2020 17:18:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kf4cL-0003Qw-TO for pgsql-general@arkaria.postgresql.org; Tue, 17 Nov 2020 17:18:09 +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 1kf4cK-0003Qp-Tc for pgsql-general@lists.postgresql.org; Tue, 17 Nov 2020 17:18:09 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kf4cI-0007qy-6M for pgsql-general@lists.postgresql.org; Tue, 17 Nov 2020 17:18:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id AC05AECB; Tue, 17 Nov 2020 12:18:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 17 Nov 2020 12:18:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=p +ei/f7rah/c1aaBcQVKcpESSyNvkjoxZCzq1l0shno=; b=VYbb1HOkgpV3vE90j zUuIAPhRJiOXk+Cr42/fG7JzNCNWn4OxdAJHQT4otliI5ViAvBcLW3N0fFHDtxsE S2X/7kjQj2R/SwyieunPJBN78gd6BakLE1Lz9elpUIaUA8V8KCHXIBrWSX/oiBQ6 dK842FQF3hMCvdS1V5konZuvTVeirku+uomjVJWcgIKh5//vjj63CsAECUXNkvEy ENfobnF9Adrh0QIG0cW3IBMtVx1seL71PlLCBgQ6h94hNEA7eLI2x+l1P7N28clU OXXDMZpEcyC9I4vkTHFf8wjjRrUXJmWkx4hOKwIjngJmcv+K4th34Eq4YZd2QY5g D8LwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=fm1; bh=p+ei/f7rah/c1aaBcQVKcpESSyNvkjoxZCzq1l0sh no=; b=mxkb32MQ9Q4t+6zrPhflph+noO2DiKk08IJN8Lqx7jK1ck+W7XPcMpjzH OiDHcGtp5nQq281AjRJjNPBboEeds2IAHrllEjbrMu9ygiXEpnM5DgPUiA2oSGfG mzNVgLjcZ2M6kDYvH9G939LR5K6pzoVL+WuhG6y7SOJbZz2mEZeJsL2dFzDx6XoW E/WOhR9DR9oF/6nSMD1M4YM1V5ORrI917WjgcPyuM2KXjZ1SUT7ufCcjmClvQiN8 C0lwxyiJS7YfpPiaETfzcIS1saXrIF64Ky8EMOr3F869jHOrC+bw3XvGVwJj/NJf mjcHfYUxKG9ysdvGvZ4NsjGln1LFg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeffedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrdduledrudefleenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.4] (75-172-19-139.tukw.qwest.net [75.172.19.139]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E2D53064AAA; Tue, 17 Nov 2020 12:18:03 -0500 (EST) Subject: Re: pg_upgrade of 11 -> 13: free(): invalid pointer To: Jeremy Wilson , pgsql-general References: <42097E6F-BE25-4F2A-8A80-71E7EB3A2C6E@clover.co> From: Adrian Klaver Message-ID: <8fcb65d3-0a5e-6e5f-0def-d406b0f9fe03@aklaver.com> Date: Tue, 17 Nov 2020 09:18:02 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <42097E6F-BE25-4F2A-8A80-71E7EB3A2C6E@clover.co> 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: Precedence: bulk On 11/17/20 8:59 AM, Jeremy Wilson wrote: > I’m continuing my upgrade journey, this time from 11 to 13, and the process is dying in the copy phase, always on the same DB: > > — > Performing Upgrade > ------------------ > Analyzing all rows in the new cluster ok > Freezing all rows in the new cluster ok > Deleting files from new pg_xact ok > Copying old pg_xact to new server ok > Setting next transaction ID and epoch for new cluster ok > Deleting files from new pg_multixact/offsets ok > Copying old pg_multixact/offsets to new server ok > Deleting files from new pg_multixact/members ok > Copying old pg_multixact/members to new server ok > Setting next multixact ID and offset for new cluster ok > Resetting WAL archives ok > Setting frozenxid and minmxid counters in new cluster ok > Restoring global objects in the new cluster ok > Restoring database schemas in the new cluster > messages > *failure* > > Consult the last few lines of "pg_upgrade_dump_16387.log" for > the probable cause of the failure. > Failure, exiting > — > > The log contains (which is different each time): > > — > pg_restore: WARNING: terminating connection because of crash of another server process > DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. > HINT: In a moment you should be able to reconnect to the database and repeat your command. > pg_restore: creating COMMENT "public.FUNCTION "st_isempty"("rast" "public"."raster")" > pg_restore: while PROCESSING TOC: > pg_restore: from TOC entry 5338; 0 0 COMMENT FUNCTION "st_isempty"("rast" "public"."raster") postgres > pg_restore: error: could not execute query: server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > Command was: COMMENT ON FUNCTION "public"."st_isempty"("rast" "public"."raster") IS 'args: rast - Returns true if the raster is empty (width = 0 and height = 0). Otherwise, returns false.’; > — > > And the pgsql13 server log contains: > > — > 2020-11-17 11:51:40.953 EST [96545] LOG: database system is ready to accept connections > free(): invalid pointer > 2020-11-17 11:51:42.880 EST [96545] LOG: server process (PID 96575) was terminated by signal 6: Aborted > 2020-11-17 11:51:42.880 EST [96545] LOG: terminating any other active server processes > 2020-11-17 11:51:42.880 EST [96582] WARNING: terminating connection because of crash of another server process > 2020-11-17 11:51:42.880 EST [96582] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. > 2020-11-17 11:51:42.880 EST [96582] HINT: In a moment you should be able to reconnect to the database and repeat your command. > 2020-11-17 11:51:42.884 EST [96545] LOG: all server processes terminated; reinitializing > 2020-11-17 11:51:42.904 EST [96545] LOG: received fast shutdown request > 2020-11-17 11:51:42.905 EST [96585] LOG: database system was interrupted; last known up at 2020-11-17 11:51:42 EST > 2020-11-17 11:51:42.906 EST [96585] LOG: database system was not properly shut down; automatic recovery in progress > 2020-11-17 11:51:42.906 EST [96585] LOG: redo starts at E0/DB6B2960 > 2020-11-17 11:51:42.907 EST [96545] LOG: abnormal database system shutdown > 2020-11-17 11:51:42.909 EST [96545] LOG: database system is shut down > — > > So I’m assuming it’s that free() call. Servers have PostGIS 3.0 on them, all installed from repo, and running CentOS 8. Was this after a clean install of the corrected RPM's? -- Adrian Klaver adrian.klaver@aklaver.com