[GHC] #5688: instance Read Integer/Rational/Double readsPrec out of memory and crash due to exponential notation
GHC
cvs-ghc at haskell.org
Fri Dec 9 12:07:38 CET 2011
#5688: instance Read Integer/Rational/Double readsPrec out of memory and crash due
to exponential notation
------------------------------+---------------------------------------------
Reporter: gracjan | Owner:
Type: bug | Status: patch
Priority: normal | Component: libraries/base
Version: 6.12.3 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Runtime crash | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by FSalad):
No segfault on my system (Linux 3.1.1, GHC 7.2.1), just goes into a
memory-consuming, ^C-resistant loop (presumably due to the huge size the
representation of `read "12e1000000000000" :: Integer` would have)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5688#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list