#696: segmentation fault in ./genprimopcode (x86_64)
-----------------------------+----------------------------------------------
Reporter: taral | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 6.4.2
Component: Compiler (NCG) | Version: 6.4.1
Severity: normal | Resolution:
Keywords: | Os: Linux
Difficulty: Unknown | Architecture: x86_64 (amd64)
-----------------------------+----------------------------------------------
Comment (by simonmar):
null.s looks like it is unregisterised, whereas null.fasm.s is
registerised. This would explain the crash: if the default RTS is
unregisterised, linking registerised code against it will fail.
So I guess your Debian build of GHC 6.4.1 is unregisterised. This is
something you should probably look into - there's no reason to have an
unregisterised build of 6.4.1 for x86_64, registerised works fine and is a
lot faster (and -fasm works).
It is usual to disable the native code generator for a registerised build.
I guess the Debian folks didn't do this. I'll look into providing more
safety checks in GHC to make sure you get a sensible error message rather
than a crash in the future.
--
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/696>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs