Re: Triggers in C - Segmentation Fault

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Triggers in C - Segmentation Fault
Дата
Msg-id 20060515124408.GC18700@svana.org
обсуждение исходный текст
Ответ на Re: Triggers in C - Segmentation Fault  ("Chris Coleman" <chris@karumbo.com>)
Список pgsql-general
The core file usually appears in the data directory of the backend.

If you still can't find it, you can try attaching gdb to the running
backend. After the connection has started, find the backend (not the
postmaster) and attach using:

gdb -p <pid>

Once connected, type "cont" and proceed with the actions to trigger the
segfault. When the segfault happens, gdb will catch it and you can type
"bt" to see where you are...

Have a ncie day,

On Mon, May 15, 2006 at 11:47:24AM +0100, Chris Coleman wrote:
> Hi,
>
> I have done the below command and restarted the server and built my
> triggers with the -g command using gcc, but I cannot seem to find any
> core files nor any reference to where postgres may place them. Where
> would they normally appear?
>
> Cheers
> Chris
>
> >Probably the easiest thing to do is make sure your functions are
> >compiled with debugging and enable core dump by running "ulimit -S -c
> >unlimited" before starting the server. You can then use gdb to
> >pin-point where it dies...
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Perez
Дата:
Сообщение: Re: trigger TOASTing quicker?
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Pass in variable from user???