Re: SIGFPE handler is naive

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: SIGFPE handler is naive
Дата
Msg-id 20120814125654.GA16144@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: SIGFPE handler is naive  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: SIGFPE handler is naive
Список pgsql-hackers
On Tue, Aug 14, 2012 at 08:38:44AM -0400, Robert Haas wrote:
> On Mon, Aug 13, 2012 at 11:52 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > 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.
> 
> No clue.  According to Wikipedia, it is commonly caused by dividing by
> zero, or by dividing by INT_MIN by -1, resulting in a quotient out of
> range for the type.  I'd be willing to bet that we have got all the
> division-by-zero cases patched up just because we try pretty hard to
> emit the right error message for such cases, but I'm a lot less
> certain that things like INT_MIN/-1 can't happen anywhere.

[local] test=# select -9223372036854775808/-1;
ERROR:  floating-point exception



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "ktm@rice.edu"
Дата:
Сообщение: Re: SIGFPE handler is naive
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: default_isolation_level='serializable' crashes on Windows