Re: Debug crash - Mailing list pgsql-hackers

From Zdenek Kotala
Subject Re: Debug crash
Date
Msg-id 4940D526.7050507@sun.com
Whole thread Raw
In response to Debug crash  ("Alif Isophoqote" <isophoqote@gmail.com>)
List 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


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Debug crash
Next
From: Simon Riggs
Date:
Subject: Re: Sync Rep: First Thoughts on Code