Opened 11 years ago

Closed 10 years ago

#970 closed bug (fixed)

GHCi crashes under Windows Millenium

Reported by: guest Owned by:
Priority: normal Milestone: 6.6.1
Component: GHCi Version: 6.6
Keywords: Windows GHCi Cc:
Operating System: Windows Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


GHCi fails to launch for me under Windows Millenium. The command:

ghc -v --interactive

produces the following:

   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.6, for Haskell 98.
/ /_\\/ __  / /___| |
\____/\/ /_/\____/|_|      Type :? for help.

Using package config file: C:\GHC\GHC-6.6\package.conf
wired-in package base mapped to base-2.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.0
Hsc static flags: -static
Loading package base ... linking ... done.
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:

at which point GHCi fails with the generic error message (roughly translated from French):

Ghc provoked an error in GHC.EXE. The program Ghc will now be stopped.
If you continue to encounter problems, try to restart your computer.

Restarting the computer, obviously, didn't help.

I am using GHC 6.6 under Windows Millenium, which was set up using the standalone Windows installer. I can use the compiler from the command line without any problems, but whenever I try to launch GHCi from the Start menu or using "ghc --interactive", I get the above error message. Please note that GHCi v6.4.2 works flawlessly on the same machine (a rather old Pentium III 650 MHz with a modest 128 Mo of RAM, if such things matter).

Change History (6)

comment:1 Changed 11 years ago by sof


I believe I've diagnosed the problem, but wondered if you could try out the fix before I take it further. If you download

and unzip its contents on top of a ghc-6.6/bin directory, i.e., overwrite the ghc.exe that's in there [you may want to copy the original off to the side first, just in case..], GHCi may just work a little bit better for you.

Please let me know if that helps; thanks.

comment:2 Changed 11 years ago by guest


I was the one who submitted the original bug report and I can confirm that your fix did indeed correct the problem on my machine. In fact, replacing ghc.exe did the trick with or without the accompanying dll, so it doesn't appear to be essential as far as I can tell. In any case, thank you very much for taking the time to investigate this, your efforts are certainly appreciated.

comment:3 Changed 11 years ago by sof

Great, thanks for the quick feedback; evidence that the right itch has indeed been scratched.

I suspect you may have that DLL kicking around somewhere else on your load path..

I'll leave the ticket open at least until the necessary changes have been committed.

comment:4 Changed 10 years ago by igloo

Milestone: 6.6.1

Have the changes been committed yet? If not, where are they? Is there a problem with them?

comment:5 Changed 10 years ago by igloo

See also #976.

comment:6 Changed 10 years ago by igloo

Resolution: fixed
Status: newclosed

Sigbjorn has confirmed that the changes have been committed, and it sounds like they work for everyone.

Note: See TracTickets for help on using tickets.