[GHC] #696: segmentation fault in ./genprimopcode (x86_64)
Ian Lynagh
igloo at earth.li
Thu Mar 9 07:21:30 EST 2006
[I was going to reply to #631 in trac with this, but having created an
account I can see no way to do so]
On Thu, Mar 02, 2006 at 12:28:48PM +0000, Simon Marlow wrote:
> Ian Lynagh wrote:
>
> >Currently I have this for most arches:
> >
> > echo "GhcUnregisterised=YES" >> mk/build.mk
> > echo "SplitObjs=NO" >> mk/build.mk
> >
> >I'll add
> >
> > echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
> >
> >Is there anything else you'd recommend?
>
> Does GHCi work on an unregisterised build? If it does, I'm pleasantly
> surprised :-) If not, you probably want GhcWithInterpreter=NO too.
It doesn't seem to entirely not work, e.g. things like
map Char.ord "foo"
are fine, but it also doesn't entirely work, e.g. bug #631.
With
echo "GhcUnregisterised=YES" >> mk/build.mk
echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
echo "SplitObjs=NO" >> mk/build.mk
on a powerpc:
igloo at bruckner:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> f
Segmentation fault
igloo at bruckner:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> map Char.ord "foo"
[102,111,111]
*Main> print (D 'a')
<interactive>: internal error: scavenge_one: strange object 32137
Please report this as a bug to glasgow-haskell-bugs at haskell.org,
or http://www.sourceforge.net/projects/ghc/
igloo at bruckner:~$
and on a sparc:
igloo at vore:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> f
Bus error
igloo at vore:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> map Char.ord "foo"
[102,111,111]
*Main> print (D 'a')
<interactive>: internal error: scavenge_one: strange object 33216
Please report this as a bug to glasgow-haskell-bugs at haskell.org,
or http://www.sourceforge.net/projects/ghc/
igloo at vore:~$
I haven't tried on x86/amd64 with the above build.mk. Is this something
you'll look into fixing, or should I just drop ghci too?
Thanks
Ian
More information about the Glasgow-haskell-bugs
mailing list