Re: Segmentation Fault in Postgres server when using psqlODBC

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: Joshua Berry <yoberi(at)gmail(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Segmentation Fault in Postgres server when using psqlODBC
Date: 2013-06-06 03:39:27
Message-ID: 51B0046F.8080908@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-odbc

(2013/06/05 0:48), Joshua Berry wrote:
> Hi Hiroshi,
>
> On Tue, Jun 4, 2013 at 9:46 AM, Joshua Berry <yoberi(at)gmail(dot)com
> <mailto:yoberi(at)gmail(dot)com>> wrote:
>
>
> On Mon, Jun 3, 2013 at 10:47 PM, Inoue, Hiroshi <inoue(at)tpf(dot)co(dot)jp
> <mailto:inoue(at)tpf(dot)co(dot)jp>> wrote:
>
> It's also preferrable to fix the crash at backend.
> The crash is caused by execute commands after commit.
>
> That would be the best solution. Thanks for your help.
>
>
> Is there any test code that I could leverage to put together a test case
> which can quickly invoke the backend problem that I'm seeing? Perhaps
> something that is used in the pgsqlODBC project or something else you or
> others might have sitting around? I would like to have a
> testapp/function that could help verify that the issue has been fixed in
> a future backend patch/release.

It seems difficult to provide a test code. However I can reproduce
the crash by changing 1 line of psqlodbc driver source code with a
test case. For example, the crash is fixed by the attached patch.

> I've never explicitly used EXECUTE. Could I construct a plpgsql script
> which could use EXECUTE in a similar manner as psqlODBC, thus creating a
> test case that would have greater portability?

Oops it's an Execute message used in extended query protocol not a
*EXECUTE* command.

regards,
Hiroshi Inoue

Attachment Content-Type Size
printtup_holdable_cursor.patch text/x-patch 1.4 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Rafał Rzepecki 2013-06-06 14:24:26 Re: BUG #8198: ROW() literals not supported in an IN clause
Previous Message m+psql 2013-06-06 01:22:19 BUG #8214: SIGSEGV in PyEval_EvalFrameEx

Browse pgsql-odbc by date

  From Date Subject
Next Message Marco Gaiarin 2013-06-10 09:48:55 Re: Upgrade strangeness on win 32bit
Previous Message Marco Gaiarin 2013-06-05 15:45:12 Re: Upgrade strangeness on win 32bit