Skip site navigation (1) Skip section navigation (2)

Re: bug in windows xp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org, Magnus Hagander <mha(at)sollentuna(dot)net>, Wang Haiyong <wanghaiyong(at)neusoft(dot)com>
Subject: Re: bug in windows xp
Date: 2006-04-08 16:27:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patches
Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> Re: SIGFPE on integer divide.
> This signal does appear on linux also.

Hmm, it seems to depend on the hardware you're using.  I just tried it
on four different machines:

x86 (Pentium 4): SIGFPE
x86_64 (Xeon EM64T): SIGFPE
HPPA: "ERROR:  integer out of range"  (the intended behavior)
PPC (Mac OS X): no error, returns zero

So the overflow test in int4div is definitely broken and needs to be
changed.  However, this is also a good question:

> A simple C program shows the same. Why isn't it being caught on
> windows?

That still looks like a failure to trap something we should trap.
I'd suggest fixing that first, because if we fix int4div first,
we won't have a simple test case for it.

			regards, tom lane

In response to


pgsql-bugs by date

Next:From: Martijn van OosterhoutDate: 2006-04-08 17:16:39
Subject: Re: bug in windows xp
Previous:From: Pegasus86Date: 2006-04-08 16:18:51
Subject: BUG #2383: MessageBox Win32 API makes clients freeze

pgsql-patches by date

Next:From: Jonah H. HarrisDate: 2006-04-08 17:16:08
Subject: Re: Support Parallel Query Execution in Executor
Previous:From: Martijn van OosterhoutDate: 2006-04-08 13:14:49
Subject: Re: bug in windows xp

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group