-
Notifications
You must be signed in to change notification settings - Fork 797
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
Haskell stack hangs during setup #2290
Comments
I'll take a look at this and see if I can get a repro. |
@sanghakchun - Thank you very much for the excellent repro steps and debugging information. As you suspected this is network related. Here's the rundown: The application sets non-blocking mode on the socket file descriptor and calls connect, expecting it to return EINPROGRESS. Since we don’t support non-blocking connect we do a normal blocking connect. The application also has a posix timer delivering a signal every 10000000 nanoseconds which is causing each of these connect to get interrupted by the signal before the request can be completed (it is going to network after all). This causes the connect syscall to restart and get interrupted again by this timer, rinse, repeat. Non-blocking connect is on our backlog, but until that is implemented I've drafted a fix that will not allow connect requests that should be non-blocking to be interrupted by signals. With this fix stack setup is able to proceed successfully. This change is in code review and will be available in an insider build (and the Fall Creators Update). |
@benhillis Thanks for the update and the upcoming fix! Looking forward to the build. |
@sanghakchun - Thanks for the post and the details. Thanks @benhillis for brining this to my attention and the workaround fix. PR for |
This is fixed in 16273. |
Version:
Microsoft Windows [Version 10.0.16232.1000]
Issue: Command
stack setup
hangs while trying to download a file:stack
should progress beyond this step, but instead the command hangs at this point. On rare occasion, the command progresses to the next stage, where it hangs trying to fetch another file:Offending strace portion:
Issue seems network-related
Full strace: https://gist.github.com/sanghakchun/46850f9407ca37b46470c58c40956660
The text was updated successfully, but these errors were encountered: