div 0 0 give exception / endless loop
There is a problem with the div in ghc, to reproduce:
start ghci and type div n 0 where n is any integer (so
div 3 0 would work)
on a linux box it gives a floating point exception
while on a BSD 4.4 box it gives and endless loop using
about 87 % of cpu.
I have verified this on both the latest release
(5.02.2) and 5.02.1.
Trac metadata
Trac field |
Value |
Version |
5.02 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
Runtime System |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|