X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9B5EC11F603C for ; Fri, 28 Apr 2006 05:29:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 17703-03-3 for ; Fri, 28 Apr 2006 05:29:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 03B5711F60E2 for ; Fri, 28 Apr 2006 05:29:21 -0300 (ADT) Received: from localhost (mx1.hub.org [200.46.208.251]) by pgfoundry.org (Postfix) with ESMTP id EE83C86C506; Fri, 28 Apr 2006 08:29:22 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16689-04; Fri, 28 Apr 2006 05:29:03 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 8E66986C509; Fri, 28 Apr 2006 08:29:03 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000475 ] SEGFAULT during SQLCancel Content-type: text/plain; charset=UTF-8 Message-Id: <20060428082903.8E66986C509@pgfoundry.org> Date: Fri, 28 Apr 2006 08:29:03 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/128 X-Sequence-Number: 7655 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: Closed 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: Dave Page (dpage) Date: 2006-04-28 08:29 Message: No response from user. ---------------------------------------------------------------------- Comment By: Ludek Finstrle (luf) Date: 2005-12-09 01: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