From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Murawski <markm-lists@intellasoft.net>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Bug plperl.c
Date: Tue, 22 Feb 2022 14:48:22 -0500
Message-ID: <821293.1645559302@sss.pgh.pa.us> (raw)
In-Reply-To: <9acdf918-7fff-4f40-f750-2ffa84f083d2@intellasoft.net>
References: <9acdf918-7fff-4f40-f750-2ffa84f083d2@intellasoft.net>
Mark Murawski <markm-lists@intellasoft.net> writes:
> Affects Versions: 12 (and probably all others)
> Steps to Reproduce:
> - Run a query during plperl validation -- ie: inside a warn handler
> 2022-02-22 12:17:04 EST - - - - 12950 - - 0 - LOG: server process
> (PID 19702) was terminated by signal 11: Segmentation fault
I couldn't reproduce this, either in HEAD or 12.10. However, maybe
there's something faulty about your example, because in my hands it
doesn't seem that plperl_spi_exec is reached at all.
If we do need to do something here, my inclination would be to
reject execution of any SPI operations during validation. That's
not a case that's supposed to have any side-effects.
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, markm-lists@intellasoft.net, pgsql-bugs@lists.postgresql.org
Subject: Re: Bug plperl.c
In-Reply-To: <821293.1645559302@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