Skip to content
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

--prefetch --dry-run intermittently hangs with a large number of dependencies - Windows #1689

enolan opened this issue Jan 21, 2016 · 3 comments


Copy link

enolan commented Jan 21, 2016

Sometimes, when I run stack build --only-snapshot --prefetch --dry-run Stack hangs after the last download message is printed. Process Explorer and Resource Monitor report there are no network connections open, stack.exe is using ~12% CPU which corresponds to pegging one virtual core on my machine, and the vast majority of the CPU time is spent in kernel. The active thread, according to Process Explorer, is in ntdll.dll!ZwDeviceIoControlFile+0xa most of the time.

To reproduce:

Here's a log

@enolan enolan changed the title --prefetch --dry-run hangs with a large number of dependencies - Windows --prefetch --dry-run intermittently hangs with a large number of dependencies - Windows Jan 21, 2016
Copy link

mgsloan commented May 20, 2016

Wow, thanks for figuring out the GHC issue and writing a blogpost about it!!

Hopefully there will be a GHC release soon with the fix. Once released, I wonder if we should only release the windows version compiled with that GHC.

Copy link
Contributor Author

enolan commented Jun 2, 2016

@mgsloan The fix didn't make it into GHC 8.0 unfortunately. :(

I wrote a workaround in network but that has its own problem - another crash. I might have added it when doing the workaround, or it may have always been there. Here's the network PR if anyone wants to take a look: haskell/network#192. If you can tell me why it's still crashing I'd be happy.

Copy link

mgsloan commented Mar 18, 2017

Closing as an upstream issue

@mgsloan mgsloan closed this as completed Mar 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants