Re: plperl sigfpe reset can crash the server

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hannu Krosing <hannu(at)2ndquadrant(dot)com>
Subject: Re: plperl sigfpe reset can crash the server
Date: 2012-08-24 21:40:45
Message-ID: 201208242340.45744.andres@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Friday, August 24, 2012 05:09:18 PM Andrew Dunstan wrote:
> On 08/24/2012 10:58 AM, Andres Freund wrote:
> > On Friday, August 24, 2012 04:53:36 PM Tom Lane wrote:
> >> Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> >>> ./pod/perl581delta.pod:
> >>> At startup Perl blocks the SIGFPE signal away since there isn't much
> >>> Perl can do about it. Previously this blocking was in effect also for
> >>> programs executed from within Perl. Now Perl restores the original
> >>> SIGFPE handling routine, whatever it was, before running external
> >>> programs.
> >>
> >> So there's a gap in the "restore" logic someplace.
> >
> > Well, the logic is not triggering at all in pg's case. Its just used if
> > perl is exec()ing something...
> >
> >>> perl.h also has some tidbits: ...
> >>> That doesn't sound very well reasoned and especially not very well
> >>> tested to me.
> >>
> >> Time to file a Perl bug?
> >
> > Anybody more involved in the perl community volunteering?
>
> Just run perlbug and let us know the bug number.
https://rt.perl.org/rt3/Public/Bug/Display.html?id=114574

Andres
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2012-08-24 21:44:24 Re: PATCH: pgbench - aggregation of info written into log
Previous Message Tomas Vondra 2012-08-24 21:25:18 PATCH: pgbench - aggregation of info written into log