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 1kf6uL-0007A6-6M for pgsql-general@arkaria.postgresql.org; Tue, 17 Nov 2020 19:44:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kf6uJ-0002Ku-Uc for pgsql-general@arkaria.postgresql.org; Tue, 17 Nov 2020 19:44:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kf6uJ-0002Ke-Mu for pgsql-general@lists.postgresql.org; Tue, 17 Nov 2020 19:44:51 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kf6uH-0005e9-0o for pgsql-general@lists.postgresql.org; Tue, 17 Nov 2020 19:44:51 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kf6uF-0005fm-C8; Tue, 17 Nov 2020 14:44:47 -0500 Date: Tue, 17 Nov 2020 14:44:47 -0500 From: Bruce Momjian To: Jeremy Wilson Cc: pgsql-general Subject: Re: pg_upgrade of 11 -> 13: free(): invalid pointer Message-ID: <20201117194447.GA11273@momjian.us> References: <42097E6F-BE25-4F2A-8A80-71E7EB3A2C6E@clover.co> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <42097E6F-BE25-4F2A-8A80-71E7EB3A2C6E@clover.co> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Nov 17, 2020 at 11:59:10AM -0500, Jeremy Wilson wrote: > 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.’; My guess is that this is a crash in the PostGIS shared library. I would ask the PostGIS team if they know of any crash cases, and if not, I think you need to do a pg_dump of the database and test-load it into a new database to see what query makes it fail, and then load debug symbols and do a backtrace of the stack at the point of the crash. Yeah, not fun. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee