GHCI crashes on Mac OS X

Frank Atanassow franka at cs.uu.nl
Tue Oct 7 19:16:10 EDT 2003


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crashlog
Type: application/octet-stream
Size: 9211 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20031008/607a9dbb/crashlog.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExampleIso.ghs
Type: application/octet-stream
Size: 1265 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20031008/607a9dbb/ExampleIso.obj


More information about the Glasgow-haskell-bugs mailing list