Re: SIGFPE handler is naive

Поиск
Список
Период
Сортировка
От ktm@rice.edu
Тема Re: SIGFPE handler is naive
Дата
Msg-id 20120814125502.GN27500@aart.rice.edu
обсуждение исходный текст
Ответ на Re: SIGFPE handler is naive  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: SIGFPE handler is naive
Список pgsql-hackers
On Mon, Aug 13, 2012 at 11:52:06PM -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > On Mon, Aug 13, 2012 at 10:14 PM, Noah Misch <noah@leadboat.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
> 

Wouldn't any user level divide-by-zero code cause a SIGFPE? 

Regards,
Ken



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: SIGFPE handler is naive
Следующее
От: Noah Misch
Дата:
Сообщение: Re: SIGFPE handler is naive