Re: plperl sigfpe reset can crash the server

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

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.

> 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?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-08-24 14:58:18 Re: plperl sigfpe reset can crash the server
Previous Message Bruce Momjian 2012-08-24 14:30:45 Re: pg_upgrade's exec_prog() coding improvement