pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Farina <daniel@heroku.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6200: standby bad memory allocations on SELECT
Date: Fri, 09 Sep 2011 11:02:44 -0400
Message-ID: <11731.1315580564@sss.pgh.pa.us> (raw)
In-Reply-To: <201109082233.p88MXbGE026996@wwwmaster.postgresql.org>
References: <201109082233.p88MXbGE026996@wwwmaster.postgresql.org>

"Daniel Farina" <daniel@heroku.com> writes:
> A huge thanks to Conrad Irwin of Rapportive for furnishing virtually all the
> details of this bug report.

This isn't really enough information to reproduce the problem ...

> The occurrence rate is somewhere in the one per tens-of-millions of
> queries.

... and that statement is going to discourage anyone from even trying,
since with such a low occurrence rate it's going to be impossible to be
sure whether the setup to reproduce the problem is correct.  So if you'd
like this to be fixed, you're either going to need to show us exactly
how to reproduce it, or investigate it yourself.

The way that I'd personally proceed to investigate it would probably be
to change the "invalid memory alloc request size" size errors (in
src/backend/utils/mmgr/mcxt.c; there are about four occurrences) from
ERROR to PANIC so that they'll provoke a core dump, and then use gdb
to get a stack trace, which would provide at least a little more
information about what happened.  However, if you are only able to
reproduce it in a production server, you might not like that approach.
Perhaps you can set up an extra standby that's only there for testing,
so you don't mind if it crashes?

			regards, tom lane



view thread (29+ messages)  latest in thread

Message-ID: <11731.1315580564@sss.pgh.pa.us>
Permalink:  ../11731.1315580564@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11731.1315580564@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@heroku.com
  Subject: Re: BUG #6200: standby bad memory allocations on SELECT
  In-Reply-To: <11731.1315580564@sss.pgh.pa.us>
  References: <201109082233.p88MXbGE026996@wwwmaster.postgresql.org> <11731.1315580564@sss.pgh.pa.us>

* 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