Hi guys,

I'm using GHCI to run code output by Generic Haskell. As I'm sure you're aware, GH is a preprocessor. Every once in a while, I accidentally load a .ghs file (GH input) rather than the resulting .hs, and GHCI crashes with a segmentation fault:

merulo 536 ~/share/cvs/GH-Papers/data-binding $ ghci -fglasgow-exts -i$GH_HOME/lib/Prelude ExampleIso.ghs
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.0.1, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.

Loading package base ... linking ... done.
Loading object (static) ExampleIso.ghs ... Segmentation fault

I don't understand the message on the last line. Is GHC confusing GH source files with something else that has the same extension?

Anyway...

ExampleIso.ghs depends on some other files, but those don't get loaded so I assume you don't need them. I can also leave off all the flags and it still crashes.

Here is the info:

merulo 543 ~/share/cvs/GH-Papers/data-binding $ uname -a
Darwin merulo.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh powerpc
merulo 544 ~/share/cvs/GH-Papers/data-binding $ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)

OS X version 10.2.8 if it matters.

Thanks.

Regards,
Frank

Attachment: crashlog
Description: Binary data


Attachment: ExampleIso.ghs
Description: Binary data

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to