From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Chris Coleman <chris(at)karumbo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Triggers in C - Segmentation Fault |
Date: | 2006-05-15 12:44:08 |
Message-ID: | 20060515124408.GC18700@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Forums @ Existanze | 2006-05-15 12:55:49 | Getting information about sequences |
Previous Message | Mark Campbell | 2006-05-15 12:40:30 | Re: Compiling on 8.1.3 on Openserver 5.05 |