Re: v16dev: invalid memory alloc request size 8488348128

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: v16dev: invalid memory alloc request size 8488348128
Date: 2023-04-15 03:27:49
Message-ID: 1610169.1681529269@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Rowley <dgrowleyml(at)gmail(dot)com> writes:
> I don't think that's really going to help. The crash already tells us
> there's a problem down the line, but if the commit you mention is to
> blame for this, then the problem is elsewhere, either in our
> assumption that we can get away without the datumCopy() or in the
> aggregate function producing the state that we're no longer copying.

It does smell like the aggregate output has been corrupted by the time
it got to the plpgsql function. I don't particularly want to try to
synthesize a test case from the essentially-zero SQL-level information
we've been provided, though. And I doubt we can track this down without
a test case. So please try to sanitize the case you have enough that
you can share it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikael Kjellström 2023-04-15 05:48:52 Re: Direct I/O
Previous Message Tom Lane 2023-04-15 03:22:37 Re: Direct I/O