Opened 5 years ago

Closed 5 years ago

#3022 closed bug (duplicate)

ghc: panic! (the 'impossible' happened) linkBCO: >= 64k insns in BCO

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

ghci told me to report a bug:

$ ghci 18.hs
GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Main             ( 18.hs, interpreted )
ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.1 for i386-unknown-linux):
        linkBCO: >= 64k insns in BCO

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

> 

$ ghci --version
The Glorious Glasgow Haskell Compilation System, version 6.10.1
$ uname -a
Linux ogum 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 GNU/Linux

I've attached the offending file, here's the md5sum:

$ md5sum 18.hs 
1594c7d5522d0b1d7f1a70f6f3dfc24a  18.hs

Attachments (3)

18.hs (16.7 KB) - added by guest 5 years ago.
source file 18.hs tickling the bug
18.hs.diff (1.3 KB) - added by guest 5 years ago.
diff that happened to fix the parsing fwiw
euler22.hs (45.4 KB) - added by jsoffer 5 years ago.
Same behavior, problem 22

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by guest

source file 18.hs tickling the bug

Changed 5 years ago by guest

diff that happened to fix the parsing fwiw

comment:1 Changed 5 years ago by bchallenor

This looks very similar to my bug.

http://hackage.haskell.org/trac/ghc/ticket/3047

It's interesting that you also were doing Project Euler, though yours was on problem 18 and mine on 22. :) And it's also interesting that my solution to 18 didn't trigger the bug, even though I laid out my triangles nearly identically to you.

comment:2 Changed 5 years ago by simonmar

  • Difficulty set to Unknown
  • Resolution set to duplicate
  • Status changed from new to closed

dup of #789, but thanks for the test case!

Changed 5 years ago by jsoffer

Same behavior, problem 22

Note: See TracTickets for help on using tickets.