pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Venkat Balaji <venkat.balaji@verse.in>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgresql 9.0.1 installation error
Date: Wed, 10 Aug 2011 14:12:58 +0800
Message-ID: <4E42216A.4090109@ringerc.id.au> (raw)
In-Reply-To: <CAFrxt0gaYk1DFx3YThNj6Qu3DQ7HF6vnd3dvOhYXp9FLwDLueg@mail.gmail.com>
References: <CAFrxt0gxTJuqLtnXvvM=DEGQ+CJQMLt1UfdMJB4b8sEbTJO7uw@mail.gmail.com>
	<4E40A0DD.3090400@ringerc.id.au>
	<CAFrxt0gaYk1DFx3YThNj6Qu3DQ7HF6vnd3dvOhYXp9FLwDLueg@mail.gmail.com>

On 9/08/2011 2:31 PM, Venkat Balaji wrote:
> Hi Craig,
>
> Thank you very much for your reply !
>
> Here is my reply -
>
> 1. We are using RHEL with the below version
> Linux version 2.6.18-194.26.1.el5
> (mockbuild@x86-004.build.bos.redhat.com
> <mailto:mockbuild@x86-004.build.bos.redhat.com>) (gcc version 4.1.2
> 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Oct 29 14:21:16 EDT 2010
>
> 2. LD_LIBRARY_PATH is not set

OK. In that case, please show the output of:

ldd ./psql

run in exactly the same environment as you'd run ./psql and get a crash.



> Program received signal SIGSEGV, Segmentation fault.
> 0x00002aaaaaac2ecc in resetPQExpBuffer () from
> /opt/Postgres9.0.1/lib/libpq.so.5

OK, you haven't built with debugging. Try rebuilding with --enable-debug 
to configure, then re-running the gdb command. When you get a crash and 
the above message is printed out, you'll get a prompt like:

(gdb)

Type "bt" at that prompt and press enter. The resulting stack trace 
shows more information about what led up to the crash.

Debugging memory related crashes in C isn't simple. Just because it 
crashes in libpq doesn't mean the fault is in libpq. It might be, or it 
might be that some other library is corrupting memory that causes libpq 
to crash later, corrupting the stack, returning a bad pointer from a 
function call, library headers not matching linked library sizes so 
returned struct sizes/offsets are wrong, and lots lots more. It's not 
simple.

--
Craig Ringer



view thread (11+ messages)  latest in thread

Message-ID: <4E42216A.4090109@ringerc.id.au>
Permalink:  ../4E42216A.4090109@ringerc.id.au/
Also on:    postgresql.org/message-id/4E42216A.4090109@ringerc.id.au

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ringerc@ringerc.id.au, venkat.balaji@verse.in
  Subject: Re: Postgresql 9.0.1 installation error
  In-Reply-To: <4E42216A.4090109@ringerc.id.au>

* 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