Re: 8.0.0 make check fails on Solaris 9 (sparc)

Поиск
Список
Период
Сортировка
Искать
От
Tamas Vincze
Тема
Re: 8.0.0 make check fails on Solaris 9 (sparc)
Дата
Msg-id
41FFE7F9.6010900@neb.com
Ответ на
Список
Дерево обсуждения
8.0.0 make check fails on Solaris 9 (sparc) Tamas Vincze <vincze@neb.com>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Michael Fuhr <mike@fuhr.org>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Tamas Vincze <vincze@neb.com>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Michael Fuhr <mike@fuhr.org>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Michael Fuhr <mike@fuhr.org>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Michael Fuhr <mike@fuhr.org>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Tamas Vincze <vincze@neb.com>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Tom Lane <tgl@sss.pgh.pa.us>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Tamas Vincze <vincze@neb.com>
Re: 8.0.0 make check fails on Solaris 9 (sparc) Michael Fuhr <mike@fuhr.org>
Michael, Fuhr wrote:

> The errors were the following:
> 
>   template1=# SELECT 'NaN'::float4;
>   ERROR:  22003: type "real" value out of range: overflow
>   LOCATION:  CheckFloat4Val, float.c:219
> 
> The code around float.c:219 looks like this:
> 
>   if (fabs(val) > FLOAT4_MAX)
>           ereport(ERROR,
>                           (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
>                            errmsg("type \"real\" value out of range: overflow")));
> 
> I wonder what a debugging printf() would show for val, fabs(val),
> and FLOAT4_MAX here.

Here it is:
val: NaN
fabs(val): NaN
FLOAT4_MAX: 340282346638528859811704183484516925440.000000

It must be a compiler bug in gcc 2.96 because I had an older
one (2.95.3) from the SFWgcc package installed under /opt/sfw
and using that all test results were OK.
I installed the new gcc 3.4.2 and that worked too.

Tamas
В списке pgsql-bugs по дате отправления
От: Tom Lane
Дата:
От: Kris Jurka
Дата:
FAQ