From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | emkxp01(at)mtcc(dot)demon(dot)co(dot)uk |
Cc: | hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Divide by zero error on SPARC/Linux. |
Date: | 1998-06-23 04:16:52 |
Message-ID: | 199806230416.AAA03437@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>
> Bruce,
>
> That's what I would have half expected too but am I actually using
> any floating point arithmetic?
>
> The function called is int4div() which simply does a, return (arg1/arg2),
> so I would have expected integer arithmetic.
>
> If I cast to float I get:-
>
> postgres=> select 1::float8/0::float8;
> ERROR: float8div: divide by zero error
> postgres=>
I recommend you put debugs around where it is crashing, and the
reproduce it in a C program, with the same signal() call to catch it,
and see if it works.
--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-06-23 04:23:35 | Re: [HACKERS] Problem after removal of exec(), help |
Previous Message | David Gould | 1998-06-23 01:51:39 | Re: [HACKERS] Problem after removal of exec(), help |