Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTyUm-000387-J1 for pgsql-odbc@arkaria.postgresql.org; Sun, 21 Apr 2013 17:56:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UTyUl-0001hI-Uz for pgsql-odbc@arkaria.postgresql.org; Sun, 21 Apr 2013 17:56:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTyUl-0001hC-7Z for pgsql-odbc@postgresql.org; Sun, 21 Apr 2013 17:56:11 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTyUh-000818-4p for pgsql-odbc@postgresql.org; Sun, 21 Apr 2013 17:56:09 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UTyUf-00070g-Kl for pgsql-odbc@postgresql.org; Sun, 21 Apr 2013 10:56:05 -0700 Date: Sun, 21 Apr 2013 10:56:05 -0700 (PDT) From: ljwilson To: pgsql-odbc@postgresql.org Message-ID: <1366566965425-5752790.post@n5.nabble.com> Subject: UseDeclareFetch=1, Fetch=100, UseServerSidePrepare=0 causes Windows gpf in Unicode Driver versions > 08.04.0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org I've been upgrading some Windows servers from PostgreSQL 8.3.18 to 9.2.4. Along with that I upgraded psqlODBC for the Windows clients from 8.0x.xxxx to 09.01.0200. All was fine until I had a customer who could consistently get a gpf in psqlodbc35w.dll when doing an export. Getting a copy of their database, I could reproduce as well. Trying different driver versions, I've found no crashes with the 8.0x psqlODBC series, but I can reproduce the gpf starting with 09.00.xxxx through the latest 9.01.02?? that I compiled yesterday (2013/04/20) from the git repository. I've used UseDeclareFetch=1 and Fetch=100 since I started with PostgreSQL back in 2008. Now with the 09.xx.xxxx drivers I don't get a crash if I: 1. Set UseDeclareFetch=0 or 2. Set UseServerSidePrepare=1 I've got a 31MB mylog file (zipped) of an entire client session. I can uploaded somewhere if that would help The bulk of that could be stripped-out; probably just the first and last 1000 lines are relevant. The actual sql is doing an update one record at a time of a numeric(14,0) value. It updates the first two records, executes a fetch, then crashes (when UseDeclareFetch=1 and UseServerSidePrepare=0). These are the last lines in mylog before the gpf occurs: [14028-1870.117][SQLExtendedFetch][14028-1870.117]PGAPI_ExtendedFetch: stmt=03988330 rowsetSize=20 [14028-1870.117]SQL_FETCH_NEXT: num_tuples=500, currtuple=460, rowst=460 [14028-1870.118]PGAPI_ExtendedFetch: new currTuple = 479 [14028-1870.118]fetch_cursor=1, 054FEF28->total_read=500 [14028-1870.118]**** SC_fetch: non-cursor_result [14028-1870.118]fetch: cols=42, lf=0, opts = 039883B8, opts->bindings = 03A36758, buffer[] = 03C607C8 [14028-1870.119]type = 23, atttypmod = -1 Obviously I can start using UseServerSidePrepare=1, but I'm concerned that would be masking a bug that should be addressed. Thanks...jack -- View this message in context: http://postgresql.1045698.n5.nabble.com/UseDeclareFetch-1-Fetch-100-UseServerSidePrepare-0-causes-Windows-gpf-in-Unicode-Driver-versions-08-0-tp5752790.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc