Porting mips-sgi-irix65 [help]

Simon Marlow simonmar@microsoft.com
Fri, 13 Dec 2002 10:21:41 -0000


> Box		: mips-sgi-irix65
> Version		: 4.08.2 Unregisterised ( using=20
> mini-interpreter)
> Source File	: nfibI.hc
> ( compiled on a running box  i386-unknown-linux  )
> 		-optc-DNO_REGS -optc-DUSE_MINIINTERPRETER=20
> -fno-asm-manling
> 		-funregistered -fvia-C -C
> Traced File	: ghc/rts/GC.c   ( Garbage collector )
> References	: ghc/includes/Closures.h,ClosureTypes.h,ClosureMacros.h
> 		  "Implementing lazy functional Lan..." [Peyton Jones]
>=20
> Session:
> =3D=3D=3D=3D=3D=3D=3D=3D
> bash-2.04$ ghc -optc-DNO_REGS -optc-DUSE_MINIINTERPRETER=20
> -fno-asm-mangling
> -funregistered -fvia-C nfibI.hc -o nfibI
>=20
> bash-2.04$ ./nfibI		--run in irix
> nfibI: fatal error: evacuate: strange closure type 4137
>=20
> bash-2.04$ ./nfibI		--run in linux
> 2692537
>=20
> Linux closure-type sequence:		Irix closure-type sequence:
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D	=09
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
> 59 (TSO)				59
> 59					59
> 59					59
> 10 (CONST_NOCAF_STATIC)			10
> 10					10
> 33  (IND_STATIC)			4137  (zzz! Max number 64 !)
> 17  (FUN_STATIC)
> 33
> 17
> 33
> 29

Something is wrong with the heap layout perhaps, or maybe the info =
tables.  I can't tell much more from the information above; you'll need =
to fire up gdb on the executable and dig into the contents of the heap =
and info tables at the point of the crash.

Cheers,
	Simon