Re: Help with Segmentation Fault

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Patrick Bye (WFF)" <PBYE(at)Westfair(dot)CA>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Help with Segmentation Fault
Date: 2003-02-13 16:43:04
Message-ID: 13867.1045154584@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Patrick Bye (WFF)" <PBYE(at)Westfair(dot)CA> writes:
> I did build postgres myself using the simple installation instructions
> provided on the website

> configure
> gmake
> gmake install

Hm, that should work. What do you get from "ldd" on the psql executable?

> How do I do a stack trace?

If you aren't getting a core file from the segfault, try "ulimit -c unlimited".
Once you have a core file, do

gdb /path/to/psql core
gdb> bt
gdb> quit

The trace will be a lot more informative if you first rebuild with
debugging support (configure --enable-debug, then gmake clean all install).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yolanda Valverde 2003-02-13 17:06:23 How to create stored procedure in PostgreSQL with plpgsql?
Previous Message chris.gamble 2003-02-13 16:37:03 Restore from 7.3 to 7.2