Re: BUG #6200: standby bad memory allocations on SELECT - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6200: standby bad memory allocations on SELECT
Date
Msg-id 23550.1327978836@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #6200: standby bad memory allocations on SELECT  (Bridget Frey <bridget.frey@redfin.com>)
Responses Re: BUG #6200: standby bad memory allocations on SELECT  (Bridget Frey <bridget.frey@redfin.com>)
List pgsql-bugs
Bridget Frey <bridget.frey@redfin.com> writes:
> The second error is an invalid memory alloc error that we're getting ~2
> dozen times per day in production.  The bt for this alloc error is below.

This trace is consistent with the idea that we're getting a corrupt
tuple out of a table, although it doesn't entirely preclude the
possibility that the corrupt value is manufactured inside the backend.
To get much further you're going to need to look at the specific query
being executed each time this happens, and see if you can detect any
pattern.  Now that you've got debug symbols straightened out, the
gdb command "p debug_query_string" should accomplish this.  (If that
does not produce anything that looks like one of your application's
SQL commands, we'll need to try harder to extract the info.)  You could
probably hack the elog(PANIC) to log that before dying, too, if you'd
rather not manually gdb each core dump.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6420: Incorrect description of Postgres time system
Next
From: maxim.boguk@gmail.com
Date:
Subject: BUG #6422: User without any priviledges on a table can lock the table from other users in some cases