-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
.NET 7 - Process terminated. Error while reaping child. errno = 10 #79540
Comments
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process Issue DetailsDescriptionHello. We have a cloud docker microservice which runs headless chromium in process. When we switch to .NET 7 we have encountered Process terminated. Error while reaping child. errno = 10 during killing chromium process. We cannot reproduce this behavior with .NET 6. I have prepared repro https://github.com/JaroslavMajera/DotNetReaper. Thanks Reproduction Steps
Source code: DotNetReaper-main.zip Expected behaviorNo Exception and chromium is successfully killed Actual behaviorSometimes we get
Regression?Cannot reproduce on .NET 6 Known WorkaroundsNo response Configuration
Other informationNo response
|
@tmds is there any chance you could take a look? |
I haven't run the reproducer yet, but I think it's a regression caused by #65061. When the runtime/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessWaitState.Unix.cs Lines 674 to 680 in e49d7ec
Inadvertently, we're also reaping direct children, which then leads to the If you change your ENTRYPOINT so
I'll work on a fix next week. |
Description
Hello. We have a cloud docker microservice which runs headless chromium in process. When we switch to .NET 7 we have encountered Process terminated. Error while reaping child. errno = 10 during killing chromium process. We cannot reproduce this behavior with .NET 6. I have prepared repro https://github.com/JaroslavMajera/DotNetReaper.
Thanks
Reproduction Steps
Source code: DotNetReaper-main.zip
Expected behavior
No Exception and chromium is successfully killed
Actual behavior
Sometimes we get
Process terminated. Error while reaping child. errno = 10 at System.Environment.FailFast(System.String) at System.Diagnostics.ProcessWaitState.TryReapChild(Boolean) at System.Diagnostics.ProcessWaitState.CheckChildren(Boolean, Boolean) at System.Diagnostics.Process.OnSigChild(Int32, Int32)
Regression?
Cannot reproduce on .NET 6
Known Workarounds
No response
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: