Re: Debug crash

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Alif Isophoqote <isophoqote(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Debug crash
Date: 2008-12-11 08:53:58
Message-ID: 4940D526.7050507@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alif Isophoqote napsal(a):
> Hi,
>
> I am developing a backend module for postgresql. For some queries,
> postgresql crashes: segmentation fault (most probably due to my own code).
> How to get the function name & line number where it crashes?

At first it depends on your OS. On unixes you should get core dump (check ulimit
setting). And if you have a core dump, then take you favorite debugger and print
stack trace. It should show you your function.

Zdenek

In response to

  • Debug crash at 2008-12-11 08:29:56 from Alif Isophoqote

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-12-11 08:55:24 Re: Sync Rep: First Thoughts on Code
Previous Message Martijn van Oosterhout 2008-12-11 08:49:41 Re: Debug crash