internal error: evacuate: strange closure type 32768

Simon Marlow simonmar at microsoft.com
Wed May 4 11:10:05 EDT 2005


On 03 May 2005 16:21, Greg Buchholz wrote:

>     I'm running GHC v6.4 under Linux (2.6.3) and while trying to port
> the spectralnorm benchmark of the Great Computer Language Shootout...
> 
> http://shootout.alioth.debian.org/benchmark.php?test=spectralnorm
> 
> ...I encounter a strange failure mode when turning on optimizations.
> For the code below enabling either the -O or -O2 level of optimization
> results in the following error...
> 
> spectral_norm: internal error: evacuate: strange closure type 32768
>     Please report this as a bug to glasgow-haskell-bugs at haskell.org,
>     or http://www.sourceforge.net/projects/ghc/

Nice bug, thanks for the report.

It turns out to be an old bug that resurfaced at some point, caused by
over-aggressive inlining of runST (used in some of the array
operations).  Inlining runST too early can give rise to some incorrect
optimisations, so we were trying to inline it as late as possible - and
failing.  I've fixed it so it doesn't get inlined at all.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list