Re: bug in windows xp - Mailing list pgsql-bugs

From Martijn van Oosterhout
Subject Re: bug in windows xp
Date
Msg-id 20060408171639.GD24800@svana.org
Whole thread Raw
In response to Re: bug in windows xp  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: bug in windows xp
List pgsql-bugs
On Sat, Apr 08, 2006 at 12:27:19PM -0400, Tom Lane wrote:
> Hmm, it seems to depend on the hardware you're using.  I just tried it
> on four different machines:

<no consistancy whatsoever>

> > A simple C program shows the same. Why isn't it being caught on
> > windows?
>=20
> 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.

Well, we should at least add a regression test for this divide thing
since obviously people assumed it was working when it wasn't.

However, would it be possible to add a test_sigfpe() to regress.c that
simply tries to do 1/0. There is appears to be no regression test that
generates a floating-point exception which appears to be a serious
omission. There are any number of ways to force one: ln(0) for example
(hmm, looks like we protect against that). I suppose one floating point
and one integer example should suffice.

Are there any other signals we should be watching for?

Have a nice day,
--=20
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-bugs by date:

Previous
From: "Alaa ElGohary"
Date:
Subject: BUG #2384: Can not install PostgreSQL 7.2.7 on FreeBSD6.0
Next
From: Tom Lane
Date:
Subject: Re: BUG #2384: Can not install PostgreSQL 7.2.7 on FreeBSD6.0