| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
| Subject: | Re: [GENERAL] division by zero |
| Date: | 2003-03-10 16:03:06 |
| Message-ID: | 200303101603.h2AG36A28477@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Merlin Moncure wrote:
> Tom Lane wrote:
> >
> > I checked into this, and indeed OS X 10.2 is behaving funny: integer
> > divide by zero doesn't raise any signal, it just returns a bogus
> answer.
> > They're within their rights to do so according to the ANSI C spec
> > (wherein division by zero is stated to have undefined behavior).
> > But since other BSD-derived Unixen all seem to raise SIGFPE, I can't
> > help wondering if this shouldn't be considered a bug.
>
> FWIW, this also is a problem with some of the windows ports. For
> example, 'select 0/0' is unpredictable and can cause the server to gpf
> and restart. This does not include the SRA port, because I don't have
> it.
I just tested the SRA Win32 threaded port and both SELECT 1/0 and SELECT
0/0 crash the process. I have reported this to Tatsuo.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Page | 2003-03-10 16:03:09 | Re: Who puts the Windows binaries on the FTP server? |
| Previous Message | Justin Clift | 2003-03-10 16:01:22 | Re: Who puts the Windows binaries on the FTP server? |