Ticket #3867 (closed bug: fixed)
ghc: panic! (linkBCO: >= 64k ptrs)
| Reported by: | archgrove | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 7.6.1 |
| Component: | Compiler | Version: | 6.12.1 |
| Keywords: | Cc: | gypsywasherwoman@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | GHC rejects valid program | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
dict is a [String] with around 100,000 entries (around 1.4MB of data), exported from a module Dict. ghci will happily import this module, but any operations on this list (e.g. take 1 dict) fail with a ghc panic. I admit it's perhaps not the best idea to work with a list of this magnitude, but in this case a better error message would be useful.
GHCi, version 6.12.1: 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. Prelude> :load Dict [1 of 1] Compiling Dict ( Dict.hs, interpreted ) Ok, modules loaded: Dict. *Dict> take 1 dict ghc: panic! (the 'impossible' happened) (GHC version 6.12.1 for i386-apple-darwin): linkBCO: >= 64k ptrs Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

