logo       

DLL problem with GHC 6.0.1: msg#00000

lang.haskell.glasgow.bugs

Subject: DLL problem with GHC 6.0.1

Hi,

I have run into something in GHC that looks
like a bug (GHC 6.0.1 under Win2k). A DLL with several exported
FFI functions reports (and then terminates):

ghcDll: internal error: schedule: invalid what_next field
Please report this as a bug to glasgow-haskell-bugs@xxxxxxxxxxx,
or http://www.sourceforge.net/projects/ghc/

What is really strange: I get this error ONLY when I run my
application (C++ code which loads the DLL dynamically) under MS
Visual Studio 6 in Debug Mode. When I run the same executable
from shell/command prompt, then everything works. Also, when I
compile the DLL with GHC version 5.x, I can run the application
from Visual Studio 6 without problems. So this seems to be GHC 6.x specific.

Not 100% sure, but looks like I get this error on a first call to
any FFI function. Unfortunately the application is rather large but
I could try to simplify it. I had this problem also with GHC 6.0.0.
Any ideas?

Regards,
Mark Tehver


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise