pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alex Adriaanse <alex@innovacomputing.com>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: pgsql-general@postgresql.org
Subject: Re: Out of memory
Date: Fri, 04 Apr 2008 17:48:49 -0400
Message-ID: <8861.1207345729@sss.pgh.pa.us> (raw)
In-Reply-To: <47F68E87.8030906@innovacomputing.com>
References: <47ED3B41.80305@innovacomputing.com>
	<20080328215755.GF9150@svana.org>
	<16720.1206749235@sss.pgh.pa.us>
	<47ED90D8.40807@innovacomputing.com>
	<17490.1206751901@sss.pgh.pa.us>
	<47F68E87.8030906@innovacomputing.com>

Alex Adriaanse <alex@innovacomputing.com> writes:
> ... possible that these particular addresses have shifted due to the 
> different environment and now point to irrelevant instructions.  But in 
> case they haven't, here's the output I got:

> (gdb) x/i 0x000000000049ea35
> 0x49ea35 <transformExpr+53>:    callq  0x562c00 <check_stack_depth>

> (gdb) x/i 0x000000000049ea00
> 0x49ea00 <transformExpr>:       mov    %rbx,0xffffffffffffffd0(%rsp)

> (gdb) x/i 0x00000000005e7b13
> 0x5e7b13 <pfree+3>:     mov    0xfffffffffffffff0(%rdi),%rdi

Hmm, not exactly what I was expecting to see.  The last one looks like
someone passed garbage (maybe a NULL) to pfree; which would be a bug but
it's not clear how memory pressure would result in that, and without
knowing where pfree was called from we're not going to be able to get
far investigating.

The first two both seem like they could only be explained by running out
of execution stack space.  8.1 takes the max_stack_depth setting you
tell it as gospel, so a core dump right there is possible if you set
max_stack_depth too large, but you didn't mention having changed it.
In any case it's not clear why you'd get a transient spate of problems
like that, unless the system was handlng especially (and unreasonably)
complicated queries for awhile.  Did you query the client about whether
their workload could have been unusual during this episode?

Of course this is all just speculation since we can't trust the
addresses completely.

			regards, tom lane



view thread (58+ messages)  latest in thread

Message-ID: <8861.1207345729@sss.pgh.pa.us>
Permalink:  ../8861.1207345729@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8861.1207345729@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alex@innovacomputing.com, kleptog@svana.org
  Subject: Re: Out of memory
  In-Reply-To: <8861.1207345729@sss.pgh.pa.us>
  References: <47ED3B41.80305@innovacomputing.com> <20080328215755.GF9150@svana.org> <16720.1206749235@sss.pgh.pa.us> <47ED90D8.40807@innovacomputing.com> <17490.1206751901@sss.pgh.pa.us> <47F68E87.8030906@innovacomputing.com> <8861.1207345729@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