From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Tiikkaja <pgmail@joh.to>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #7516: PL/Perl crash
Date: Thu, 06 Sep 2012 19:03:05 -0400
Message-ID: <21328.1346972585@sss.pgh.pa.us> (raw)
In-Reply-To: <19980.1346970380@sss.pgh.pa.us>
References: <E1T8YUZ-0006gb-Oz@wrigleys.postgresql.org>
<1194.1346688396@sss.pgh.pa.us>
<5047BA9C.2040405@joh.to>
<19980.1346970380@sss.pgh.pa.us>
I wrote:
> Another thing that seems a bit risky is that plperl_func_handler sets up
> current_call_data as a pointer to a mostly-zeroed struct and then does
> assorted things that could throw error. That would leave a dangling
> value of current_call_data ...
Meh, scratch that --- I missed that the caller of plperl_func_handler is
where there's a PG_TRY block that's responsible for restoring the old
value of current_call_data. It would still be interesting to nose
around and see what's in *current_call_data, as well as any of the
pointed-to data structures that exist.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgmail@joh.to
Subject: Re: BUG #7516: PL/Perl crash
In-Reply-To: <21328.1346972585@sss.pgh.pa.us>
References: <E1T8YUZ-0006gb-Oz@wrigleys.postgresql.org> <1194.1346688396@sss.pgh.pa.us> <5047BA9C.2040405@joh.to> <19980.1346970380@sss.pgh.pa.us> <21328.1346972585@sss.pgh.pa.us>
* 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