GHCI crashes on Mac OS X
Wolfgang Thaller
wolfgang.thaller at gmx.net
Thu Oct 9 11:26:20 EDT 2003
Yes, I can confirm that.
> I don't understand the message on the last line. Is GHC confusing GH
> source files with something else that has the same extension?
It looks like GHCi just tries to load all files passed on the command
line that do not have a known extension as an object file.
The GHCi run-time linker for Mac OS X currently doesn't do enough error
checking (my fault), so it crashes when it is asked to load a file
which is not a valid object file.
I'll add some more error checks to the linker so that in the future,
the Mac OS version will behave more like the Linux version (print an
error message and abort without segfaulting).
I'm not sure whether it's right or wrong to just pass all unknown files
on to the linker; but this isn't Mac OS X-specific, so I'll leave that
decision to others.
Cheers,
Wolfgang
More information about the Glasgow-haskell-bugs
mailing list