From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: BenS <ben3003@gmx.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: psqlODBC crashes upon memory allocation failures
Date: Wed, 3 Feb 2016 09:43:03 +0900
Message-ID: <56B14D17.2030903@dream.email.ne.jp> (raw)
In-Reply-To: <1454431660247-5885422.post@n5.nabble.com>
References: <0A3221C70F24FB45833433255569204D1F4DB24D@G01JPEXMBYT05>
<1454431660247-5885422.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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)
>> <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
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: h-inoue@dream.email.ne.jp, ben3003@gmx.net
Subject: Re: psqlODBC crashes upon memory allocation failures
In-Reply-To: <56B14D17.2030903@dream.email.ne.jp>
References: <0A3221C70F24FB45833433255569204D1F4DB24D@G01JPEXMBYT05> <1454431660247-5885422.post@n5.nabble.com> <56B14D17.2030903@dream.email.ne.jp>
* 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