Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Hannu Krosing <hannu@krosing.net>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2011-08-04T14:34:44Z
Lists: pgsql-hackers
On 08/04/2011 09:53 AM, Hannu Krosing wrote:
>
>> What happens if you wrap the calls to the module like this?:
>>
>> {
>> local $SIG{ALRM};
>> # do LWP stuff here
>> }
>> return 'OK';
>>
>>
>> That should restore the old handler on exit from the block.
>>
>> I think if you use a perl module that monkeys with the signal handlers
>> for any signal postgres uses all bets are off.
> Sure, but how expensive would it be for pl/perl to do this
> automatically ?
>
>
Probably not very. It could possibly be added to
plc_perlboot.pl::mkfuncsrc() after the prolog, or maybe before.
cheers
andrew