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 1jnNQn-0008SK-V3 for pgsql-general@arkaria.postgresql.org; Mon, 22 Jun 2020 14:28:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jnNQm-00030E-Rs for pgsql-general@arkaria.postgresql.org; Mon, 22 Jun 2020 14:28:16 +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 1jnNQm-000307-Go for pgsql-general@lists.postgresql.org; Mon, 22 Jun 2020 14:28:16 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jnNQk-0004BQ-E3 for pgsql-general@lists.postgresql.org; Mon, 22 Jun 2020 14:28:16 +0000 Received: by mail-pg1-x534.google.com with SMTP id p3so5533244pgh.3 for ; Mon, 22 Jun 2020 07:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=s7QKUSz2uW5q+3hK/LSNA85H90nfWjwderRmllzveF8=; b=d286410HGl+xg+6wxk3KBYmv5QMGIDx4DCQu/YLK4KxrkSKF/GO5R/mSQ4/Am18rLN QLKUymwxPIp6gVCrdjwOks/ijoAa+PIm+XDS1ZDEh0aQqj53JdTS8kcg8uoDAMiXb+PM g/tA0z5hdnHaAQpvEbTKv1ztWuUGYJ9fXGbw3szLq+mg4UphAHRG3Fh8B0qvpkBPjCaY 4E7aHhbcspepvpD6/coH+myFyFQJoGOJGWBoi9XDfqvHB30nzZ944jIMf83L6m3nLxYx RvBbZwQz2nJzi1kRq7v7ToBLkhTpS4Z80SkT+EpO6dCvclDav12MbTymPj3+neD+gCNu LcVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=s7QKUSz2uW5q+3hK/LSNA85H90nfWjwderRmllzveF8=; b=UhadORIUx9h0O62Aq+SBslRRW6hGAN13NdTjhtgWtHFV7xtA89Yl0qdyZHPOt17b20 C6NspThEjLURFe9njVTdGOqXC6u15zvYwRRNw1HgC6gIQ6h2mRpP5xFWrsyMdqlZfiZ6 lC40AwaLYq9ltFdWKd1V0avAyLFSr86J2jWuIQ/5iRCIt8aqlPCRPBRsEtJiTWwVwaZW Zhg9XQk3m+oaENl6qmTfY9ES8EDfed2xGkDHItK8D2imUDv7iiBIGps5c4hK3NTPEI65 dCwfrZhN/B82avIzS0uDkeQubVFEr9B79E83xCWg6pkDUyOd2idVaoP0h4HScAScyLVe ybeQ== X-Gm-Message-State: AOAM531YyF0QfcIl5SW6a7BlG8SoDo4P9ZN1GH58ewzkLdV7f+uJ0ykM mY6fIp54z7xithIXMEkOEx4= X-Google-Smtp-Source: ABdhPJy1Pkq5UAQhQYbKmzhiqOBb9vr4W3h1YwpZ/7rNJHTULOhr14u+rpRH9c5KljD47Eq5Xi8tbA== X-Received: by 2002:a65:55c2:: with SMTP id k2mr12859702pgs.451.1592836091973; Mon, 22 Jun 2020 07:28:11 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:8087:1dd9:e307:364f? ([2601:681:5500:dde0:8087:1dd9:e307:364f]) by smtp.gmail.com with ESMTPSA id f23sm13522019pja.8.2020.06.22.07.28.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2020 07:28:11 -0700 (PDT) From: Rob Sargent Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_F678CAE1-B846-40DE-8ED2-0E40AC51DF73" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: ERROR: invalid memory alloc request size 18446744073709551613 Date: Mon, 22 Jun 2020 08:28:08 -0600 In-Reply-To: Cc: pgsql-general@lists.postgresql.org To: Flaris Feller References: X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_F678CAE1-B846-40DE-8ED2-0E40AC51DF73 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jun 22, 2020, at 8:13 AM, Flaris Feller = wrote: >=20 > Hello all, >=20 > When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" = on Intel 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 = found. >=20 > 2020-06-22 00:29:18 BRT [16987]: [1-1] db=3Dbxs,user=3Dpostgres ERRO: = invalid 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 = corruption issue and I've followed the recommended procedures. > But even removing the corrupted records, doing a vacuum full and = re-indexing the table the problem keep going recurrently. > So I would like some guidance to find the root cause of the table = corruption on the database. > Any help would be appreciated. >=20 > Thanks in advance, > Flaris Feller. I there an application generating this value perhaps? 1111111111111111111111111111111111111111111111111111111111111101 Looks a little like a signed/un-signed mismatch --Apple-Mail=_F678CAE1-B846-40DE-8ED2-0E40AC51DF73 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

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

Hello all,

When using Postgres 9.6.15 on "CentOS = Linux release 7.5.1804 (Core)" on Intel 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 = found.

2020-06-22 00:29:18 BRT = [16987]: [1-1] db=3Dbxs,user=3Dpostgres ERRO:  invalid memory alloc = request size 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 = cluster.

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_rotation =3D on
log_rotation_age =3D 1d
log_rotation_size =3D 0
autovacuum =3D off
datestyle =3D 'iso, mdy'
lc_messages =3D 'pt_BR'           =        
lc_monetary =3D 'pt_BR' =                  
lc_numeric =3D 'pt_BR'           =          
lc_time =3D 'pt_BR' =                     =          
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

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

Thanks in advance,
Flaris Feller.

I there an application generating this value = perhaps?
111111111111111111111111111111111111111111111111111111111111110= 1
Looks a little like a signed/un-signed mismatch


= --Apple-Mail=_F678CAE1-B846-40DE-8ED2-0E40AC51DF73--