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 BDCCE9DCBAC for ; Thu, 8 Dec 2005 21:29:02 -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 21854-10 for ; Thu, 8 Dec 2005 21:29:06 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id DA0229DCBF1 for ; Thu, 8 Dec 2005 21:29:00 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id B6E60112506F; Fri, 9 Dec 2005 01:29:05 +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 20676-10; Thu, 8 Dec 2005 21:29:03 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 8CD411125006; Fri, 9 Dec 2005 01:29:03 +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: <20051209012903.8CD411125006@pgfoundry.org> Date: Fri, 9 Dec 2005 01:29:03 +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.835 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.055, NO_REAL_NAME=0.55, SUBJECT_EXCESS_QP=0] X-Spam-Score: -0.835 X-Spam-Level: X-Archive-Number: 200512/97 X-Sequence-Number: 6576 Bugs item #1000475, was opened at 2005-12-08 09: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. ---------------------------------------------------------------------- >Comment By: Ludek Finstrle (luf) Date: 2005-12-09 02:29 Message: Feel free to attach patch which solve the problem. It could be good start point for us at least. You can post the patch to pgsql-odbc mailing list. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000475&group_id=1000125