Re: psqlODBC crashes upon memory allocation failures

From: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
To: BenS <ben3003(at)gmx(dot)net>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: psqlODBC crashes upon memory allocation failures
Date: 2016-02-03 00:43:03
Message-ID: 56B14D17.2030903@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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)
>> &lt;http://postgresql.nabble.com/attachment/5884572/0/crash_on_nomem.patch&gt;
> 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

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Dang Minh Huong 2016-02-04 13:54:24 Degradation of performance when upgrade psqlodbc to 09.03.0400
Previous Message Adrian Klaver 2016-02-02 22:52:32 Re: PostgreSQL 9.5 23bit ODBC Driver