Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 093392E00A8 for ; Fri, 4 Apr 2008 17:24:55 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 87556-01-2 for ; Fri, 4 Apr 2008 17:24:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from wh01.wirehydrant.com (wh01.wirehydrant.com [74.86.140.178]) by developer.postgresql.org (Postfix) with ESMTP id CCEFC2E00AE for ; Fri, 4 Apr 2008 17:24:43 -0300 (ADT) Received: from homer.d-oh.org (unknown [10.1.3.4]) by wh01.wirehydrant.com (Postfix) with SMTP id E6651D3BA for ; Fri, 4 Apr 2008 15:24:40 -0500 (CDT) Received: (qmail 11454 invoked from network); 4 Apr 2008 20:24:39 -0000 Received: from unknown (HELO ?127.0.0.1?) (192.168.0.100) by homer.int.d-oh.org with SMTP; 4 Apr 2008 20:24:39 -0000 Message-ID: <47F68E87.8030906@innovacomputing.com> Date: Fri, 04 Apr 2008 15:24:39 -0500 From: Alex Adriaanse User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Tom Lane CC: Martijn van Oosterhout , pgsql-general@postgresql.org Subject: Re: Out of memory 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> In-Reply-To: <17490.1206751901@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/237 X-Sequence-Number: 131206 Tom Lane wrote: > Alex Adriaanse 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 : callq 0x562c00 (gdb) x/i 0x000000000049ea00 0x49ea00 : mov %rbx,0xffffffffffffffd0(%rsp) (gdb) x/i 0x00000000005e7b13 0x5e7b13 : mov 0xfffffffffffffff0(%rdi),%rdi I hope this helps. Alex