[GHC] #3867: ghc: panic! (linkBCO: >= 64k ptrs)
GHC
cvs-ghc at haskell.org
Fri Apr 6 12:56:33 CEST 2012
#3867: ghc: panic! (linkBCO: >= 64k ptrs)
---------------------------------+------------------------------------------
Reporter: archgrove | Owner:
Type: bug | Status: patch
Priority: high | Milestone: 7.6.1
Component: Compiler | Version: 6.12.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: GHC rejects valid program
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by pcapriotti):
* status: new => patch
* difficulty: => Unknown
Comment:
There are two problems here:
1) The 16-bit counter used to keep track of stack depth during bytecode
generation can wrap around and generate bogus instructions.
2) Pointers and literals are addressed by 16-bit operands, so there can't
be more than 2^16 of each.
The attached patch series fixes both issues. Please check the commit
messages for more details.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3867#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list