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 1k5K3a-0002AJ-Gv for pgsql-general@arkaria.postgresql.org; Tue, 11 Aug 2020 02:30:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5K3Y-0004cc-EQ for pgsql-general@arkaria.postgresql.org; Tue, 11 Aug 2020 02:30:28 +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 1k5K3Y-0004cU-2l for pgsql-general@lists.postgresql.org; Tue, 11 Aug 2020 02:30:28 +0000 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k5K3U-0008Vs-Up for pgsql-general@lists.postgresql.org; Tue, 11 Aug 2020 02:30:27 +0000 Received: by mail-qk1-x72b.google.com with SMTP id 2so10407071qkf.10 for ; Mon, 10 Aug 2020 19:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=4NGaGudk/Dem7toDIi6QSvtGbV7a0NuFLIOPMFlvIP4=; b=Zc7LsC8rTdL63u8QYMtKHP0KctkihfTKCZYGwrOlQMCY2fWUiSaMCrzPYBlc7eDNI7 8A1Aa6DFs4atjhqHWyG2YrRmE0TJ9uZ1z2FglAUkmWSS+OdWo7BwJXTNwXutKmVJ4/li pEvJ05dipuT+gFVc9Rm7iCFBXxByqUgRJyTQ9I6xtzztSyO5Met8k1C+VVkGPLAUCIVf cZYZUBZN5utm9MCC71xgZ36Xin4oyGDhfGUSm57GfsK2Nb4IwHZ73J8pcoBjbGCpkQeU DSYQ+4UerEkzRUOeakCfN0InNfihfUCRhowGKPVbfPJbHV27FZoWv2C4EcYTASSa+Sm1 o7Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=4NGaGudk/Dem7toDIi6QSvtGbV7a0NuFLIOPMFlvIP4=; b=mVoAI0+Y6m+1lMZ4Xe6+uXDDyWaPlY7tOWuceBxQgT8Ha84WkaI4E/elRBGIMiEoa5 SJY5gVbxYlvuhnW/mUJuqw6jdMRL2FCDXgGcL2hlZljqdD488Wf82u9r1Orq44WjF+vY 6PLqFbDVgN1qT6N4wmeThqMiQrGyLhBetD9H4W5cMC1cFtTbC6Pdyx833M0eTNXWm5sd I3OXi3cJJkYeUbRDFx30vt67GYJ7nYCZ5rsvpVxPKqG0Xe1t9NsDprKKAUgE96XcnMXD 2aaAMYNXnQ4FunQX3zUhrs73jTLZVlAnLaicVYd6g9NQjChwyy5HF4Ptpo8y30U3NnZt heMA== X-Gm-Message-State: AOAM532wNZsIu0nzL1nUT4ZDK8/11LKU7GYYKl37/p6E5BHCd7CumkyN TBcw0VGDMa99nfeqRKCFgGh2Y0eKQYJlQw== X-Google-Smtp-Source: ABdhPJwcmvneTgbIaPXf2S3fsHIAoGiWvMnSTGuMKXvwsq39kilexi2ywJ+5xfKjoDdCvv3aMQI1Mw== X-Received: by 2002:ae9:e641:: with SMTP id x1mr28744420qkl.424.1597113022641; Mon, 10 Aug 2020 19:30:22 -0700 (PDT) Received: from ?IPv6:2804:14d:badb:4c1d:7da5:e61:7f72:4533? ([2804:14d:badb:4c1d:7da5:e61:7f72:4533]) by smtp.gmail.com with ESMTPSA id m66sm15973859qkf.86.2020.08.10.19.30.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2020 19:30:21 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-CAD8A8E0-186D-42CE-8B32-7DEB69A21228 Content-Transfer-Encoding: 7bit From: Flaris Roland Feller Mime-Version: 1.0 (1.0) Subject: Re: ERROR: invalid memory alloc request size 18446744073709551613 Date: Mon, 10 Aug 2020 23:30:18 -0300 Message-Id: References: <20200622153315.GA25644@hjp.at> Cc: pgsql-general@lists.postgresql.org In-Reply-To: <20200622153315.GA25644@hjp.at> To: "Peter J. Holzer" X-Mailer: iPad Mail (17F80) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-CAD8A8E0-186D-42CE-8B32-7DEB69A21228 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Peter, In this case, It was a COPY for a table to out of the database, but the erro= r occurs with other commands like a SELECT. Thanks in advance, Flaris. Flaris R. Feller flaris.feller@gmail.com http://linkedin.com/in/flarisfeller > Em 22 de jun de 2020, =C3=A0(s) 12:33, Peter J. Holzer e= screveu: >=20 > =EF=BB=BFOn 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 l= ogs. >> 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: in= valid >> memory alloc request size 18446744073709551613 >=20 > That's 2**64 - 3. So probably the size of some object is (erroneously) > computed as -3 bytes. >=20 >> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=3Dbxs,user=3Dpostgres COMANDO: = COPY >> public.cham_chamada.... >=20 > 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? >=20 > hp >=20 > --=20 > _ | Peter J. Holzer | Story must make more sense than reality. > |_|_) | | > | | | hjp@hjp.at | -- Charles Stross, "Creative writing > __/ | http://www.hjp.at/ | challenge!" --Apple-Mail-CAD8A8E0-186D-42CE-8B32-7DEB69A21228 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Peter,

In this case, It was a= COPY for a table to out of the database, but the error occurs with other co= mmands like a SELECT.

Thanks in advance,
= Flaris.

Flaris R. Feller
flaris.feller@gm= ail.com

Em 22 de jun de 2020, =C3=A0(s) 12:33, Peter J. H= olzer <hjp-pgsql@hjp.at> escreveu:

=EF=BB=BFOn 2020-06-22 11:13:33 -030= 0, Flaris Feller wrote:
When using= Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel
x86_64 I noticed "invalid mem= ory alloc request size" error at PostgreSQL logs.
This is the postgresq.log file's fragment of lo= g where the error was found.

2020-06-22 0= 0:29:18 BRT [16987]: [1-1] db=3Dbxs,user=3Dpostgres ERRO:  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 COMA= NDO:  COPY
publi= c.cham_chamada....

Does this a= lways happen in conjunction with a COPY command or sometimes
with other commands, too? If the former, are you copying into thedatabase or out of it?

  =      hp

-- =
  _  | Peter J. Holzer    | Story m= ust make more sense than reality.
|_|_) |    =             &nbs= p;   |
| |   | hjp@hjp.at  &nb= sp;      |    -- Charles Stross= , "Creative writing
__/   | http://www.hjp.at/ | &= nbsp;     challenge!"
=
= --Apple-Mail-CAD8A8E0-186D-42CE-8B32-7DEB69A21228--