Re: plperlu function caused a segmentation fault - Mailing list pgsql-general

From bricklen
Subject Re: plperlu function caused a segmentation fault
Date
Msg-id CAGrpgQ858uoBwBihp1fHEB=LD6ZmDA8NhFnh+_5uLZSfB3o_eg@mail.gmail.com
Whole thread Raw
In response to Re: plperlu function caused a segmentation fault  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: plperlu function caused a segmentation fault  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, Aug 24, 2011 at 12:11 PM, Alex Hunsaker <badalex@gmail.com> wrote:
> Hrm, do simple plperlu functions break it? I can't tell from your
> report if plperlu seems completely broken or if something in your
> quoted function seems to be the culprit.
>
> If
> CREATE OR REPLACE FUNCTION plperlu_noop() returns void as $$ $$
> language plperlu;
> select plperlu_noop();
>
> works fine, I would wager someone upgraded perl and forgot to
> recompile (or upgrade?) postgres along with it.  That or you have more
> than one perl installed and its somehow picking the wrong libperl...

IIRC, plperl(u) was installed via yum at the same time the db was
upgraded to 9.0.x. It is possible there is more than one Perl version
installed, or that the original Perl installation was botched.
I'm not willing to test even the simple example above, because it's a
production database. The orignal (failing) plperlu function didn't
even get as far as the execution phase, that segfault happened
immediately after it compiled.

Cheers

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: What is postgresql status?
Next
From: Merlin Moncure
Date:
Subject: Re: "OLD." || myColumnNameVar (How to generically access columns in a trigger's OLD or NEW records)