Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQlXJ-0003Ko-Jc for pgsql-odbc@arkaria.postgresql.org; Wed, 03 Feb 2016 00:43:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQlXJ-00025P-6E for pgsql-odbc@arkaria.postgresql.org; Wed, 03 Feb 2016 00:43:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQlXI-000253-K0 for pgsql-odbc@postgresql.org; Wed, 03 Feb 2016 00:43:08 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aQlXE-0005yT-9V for pgsql-odbc@postgresql.org; Wed, 03 Feb 2016 00:43:08 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 7DB52612B; Wed, 3 Feb 2016 09:42:59 +0900 (JST) Subject: Re: psqlODBC crashes upon memory allocation failures To: BenS References: <0A3221C70F24FB45833433255569204D1F4DB24D@G01JPEXMBYT05> <1454431660247-5885422.post@n5.nabble.com> Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <56B14D17.2030903@dream.email.ne.jp> Date: Wed, 3 Feb 2016 09:43:03 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1454431660247-5885422.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 Hi, On 2016/02/03 1:47, BenS wrote: > Tsunakawa, Takayuki wrote >> Hello, >> >> As I said here: >> >> http://www.postgresql.org/message-id/0A3221C70F24FB45833433255569204D1F4DB1CF@G01JPEXMBYT05 >> >> psqlODBC ignores memory allocation failure in a number of places. That >> causes the application crash due to NULL dereference. Actually, I ran >> into the crash of my 32-bit application under high load. >> >> The attached patch is the fix for it. I wish this will be included in the >> upcoming release. >> >> >> Regards, Takayuki Tsunakawa >> >> >> >> -- >> Sent via pgsql-odbc mailing list ( >> pgsql-odbc@ >> ) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-odbc >> >> >> crash_on_nomem.patch (27K) >> <http://postgresql.nabble.com/attachment/5884572/0/crash_on_nomem.patch> > Hello, > > i can confirm the crash in msvcr120.dll. It happens no-and-then by trivially > scrolling forward + backward a result set with psqlodbc-09.05.0100 / > postgresql30a.dll. > > Where i can get a patched version? I'm suspicious if the patch is effective for your problem. Do your application run with useDeclareFetch option on? If so, the drivers on testing for 9.5.0101 at http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/ have the possibility to fix your problem. regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc