Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https
David E. Wheeler <david@kineticode.com>
From: "David E. Wheeler" <david@kineticode.com>
To: Alex Hunsaker <badalex@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, Tom Lane <tgl@sss.pgh.pa.us>, Hannu Krosing <hannu@krosing.net>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2011-08-04T22:34:32Z
Lists: pgsql-hackers
On Aug 4, 2011, at 3:09 PM, Alex Hunsaker wrote:
> Mainly the options im thinking about are:
> 1) if anyone touches %SIG die
> 2) turn %SIG into a regular hash so people can set/play with %SIG, but
> it has no real effect.
These would disable stuff like $SIG{__WARN__} and $SIG{__DIE__}, which would be an unfortunate side-effect.
> 3) local %SIG before we call their trigger function. This lets signals
> still work while "in trigger scope" (like we do for %_TD)
+1
> 4) if we can't get any of the above to work we can save each %SIG
> handler before and restore them after each trigger call. (mod_perl
> does something similar so Im fairly certain we should be able to get
> that to work)
+1
Best,
David