Re: Debug crash

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема Re: Debug crash
Дата
Msg-id 4940D526.7050507@sun.com
обсуждение исходный текст
Ответ на Debug crash  ("Alif Isophoqote" <isophoqote@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Debug crash
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Sync Rep: First Thoughts on Code