Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A87039FB20D for ; Tue, 31 Oct 2006 07:48:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 41836-06 for ; Tue, 31 Oct 2006 07:48:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id 7D2439FB1FC for ; Tue, 31 Oct 2006 07:48:24 -0400 (AST) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id F160C75C78; Tue, 31 Oct 2006 11:45:59 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id A26DD15EAB; Tue, 31 Oct 2006 11:45:59 +0000 (GMT) Message-ID: <454737C5.1020106@archonet.com> Date: Tue, 31 Oct 2006 11:47:17 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5.0.7 (X11/20060918) MIME-Version: 1.0 To: soni de Cc: pgsql-performance@postgresql.org Subject: Re: client crashes in PQfinish References: <9f2e40a90610270608l204e6db9le434824d2d56cae5@mail.gmail.com> <9f2e40a90610302159j7ccda892o8fa812d02c2d8559@mail.gmail.com> In-Reply-To: <9f2e40a90610302159j7ccda892o8fa812d02c2d8559@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/625 X-Sequence-Number: 21754 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