Thread: client crashes in PQfinish
Hello,
My Server is crashed in PQfinish. Below is the core file details:
=>[1] DLRemHead(0x2b7780, 0xfb6bc008, 0x319670, 0xfb6bc008, 0x21c40, 0x3106f8), at 0xfded10e4
[2] DLFreeList(0x2b7780, 0x0, 0x417b48, 0xfdec5aa4, 0x21c18, 0x0), at 0xfded0c64
[3] freePGconn(0x371ea0, 0x0, 0x289f48, 0xfbfb61b8, 0x21c18, 0x0), at 0xfdec5ac0
[4] PQfinish(0x371ea0, 0x289ce8, 0x289ce8, 0xf9a0b65c, 0x20fa0, 0xfb0718dc), at 0xfdec5cc4
[5] abc(0x289ce0, 0xfafec000, 0xfb5b1d88, 0x0, 0xf9a0ba8c, 0x7), at 0xfb071aec
[2] DLFreeList(0x2b7780, 0x0, 0x417b48, 0xfdec5aa4, 0x21c18, 0x0), at 0xfded0c64
[3] freePGconn(0x371ea0, 0x0, 0x289f48, 0xfbfb61b8, 0x21c18, 0x0), at 0xfdec5ac0
[4] PQfinish(0x371ea0, 0x289ce8, 0x289ce8, 0xf9a0b65c, 0x20fa0, 0xfb0718dc), at 0xfdec5cc4
[5] abc(0x289ce0, 0xfafec000, 0xfb5b1d88, 0x0, 0xf9a0ba8c, 0x7), at 0xfb071aec
Server is crashed at "DLRemHead". This crash is not easily reproducible.
Can anybody please tell me whether above problem is related to postgres or not?
Thanks,
Sonal
Any response?
On 10/27/06, soni de <soni.de@gmail.com> wrote:
Hello,My Server is crashed in PQfinish. Below is the core file details:=>[1] DLRemHead(0x2b7780, 0xfb6bc008, 0x319670, 0xfb6bc008, 0x21c40, 0x3106f8), at 0xfded10e4
[2] DLFreeList(0x2b7780, 0x0, 0x417b48, 0xfdec5aa4, 0x21c18, 0x0), at 0xfded0c64
[3] freePGconn(0x371ea0, 0x0, 0x289f48, 0xfbfb61b8, 0x21c18, 0x0), at 0xfdec5ac0
[4] PQfinish(0x371ea0, 0x289ce8, 0x289ce8, 0xf9a0b65c, 0x20fa0, 0xfb0718dc), at 0xfdec5cc4
[5] abc(0x289ce0, 0xfafec000, 0xfb5b1d88, 0x0, 0xf9a0ba8c, 0x7), at 0xfb071aecServer is crashed at "DLRemHead". This crash is not easily reproducible.Can anybody please tell me whether above problem is related to postgres or not?Thanks,Sonal
soni de wrote: > Any response? Couple of points: 1. You're on the wrong list. This is for performance issues. I'd recommend one of the bugs/hackers/general lists instead. 2. You don't give details of any error message produced during the crash (or if there is one). 3a. You don't give details of the version of PostgreSQL you're on b. what O.S. c. how installed d. what the database was doing at the time e. what the client was doing at the time Now, to my uneducated eye it looks like a linked-list problem when closing a connection. Presumably a corrupted pointer or freeing something already released. To make diagnosis even more interesting, although you say it is the "server" that is crashed, I think PQfinish is part of the libpq connection library. That probably means the crash is in the client, not the server. Or does it? So - based on the fact that I can't tell what's happening, where it happens or even if it's in the server or client I'd guess something in your code is overwriting some of libpq's data structures. Possibly you're using threads in a non-threading library? Bear in mind that I'm not a C programmer. -- Richard Huxton Archonet Ltd