pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Adriaanse <alex@innovacomputing.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: pgsql-general@postgresql.org
Subject: Re: Out of memory
Date: Fri, 04 Apr 2008 15:24:39 -0500
Message-ID: <47F68E87.8030906@innovacomputing.com> (raw)
In-Reply-To: <17490.1206751901@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>

Tom Lane wrote:
> Alex Adriaanse <alex@innovacomputing.com> writes:
>   
>> Unfortunately, we do not have any core dumps from those.  Is there 
>> anything else I can provide to make tracing this easier?  Could we use 
>> the addresses mentioned in the segfault messages for anything useful?
>>     
>
> Hmm, you could try attaching to a running Postgres process with gdb
> and doing "x/i 0xHEXADDRESS" --- that should at least come up with a
> routine name, unless your kernel is into address randomization ...
>   
We weren't able to do this on the production server where PostgreSQL 
crashed, but we did try to recreate as close a setup as possible on 
another similar server with the same version of PostgreSQL 8.1.9.  It is 
possible that some of the libraries are different or that we're using 
different binaries of the same version of PostgreSQL.  Thus, it might be 
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

I hope this helps.

Alex




view thread (58+ messages)  latest in thread

Message-ID: <47F68E87.8030906@innovacomputing.com>
Permalink:  ../47F68E87.8030906@innovacomputing.com/
Also on:    postgresql.org/message-id/47F68E87.8030906@innovacomputing.com

 · 

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: alex@innovacomputing.com, tgl@sss.pgh.pa.us, kleptog@svana.org
  Subject: Re: Out of memory
  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>

* 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