#2825: Stack overflow death
-----------------------+----------------------------------------------------
Reporter: osuch | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Windows
Architecture: x86 |
-----------------------+----------------------------------------------------
Changes (by igloo):
* difficulty: => Unknown
Old description:
> GHCI dies without any warning, if evaluation of the function ex3 in the
> following code fragment is attempted:
>
> ex2 x partial sum n = let partial = partial * x / fromIntegral(n)
> in if (partial + sum == sum)
> then sum
> else ex2 x partial (sum + partial) (n+1)
>
> ex3 x = ex2 x 1 1.0 1
New description:
GHCI dies without any warning, if evaluation of the function ex3 in the
following code fragment is attempted:
{{{
ex2 x partial sum n = let partial = partial * x / fromIntegral(n)
in if (partial + sum == sum)
then sum
else ex2 x partial (sum + partial) (n+1)
ex3 x = ex2 x 1 1.0 1
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2825#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs