Re: BUG #6200: standby bad memory allocations on SELECT

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Bridget Frey <bridget(dot)frey(at)redfin(dot)com>, Michael Brauwerman <michael(dot)brauwerman(at)redfin(dot)com>, Peter Geoghegan <peter(at)2ndquadrant(dot)com>, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #6200: standby bad memory allocations on SELECT
Date: 2012-02-02 01:32:16
Message-ID: 1328146277-sup-6909@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Excerpts from Tom Lane's message of mié feb 01 18:06:27 -0300 2012:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> >>> No, I wasn't thinking about a tuple descriptor mismatch. I was
> >>> imagining that the page contents themselves might be in flux while
> >>> we're trying to read from it.
>
> > It would be nice to get a dump of what PostgreSQL thought the entire
> > block looked like at the time the crash happened. That information is
> > presumably already in the core dump, but I'm not sure if there's a
> > nice way to extract it using gdb.
>
> It probably would be possible to get the page out of the dump, but
> I'd be really surprised if that proved much. By the time the
> crash-dump-making code gets around to examining the shared memory, the
> other process that's hypothetically changing the page will have done its
> work and moved on. A crash in process X doesn't freeze execution in
> process Y, at least not in any Unixoid system I've ever heard of.

Maybe you can do something like send SIGSTOP to every other backend,
then attach to them and find which one was touching the same buffer,
then peek at what it was doing.

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Sachin Srivastava 2012-02-02 06:46:19 Re: BUG #6427: Installation stack builder error
Previous Message Sergey Burladyan 2012-02-02 00:35:16 Re: BUG #6407: Crash on queries to gin index with multiply values