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

Closed
enolan opened this issue Jan 21, 2016 · 3 comments

Comments

@enolan
Copy link
Contributor

@enolan 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 https://gist.github.com/enolan/25aad1613c42fee5fcbf

@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
@mgsloan
Copy link
Contributor

@mgsloan mgsloan commented May 20, 2016

Wow, thanks for figuring out the GHC issue and writing a blogpost about it!! http://www.echonolan.net/posts/2016-05-10-a-debugging-horror-story.html

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.

@enolan
Copy link
Contributor Author

@enolan 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.

@mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Mar 18, 2017

Closing as an upstream issue

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.