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

Containerized Alpine Job Hangs on dotnet build-server shutdown --vbcscompiler #4796

Open
ellahathaway opened this issue Dec 5, 2024 · 4 comments
Assignees

Comments

@ellahathaway
Copy link
Member

This is a tracking issue describing a block related to the work in #4547.

Source-build builds hang when shutting down the VB/C# compiler build server via dotnet build-server shutdown or dotnet build-server shutdown --vbcscompiler. This hanging only occurs in a containerized job using an Alpine with Node image. The hang occurs regardless of whether the build is internal or public, and it does not repro outside of a containerized azure devops job.

Diagnostics so far:

  • Our alpine images meet the requirements specified in the Azure DevOps documentation.
  • Running dotnet exec VBCSCompiler.dll --shutdown succeeds, allowing immediate subsequent calls to dotnet build-server shutdown or dotnet build-server shutdown --vbcscompiler to finish. Note that if the server is started again, the build will hang when attempting to shutdown the server without dotnet exec VBCSCompiler.dll.
  • There doesn't appear to be a process count limit on Alpine, as ulimit -u returns unlimited.
  • Replicating the Azure DevOps container setup doesn't reproduce the issue. Note that the setup can't be entirely replicated locally due to internal volumes being configured by the pipeline task.

cc @jaredpar

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ellahathaway
Copy link
Member Author

ellahathaway commented Dec 6, 2024

The suggestion from an internal team is to post the issue on stack overflow, so I opened https://stackoverflow.microsoft.com/questions/436123.

I think it would still be helpful to have someone with more knowledge on the VB/C# compiler build server help to investigate the issue as well.

@ellahathaway
Copy link
Member Author

Was able to get some workarounds to help unblock this. I will be implementing those today.

That said, the investigation is still ongoing. dotnet/sdk#45393 is needed to continue to investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants