1 Aug 2003 09:55
DLL problem with GHC 6.0.1
Mark Tehver <mark <at> eeter.fi.tartu.ee>
2003-08-01 07:55:26 GMT
2003-08-01 07:55:26 GMT
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 <at> haskell.org,
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
RSS Feed