我尝试在Windows 7中测试ftphs软件包的ftp客户端。该测试只是从上面链接的API文档中复制了示例:
-- FtpTest.hs
import Network.FTP.Client
main = do h <- easyConnectFTP "ftp.astron.com"
loginAnon h
cwd h "/pub/file"
nlst h Nothing >>= putStrLn . unlines
然后运行
runhaskell FtpTest.hs
发生访问冲突:
Access violation in generated code when reading 0xffffffffffffffff
Attempting to reconstruct a stack trace...
Frame Code address
* 0x6a7dad8 0x10f38973 C:\Users\user\AppData\Roaming\cabal\x86_64-windows-ghc
-8.4.2\regex-posix-0.95.2-JzP20x6SHdt1UVPk1SIrSH\HSregex-posix-0.95.2-JzP20x6SHd
t1UVPk1SIrSH.o+0x2881b
(regexec+0x1435)
* 0x6a7dae0 0x10
* 0x6a7dae8 0x10
* 0x6a7daf0 0x41a0298
* 0x6a7dc00 0x776c7974 C:\Windows\SYSTEM32\ntdll.dll+0x27974
* 0x6a7dc08 0xe120e20
* 0x6a7dc10 0xf91e1f0
* 0x6a7dc18 0x1
* 0x6a7dc20 0x1
* 0x6a7dc28 0x22
* 0x6a7dc30 0x776f7584 C:\Windows\SYSTEM32\ntdll.dll+0x57584
...
有人知道如何解决吗?