From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000475 ] SEGFAULT during SQLCancel
Date: Thu, 8 Dec 2005 08:56:34 +0000 (GMT)
Message-ID: <20051208085634.74C90112504F@pgfoundry.org> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: noreply@pgfoundry.org
Subject: Re: [ psqlodbc-Bugs-1000475 ] SEGFAULT during SQLCancel
In-Reply-To: <20051208085634.74C90112504F@pgfoundry.org>
References: <20051208085634.74C90112504F@pgfoundry.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox