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 1jnORt-0002I0-7w for pgsql-general@arkaria.postgresql.org; Mon, 22 Jun 2020 15:33:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jnORr-0005HR-KD for pgsql-general@arkaria.postgresql.org; Mon, 22 Jun 2020 15:33:27 +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 1jnORr-0005HK-Bz for pgsql-general@lists.postgresql.org; Mon, 22 Jun 2020 15:33:27 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnORh-0000PL-JQ for pgsql-general@lists.postgresql.org; Mon, 22 Jun 2020 15:33:26 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 0D24C32E2; Mon, 22 Jun 2020 17:33:15 +0200 (CEST) Date: Mon, 22 Jun 2020 17:33:15 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: ERROR: invalid memory alloc request size 18446744073709551613 Message-ID: <20200622153315.GA25644@hjp.at> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" 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 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-06-22 11:13:33 -0300, Flaris Feller wrote: > When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on I= ntel > x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL = logs. > This is the postgresq.log file's fragment of log where the error was foun= d. >=20 > 2020-06-22 00:29:18 BRT [16987]: [1-1] db=3Dbxs,user=3Dpostgres ERRO: =A0= invalid > memory alloc request size 18446744073709551613 That's 2**64 - 3. So probably the size of some object is (erroneously) computed as -3 bytes. > 2020-06-22 00:29:18 BRT [16987]: [2-1] db=3Dbxs,user=3Dpostgres COMANDO: = =A0COPY > public.cham_chamada.... Does this always happen in conjunction with a COPY command or sometimes with other commands, too? If the former, are you copying into the database or out of it? hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl7wzzYACgkQ8g5IURL+ KF0MXhAAnKD0BJivPW/ahyQ0w4s6Z7rsjoNwg4lXQUIeY3k8j37UcLM6dTAxF8n3 zG7mS30skvROyXJ8+hNL9jzcmeGOczzMDPDDdnjloXwJ+/S3kH9lTnBqYeSckHhF Fk7CSKDE5bDhMt2frmL8gDGYvDo9+Yf0+HQvzX5JjHfobTjMQdp885qi21MVmp/8 +ZrJgKNmdD080tWG3TwTE0nnfYm8Hdvh2Els5SQ43g2PXrP5ssbZpv0pLDkHRpU1 djI/QgatX/NQU905c63i4We8LJ7+eGiWjDLLHzGK0XqFvqfF/QbwLWgDEexUMFWy kRegALZISWsoCAeFBucaY8jnObAGQrCArOTSAKGadgOQ0WJDoRY6k4xXwah5tC7V 5N2gRsKhi/KdzIweUh3D327n7n3XceMDYC55FE7Gd5ON4QJxsjpVaDEM4eC9I6qY lO6FbNGSf+zt8CPWg/MMZ9lUxQJo3Xjughs2WRpKGuRjL7u+oUco+HxZ+6YxuFzW 8erlsTmQn2kKHB5kasKz+qYSKm3oFS+j3bHzuGLxSW/3jtokP7e49yMyhco2yp1Q ahZ4fbZ5+WUYqKgs3wQxVfWj4uJ20h0L2SQhZJzdUqouPNlPfULaJdZCx9eWYpjZ YSiIscdW3gNvNyEr4QR9xASEWZquCkSAZhNNya65/ezSW/bph4w= =S5/L -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--