X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 84B599DCAD9 for ; Thu, 8 Dec 2005 04:56:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68184-03 for ; Thu, 8 Dec 2005 04:56:37 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 8FC709DCAD7 for ; Thu, 8 Dec 2005 04:56:34 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id DB30E1125069; Thu, 8 Dec 2005 08:56:36 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70176-02; Thu, 8 Dec 2005 04:56:34 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 74C90112504F; Thu, 8 Dec 2005 08:56:34 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: =?UTF-8?Q?[_psqlodbc-Bugs-1000475_]_SEGFAULT_during_SQLCancel?= Content-type: text/plain; charset=UTF-8 Message-Id: <20051208085634.74C90112504F@pgfoundry.org> Date: Thu, 8 Dec 2005 08:56:34 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.823 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.067, NO_REAL_NAME=0.55, SUBJECT_EXCESS_QP=0] X-Spam-Score: -0.823 X-Spam-Level: X-Archive-Number: 200512/86 X-Sequence-Number: 6565 Bugs item #1000475, was opened at 2005-12-08 08:56 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000475&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: SEGFAULT during SQLCancel Initial Comment: I've got seg.fault when I issued "cancel" from one thread for statement which was performing in another thread. Primarily, it's because statement thread was started to fetch data when "cancel" was issued. I'm using unixODBC 2.2.9, psqlodbc 08.01.0102 with "Threading=0, UseDeclareFetch=1" options. Also I'm using ODBC auto_commit mode. MyLog file is attached. P.S. What I think - it's because PGAPI_FreeStmt call (from PGAPI_Cancel function) doesn't block any mutex against Fetch functions. When I tried to create special mutex to protect PGAPI_Cancel->PGAPI_FreeStmt call against SQLFetchScroll, seg.fault disappeared. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000475&group_id=1000125