Re: SIGFPE handler is naive

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Noah Misch <noah(at)leadboat(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: SIGFPE handler is naive
Date: 2012-08-14 03:52:06
Message-ID: 17137.1344916326@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Mon, Aug 13, 2012 at 10:14 PM, Noah Misch <noah(at)leadboat(dot)com> wrote:
>> Overall, though, I think it best to plug this. We could set a flag before
>> each operation, like evaluation of SQL arithmetic, for which SIGFPE is normal.

> Yeah, that's what I thought of, too. It seems like it'd be a lot of
> work to get there, though.

That would depend on how many places there are where SIGFPE is expected.
Are we sure there are any? Maybe we should just remove the handler and
let SIGFPE be treated as a core dump.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2012-08-14 03:59:15 Re: canceling autovacuum task woes
Previous Message Robert Haas 2012-08-14 02:33:58 Re: SIGFPE handler is naive