From: Stephen Frost <sfrost@snowman.net>
To: Don Seiler <don@seiler.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: ERROR: invalid memory alloc in Pg 9.6.6
Date: Fri, 13 Apr 2018 12:09:22 -0400
Message-ID: <20180413160921.GO27724@tamriel.snowman.net> (raw)
In-Reply-To: <CAHJZqBDOYcBUXxmQEWoYiPfwNooumTVv27bnPPOA_JuTSWcZ6A@mail.gmail.com>
References: <CAHJZqBDOYcBUXxmQEWoYiPfwNooumTVv27bnPPOA_JuTSWcZ6A@mail.gmail.com>
Greetings,
* Don Seiler (don@seiler.us) wrote:
> Started seeing "invalid memory alloc" errors in a non-production DB (9.6.6)
> all of a sudden this afternoon. It's running on CentOS 7.4 on VMWare.
>
> I ran a pg_dump on that DB and got this error almost immediately:
>
> pg_dump: [archiver (db)] query failed: ERROR: invalid memory alloc request
> size 8830452760576
That's interesting. An invalid memory alloc request size complaint such
as that tends to be an indicator of corruption or a bug in the backend
possibly.
Certainly curious that you were able to run the query and not hit that..
Are you sure you were running it exactly the way pg_dump does? There's
a bunch of setup that pg_dump does early on, maybe log all queries when
you run the pg_dump and then in a psql session try running them..?
If you can reliably reproduce this with either pg_dump or psql, then the
next step would perhaps be jumping in with gdb to see where that error
is being hit..
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: sfrost@snowman.net, don@seiler.us
Subject: Re: ERROR: invalid memory alloc in Pg 9.6.6
In-Reply-To: <20180413160921.GO27724@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox