-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mallocPlainForeignPtrBytes: size must be >= 0 on Windows #2035
Comments
I've tried turning off Windows firewall, Internet filter, VPN, etc. to no avail. |
Are you using the 64-bit version of HP? |
I tried to reproduce with both 32-bit and 64-bit versions, but everything On 8 August 2014 22:54, Elliot Cameron [email protected] wrote:
|
Yes, HP x86_64. |
I should mention that standalone cabal doesn't work either, but with a different error: Desktop> cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.1 of the Cabal library
Desktop> cabal update -v3
Downloading the latest package list from hackage.haskell.org
Sending:
GET /packages/archive/00-index.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.20.0.3 (windows; i386)
Creating new connection to hackage.haskell.org
Received:
HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.0
Date: Sat, 09 Aug 2014 14:11:35 GMT
Content-Type: text/plain; charset=UTF-8
Connection: keep-alive
Location: /packages/index.tar.gz
Content-Length: 0
301 - redirect
Redirecting to http://hackage.haskell.org/packages/index.tar.gz ..
Sending:
GET /packages/index.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.20.0.3 (windows; i386)
Recovering connection to hackage.haskell.org
cabal: <socket: 368>: invalid argument |
These errors are likely coming from the
|
One thing to try is to recompile |
See here for instructions on how to do that. Something like |
Should I install the package index manually somehow? > cabal get cabal-install-1.18.0.5 && cd cabal-install-1.18.0.5 && cabal configure --enable-e
xecutable-profiling --with-ghc-options="-auto-all -caf-all" && cabal build
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
cabal: There is no package named 'cabal-install'.
You may need to run 'cabal update' to get the latest list of available
packages. |
Well, you can always download and unpack the tarball manually if |
@23Skidoo doesn't look familiar to me. |
cabal-install-1.18.0.5> cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.1 of the Cabal library
cabal-install-1.18.0.5> ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3
cabal-install-1.18.0.5> cabal configure --enable-executable-profiling --ghc-options="-auto-all" --ghc-options="-caf-all" && cabal build
[...]
cabal-install-1.18.0.5> dist\build\cabal\cabal.exe update -v3 +RTS -xc
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.Config.readConfigFile.handleNotExists,
called from Distribution.Client.Config.readConfigFile,
called from Distribution.Client.Config.loadConfig.addBaseConf,
called from Distribution.Client.Config.loadConfig,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
Downloading the latest package list from hackage.haskell.org
*** Exception (reporting due to +RTS -xc): (THUNK), stack trace:
Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.HttpUtils.downloadURI,
called from Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.HttpUtils.downloadURI,
called from Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.HttpUtils.downloadURI,
called from Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.HttpUtils.downloadURI,
called from Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
Sending:
GET /packages/archive/00-index.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.18.0.5
Creating new connection to hackage.haskell.org
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.HttpUtils.cabalBrowse,
called from Distribution.Client.HttpUtils.getHTTP,
called from Distribution.Client.HttpUtils.downloadURI,
called from Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
Distribution.Client.HttpUtils.cabalBrowse,
called from Distribution.Client.HttpUtils.getHTTP,
called from Distribution.Client.HttpUtils.downloadURI,
called from Distribution.Client.FetchUtils.downloadIndex,
called from Distribution.Client.Update.updateRepo,
called from Distribution.Client.Update.update,
called from Main.updateAction,
called from Main.mainWorker,
called from Main.main
Received:
HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.0
Date: Sat, 09 Aug 2014 20:47:58 GMT
Content-Type: text/plain; charset=UTF-8
Connection: keep-alive
Location: /packages/index.tar.gz
Content-Length: 0
301 - redirect
Redirecting to http://hackage.haskell.org/packages/index.tar.gz ...
Sending:
GET /packages/index.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.18.0.5
Recovering connection to hackage.haskell.org
[runs indefinitely...] Notice that cabal freezes at that point and cannot be closed with Ctrl+C. |
So it looks like it dies somewhere in the bowels of Might be an x64-only issue. Does the 32-bit version of |
Sadly, I tried that already:
|
Since this seems to happen only on Windows 8.1, maybe you should try experimenting with compatibility settings. |
Running in compatibility mode for Windows 7 and Vista: same result. Running as admin: same result. I did run the latest 32-bit version that you referenced on a 32-bit Windows 7 VM without any issues. |
This is bound to make your day: Just ran it on a fresh Windows 8.1 x64 VM and it worked without issue. It still looks like a bug (since |
Just for thoroughness: tested the official release of Haskell Platform 2014.2.0 on my host machine with the same error result. |
The issue likely affects every Haskell program using |
I'm open to any suggestions. I'm even willing to let someone remote into my machine for a bit to do some step-by-step debugging. Perhaps this bug should be forwarded to a different repository then? |
Can you try compiling and running this test program? It downloads the If the bug still happens with my test program, we can then move this ticket to the |
Let me know if you want me to move the ticket myself.
|
More details:
|
Sure, please do. |
Moved to haskell/HTTP#72. |
Using 1.18.0.5 on Windows 8.1 x64 from the Haskell Platform 2014.2.0 RC4:
The text was updated successfully, but these errors were encountered: