Re: ERROR: invalid memory alloc request size <a_big_number_here>

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Matteo Beccati <php(at)beccati(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: ERROR: invalid memory alloc request size <a_big_number_here>
Date: 2005-10-27 12:54:57
Message-ID: 200510271254.j9RCsvo05547@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout wrote:
-- Start of PGP signed section.
> Belay that, you should be able to put a breakpoint on errstart or elog
> or perhaps errmsg. Much easier...
>
> (I expected the find the answer in the developer FAQ, but it's not
> there).

I removed it because it used to be in the main FAQ, and wasn't asked
"frequently". Should it be readded?

---------------------------------------------------------------------------

>
> Hope this helps,
>
> On Thu, Oct 27, 2005 at 12:04:45PM +0200, Martijn van Oosterhout wrote:
> > On Thu, Oct 27, 2005 at 11:37:09AM +0200, Matteo Beccati wrote:
> > > Here is the backtrace, hoping I did it correctly:
> >
> > Dagnammit. I was wondering if that was going to happen. If your
> > optimisation is up, the values of arguments to the functions don't
> > display right (look at the rest, they're obviously not correct). While
> > it's possible there's a bug that early in the output, I wouldn't bet on
> > it.
> >
> > The trick (other than turning off optimisation) is to set the
> > breakpoint a few lines later, like say mcxt.c:504. You can find out by
> > simply stepping the debugger until "p size" displays a reasonable
> > value.
> >
> > try with: break mcxt.c:504 if size > 1000000000
> >
> > Hope this helps,
> > --
> > Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> > > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> > > tool for doing 5% of the work and then sitting around waiting for someone
> > > else to do the other 95% so you can sue them.
>
>
>
> --
> Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> > tool for doing 5% of the work and then sitting around waiting for someone
> > else to do the other 95% so you can sue them.
-- End of PGP section, PGP failed!

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-10-27 13:06:34 Re: [HACKERS] expanded \df+ display broken in beta4
Previous Message Andrew - Supernews 2005-10-27 11:56:02 Re: Differences in UTF8 between 8.0 and 8.1