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 1k5JwL-0001uT-CT for pgsql-general@arkaria.postgresql.org; Tue, 11 Aug 2020 02:23:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5JwK-0000cF-4Y for pgsql-general@arkaria.postgresql.org; Tue, 11 Aug 2020 02:23:00 +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 1k5JwJ-0000c7-M0 for pgsql-general@lists.postgresql.org; Tue, 11 Aug 2020 02:22:59 +0000 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k5JwC-0000p2-OV for pgsql-general@lists.postgresql.org; Tue, 11 Aug 2020 02:22:58 +0000 Received: by mail-qt1-x831.google.com with SMTP id h21so8404823qtp.11 for ; Mon, 10 Aug 2020 19:22:52 -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=sCmM3RYg5FNwikRmae9X/ytry19UQQIhq2UtT8S8gTk=; b=jKBSr9Z6JKKfpJNBcKaBs9pjq4CdwxO2xh2gmtuUzBghtPWkE8FRKLepGUpF85cNsP CulAyqY7VFnSNNZxVkTToWEx57VjX7k7d8xK4Sn/7aqXjS1N+v8EpR8jnGvc1CmmV1XC mlIgsUibLiAVmafVlWgAbeDoVyHudriqNcIuf+9eK93AS9G0kUoVEaZBj2oowDeyy5Z0 Omlp/2Xhb4jclWnnTHxqHKENS1rtL+lBWu9+SuKplmDCalL0+HiGcZS4/6QvW1pEQ4rT rg7rNDJ2WP/ZmBiCqYLdSFI4FXzfEHe7eePjdpWGNWZEmPlPJE7gKo+oFGty/MXpg68D fNtQ== 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=sCmM3RYg5FNwikRmae9X/ytry19UQQIhq2UtT8S8gTk=; b=oYcQCeH4goZRMpLkNf7lznHzJz9CifrI7rTFG6naDl3vVsY8Go9OOHNUgM3jCxFch3 hR2BJw0RTzg+PdbtOknx0UrUMDqv/JmwdmjY0HDmj1ym1cBlVrCT9Fu53DWidbQvD26l MY691WAbGgzQd5X+I28jISNFIoRaUg+rC/9MFIiuUkpPd2fD0ROJedZQtPuSLiQDsVsA fStgAAUazmG2gGl9F115caMuTWzGapLY+FWVlICbVv3qEm6CUJR0StPBVIVZ4oj8hrRi 5Z//gz5v10owC/ywY41U0R1PAEL2W3NIyYmgj4SivYRdHyJ4gdggO+gSWXDmMXyRVjJl PCNg== X-Gm-Message-State: AOAM531onQCTEDkdaFqbLUr5+7gks49lh5CJy5n4gPm+POEpzpox5js5 Hz0N/n3UOs4T6fiiEnuziowe6keR1iM+6g== X-Google-Smtp-Source: ABdhPJw9AoV4syzq0Th6Mf2E7aGpZ7BbT/doX1PtMLkYe2/I0vR1Z/6WiyID6wtYXRVf31iI8mFRIQ== X-Received: by 2002:ac8:6c55:: with SMTP id z21mr30520723qtu.68.1597112571486; Mon, 10 Aug 2020 19:22:51 -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 71sm16148200qkk.125.2020.08.10.19.22.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2020 19:22:50 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-F04914CD-239E-4F3C-BAC7-163EBFD16970 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:22:48 -0300 Message-Id: <41942E86-B5EA-49C2-B4B9-C49E938C815F@gmail.com> References: Cc: pgsql-general@lists.postgresql.org In-Reply-To: To: Rob Sargent X-Mailer: iPad Mail (17F80) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-F04914CD-239E-4F3C-BAC7-163EBFD16970 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Rob, You mean, an insert or update carrying this value? No, it doesn=E2=80=99t. Thanks, Flaris. Flaris R. Feller flaris.feller@gmail.com http://linkedin.com/in/flarisfeller > Em 22 de jun de 2020, =C3=A0(s) 11:28, Rob Sargent = escreveu: >=20 > =EF=BB=BF >=20 >> On Jun 22, 2020, at 8:13 AM, Flaris Feller wrot= e: >>=20 >> Hello all, >>=20 >> 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 PostgreSQ= L 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: in= valid memory alloc request size 18446744073709551613 >> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=3Dbxs,user=3Dpostgres COMANDO: = COPY public.cham_chamada.... >>=20 >> PostgreSQL was installed using official PGDG repository through yum. >> This is the list of postgresql.conf settings used in the cluster. >>=20 >> listen_addresses =3D '*' >> log_destination =3D 'stderr'=20 >> logging_collector =3D on=20 >> log_directory =3D 'pg_log'=20 >> log_filename =3D 'postgresql-%a.log'=20 >> log_truncate_on_rotation =3D on=20 >> log_rotation_age =3D 1d=20 >> log_rotation_size =3D 0=20 >> autovacuum =3D off >> datestyle =3D 'iso, mdy' >> lc_messages =3D 'pt_BR' =20 >> lc_monetary =3D 'pt_BR' =20 >> lc_numeric =3D 'pt_BR' =20 >> lc_time =3D 'pt_BR' =20 >> default_text_search_config =3D 'pg_catalog.portuguese' >> max_connections=3D150 >> shared_buffers=3D2GB >> effective_cache_size=3D4GB >> work_mem=3D13981kB >> maintenance_work_mem=3D256MB >> log_min_duration_statement =3D 300000 >> log_line_prefix =3D '%t [%p]: [%l-1] db=3D%d,user=3D%u ' >> log_lock_waits =3D on >> timezone=3D'America/Sao_paulo' >> log_timezone =3D 'Brazil/East' >> min_wal_size =3D 1GB >> max_wal_size =3D 2GB >>=20 >> Looking at previous list's messages I've found this could be a data corru= ption issue and I've followed the recommended procedures. >> But even removing the corrupted records, doing a vacuum full and re-index= ing the table the problem keep going recurrently. >> So I would like some guidance to find the root cause of the table corrupt= ion on the database. >> Any help would be appreciated. >>=20 >> Thanks in advance, >> Flaris Feller. >=20 > I there an application generating this value perhaps? > 1111111111111111111111111111111111111111111111111111111111111101 > Looks a little like a signed/un-signed mismatch >=20 >=20 --Apple-Mail-F04914CD-239E-4F3C-BAC7-163EBFD16970 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Rob,

You mean, an insert or update carrying this value? No, i= t doesn=E2=80=99t.

Thanks,
Flaris.

Flaris R. Feller
flaris.feller@= gmail.com

<= br>
Em 22 de jun de 2020, =C3=A0(s) 11:28, Rob Sarg= ent <robjsargent@gmail.com> escreveu:

=EF=BB=BF

On Jun 22, 2020, at 8= :13 AM, Flaris Feller <flaris.feller@gmail.com> wrote:

Hello= all,

When using P= ostgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel x86_64 I n= oticed "invalid memory alloc request size" error at PostgreSQL logs.
This is the postgresq.log file's fragment of log where the err= or was found.

2020-06-22 00:29:18 BRT [16987]= : [1-1] db=3Dbxs,user=3Dpostgres ERRO:  invalid memory alloc request si= ze 18446744073709551613
2020-06-22 00:29:18 BRT [16987]: [2-1]= db=3Dbxs,user=3Dpostgres COMANDO:  COPY public.cham_chamada....=

PostgreSQL was installed using official PGDG repository through yum.
This is the list of postgresql.conf settings used in the cl= uster.

listen_addresses =3D '*'
log_destination =3D= 'stderr'
logging_collector =3D on =
log_directory =3D 'pg_log'
log_filename =3D 'postgresql-%a.log'
log_truncate_on_rota= tion =3D on
log_rotation_age =3D 1d =
log_rotation_size =3D 0
auto= vacuum =3D off
datestyle =3D 'iso, mdy'
lc_messa= ges =3D 'pt_BR'                 &nbs= p;
lc_monetary =3D 'pt_BR'          =        
lc_numeric =3D 'pt_BR'   &n= bsp;                
l= c_time =3D 'pt_BR'                 &= nbsp;            
default_text_= search_config =3D 'pg_catalog.portuguese'
max_connections=3D15= 0
shared_buffers=3D2GB
effective_cache_size=3D4G= B
work_mem=3D13981kB
maintenance_work_mem=3D256M= B
log_min_duration_statement =3D 300000
log_line= _prefix =3D '%t [%p]: [%l-1] db=3D%d,user=3D%u '
log_lock_wait= s =3D on
timezone=3D'America/Sao_paulo'
log_time= zone =3D 'Brazil/East'
min_wal_size =3D 1GB
max_= wal_size =3D 2GB

Looking at previous list's messages I've found this could be a data co= rruption issue and I've followed the recommended procedures.
But even removing the corrupted records, doing a vacuum full and re-in= dexing the table the problem keep going recurrently.
So I would like some guidance to find the root cause of the tab= le corruption on the database.
Any help would be apprec= iated.

Thanks in a= dvance,
Flaris Feller.
=

I there an application gen= erating this value perhaps?
1111111111111111111111= 111111111111111111111111111111111111111101
Looks a little l= ike a signed/un-signed mismatch


= --Apple-Mail-F04914CD-239E-4F3C-BAC7-163EBFD16970--