#1654: GHC Panic in 20070827
------------------------------+---------------------------------------------
  Reporter:  [EMAIL PROTECTED]  |          Owner:       
      Type:  bug              |         Status:  new  
  Priority:  high             |      Milestone:  6.8  
 Component:  Compiler         |        Version:  6.7  
  Severity:  major            |       Keywords:       
Difficulty:  Unknown          |             Os:  Linux
  Testcase:                   |   Architecture:  x86  
------------------------------+---------------------------------------------
I downloaded http://www.haskell.org/ghc/dist/current/dist/ghc-6.7
 .20070827-src.tar.bz2

 I used GHC 6.6 (the binary provided by arch linux) to compile this in
 "quickest" mode: in mk, I copied build.mk.sample to build.mk, and
 uncommented out the assignment BuildFlavour = quickest

 I built this compiler, and installed it to /usr/local. I uninstalled the
 distribution's GHC binary. I used my freshly built one to build alex,
 happy, mtl, and haddock, but not in that order. I installed them, again to
 /usr/local

 I then unpacked a fresh copy of the above tarball, and again copied
 build.mk.sample to build.mk, and uncommented the assignment BuildFlavour =
 perf I bumped up the heap size (-H128M) just because I have memory to
 spare and figured every bit helps.

 This time, I ran the compile, and GHC panic'd during the build. Here's the
 relevent---I think---bit of the make:
 {{{
 ------------------------------------------------------------------------
 == make all -r;
  in /home/matt/Src/ghc-6.7.20070827/compiler
 ------------------------------------------------------------------------
 /usr/local/bin/ghc -H128m -O2  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn  -istage1/vectorise
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal -package directory -package pretty    -c
 main/GHC.hs -o stage1/main/GHC.o  -ohi stage1/main/GHC.hi
 ghc-6.7.20070827: panic! (the 'impossible' happened)
   (GHC version 6.7.20070827 for i386-unknown-linux):
         nameModule show_mod{v s72m}

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

 <<ghc: 1993012896 bytes, 1351 GCs, 9778517/20094976 avg/max bytes
 residency (9 samples), 48M in use, 0.01 INIT (0.00 elapsed), 11.51 MUT
 (13.40 elapsed), 2.66 GC (3.03 elapsed) :ghc>>
 make[1]: *** [stage1/main/GHC.o] Error 1
 make: *** [stage1] Error 1
 }}}

 I followed a similar procedure to try and build ghc-6.7.20070830-src. This
 one, I tried to build using quickest as defined in build.mk.sample Here's
 the error in that case:
 {{{
 ------------------------------------------------------------------------
 == make all -r;
  in /home/matt/Src/ghc-6.7.20070830/compiler
 ------------------------------------------------------------------------
 /usr/local/bin/ghc -H64m -Onot -fasm  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn  -istage1/vectorise
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing -O -fasm -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal -package directory -package pretty
 -package containers    -c main/GHC.hs -o stage1/main/GHC.o  -ohi
 stage1/main/GHC.hi
 ghc-6.7.20070827: panic! (the 'impossible' happened)
   (GHC version 6.7.20070827 for i386-unknown-linux):
         nameModule show_mod{v s720}

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

 <<ghc: 1837293536 bytes, 1078 GCs, 8441856/17698816 avg/max bytes
 residency (8 samples), 48M in use, 0.01 INIT (0.00 elapsed), 10.58 MUT
 (11.71 elapsed), 2.28 GC (2.60 elapsed) :ghc>>
 make[1]: *** [stage1/main/GHC.o] Error 1
 make: *** [stage1] Error 1
 }}}

 I can give you tarballs of both source trees (with the partially compiled
 bits therein) as well as the ghc binary I originally built and installed.
 The distribution's GHC package can be found at:
 ftp.archlinux.org/extra/os/i686/ghc-6.6-1.pkg.tar.gz This is basically
 nothing but a tarball of the binary with a few files at the toplevel, so
 if needed, it shouldn't be hard to analyze what's inside it. Finally, if
 you need additional diagnostic tasks on my part, don't hesitate to ask.

 Matthew

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1654>
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

Reply via email to