#3867: ghc: panic! (linkBCO: >= 64k ptrs)
---------------------------------+------------------------------------------
Reporter: archgrove | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12.2
Component: Compiler | Version: 6.12.1
Keywords: | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: GHC rejects valid program
---------------------------------+------------------------------------------
Changes (by igloo):
* milestone: => 6.12.2
Comment:
This creates a suitable `Dict.hs`:
{{{
main :: IO ()
main = writeFile "Dict.hs" ("module Dict where\ndict = " ++ show strs)
strs :: [String]
strs = take 100000 xs
xs :: [String]
xs = "" : [ c : cs
| cs <- xs,
c <- ['a'..'z']]
}}}
and 1.2G of RAM later:
{{{
GHCi, version 6.13.20100211: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
[1 of 1] Compiling Dict ( Dict.hs, interpreted )
Ok, modules loaded: Dict.
*Dict> take 1 dict
ghc-stage2: panic! (the 'impossible' happened)
(GHC version 6.13.20100211 for x86_64-unknown-linux):
linkBCO: >= 64k ptrs
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
*Dict>
Leaving GHCi.
ghci Dict.hs 54.32s user 0.82s system 83% cpu 1:05.89 total
}}}
This ought to be quite straightforward to fix, as I think all the hard
work was already done when fixing the >= 64k insns problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3867#comment:1>
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