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 1kXRUk-00032a-5W for pgsql-admin@arkaria.postgresql.org; Tue, 27 Oct 2020 16:06:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kXRUi-0004vO-Sh for pgsql-admin@arkaria.postgresql.org; Tue, 27 Oct 2020 16:06:44 +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 1kXRTC-0000Nj-Jp for pgsql-admin@lists.postgresql.org; Tue, 27 Oct 2020 16:05:10 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXRTA-0002B9-Mn for pgsql-admin@lists.postgresql.org; Tue, 27 Oct 2020 16:05:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id F3A8A5C0070; Tue, 27 Oct 2020 12:05:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 27 Oct 2020 12:05:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XVxDjpimNCORiIw3M dgQPscNT2NlRQTNodyemhGcznQ=; b=Y2wdnzWo7ywO7ytLw2tmpufm3RhLMLKEG +R6nWwmFwizVTefTdW8juM33Ajbhbvb+ruobmQ26fg/qVpczR617eBnDGtUwuL6L E9Zn/4cBniDVi2pTLq385zb/7q8VFsSIsW4arSDtk/9I2TmYFFtmHxc2Z3sgJlg7 UCpRLXNztc6OjOGzWyzCOtuoOkxPelCWUfPah/D3Fnplx46c72Dc07ICDYowg3dg zrDY1E/d46BdCnhT9AW8yOic26/MYdVZScrhCxgrqRBCH/JsG65Gb/yD0+ps3dL/ skBK8m2zDq+CuiHq8KFBYnRGL8E1hgojT7G6cdofLMCuDuf4frIkg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeelgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteetiedu ieeihffggfehffetnecukfhppeduledtrdelhedrudelrddugeeknecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 024AA3064610; Tue, 27 Oct 2020 12:05:07 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6F6382A1AC1; Tue, 27 Oct 2020 13:04:35 -0300 (-03) Date: Tue, 27 Oct 2020 13:04:35 -0300 From: Alvaro Herrera To: Lars Aksel Opsahl Cc: Laurenz Albe , "pgsql-admin@lists.postgresql.org" Subject: Re: free(): invalid pointer , when to dumping data to a new server Message-ID: <20201027160435.GA15157@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Oct-27, Lars Aksel Opsahl wrote: > Type "apropos word" to search for commands related to "word"... > Reading symbols from /usr/pgsql-12/bin/postmaster...Reading symbols from /usr/lib/debug/usr/pgsql-12/bin/postgres-12.4-1PGDG.rhel8.x86_64.debug...done. > done. > BFD: warning: /var/lib/systemd/coredump/core.postmaster.26.6f7d98107f544085a41c6f8b876418d0.298120.1603810048000000 is truncated: expected core file size >= 2326896640, found: 2147483648 > > warning: core file may not match specified executable file. Uh :-( The core file would have been too large, so the system wrote a truncated copy, with the result that GDB cannot interpret it correctly. I don't know if you can raise the 2TB limit on core files, but one thing you can do is change the "core filter" so that it doesn't dump shared memory, which is often where the bloat comes from. This will result in a much smaller core file, but still useful to find the problem. You can do this: echo 0x01 > /proc/$pid/coredump_filter where the PID can be the postmaster's, before running pg_dump.