Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[release/3.1] Port SafeProcessHandle.Unix: fix missing DangerousRelease#42941

Merged
Anipik merged 1 commit intodotnet:release/3.1from
danmoseley:portSafeProcessHandlefix
Jul 14, 2020
Merged

[release/3.1] Port SafeProcessHandle.Unix: fix missing DangerousRelease#42941
Anipik merged 1 commit intodotnet:release/3.1from
danmoseley:portSafeProcessHandlefix

Conversation

@danmoseley
Copy link
Copy Markdown
Member

Port dotnet/runtime#37412

Description

Ports #37412. Original issue dotnet/runtime#36661
Fixes regression introduced in this PR between 2.2 and 3.0

Description from original PR

Because the SafeProcessHandle was not owned, ReleaseHandle was not called, causing the wrapped SafeWaitHandle to never release its resources.

Customer Impact

From customer:

This is very impactful for our embedded clients. If left out would mean skipping .Net core 3. The clients cycle a process exactly once per second which amounts to ~ 10-20 mb leak every 24 hrs. I should imagine any long running processes like asp.net core servers that spawn any child processes are also affected.

We are asked to port this to enable the customer to migrate to 3.1.

Risk

Low.

  • We already shipped this in Preview 6 and the customer (@myrup) validated the change there
  • The change is limited to Unix
  • The change is very localized and relatively straightforward to understand.

@danmoseley danmoseley changed the title Port SafeProcessHandle.Unix: fix missing DangerousRelease [release/3.1] Port SafeProcessHandle.Unix: fix missing DangerousRelease Jul 1, 2020
@danmoseley danmoseley added area-System.Diagnostics.Process and removed Servicing-consider Issue for next servicing release review labels Jul 1, 2020
@leecow leecow added the Servicing-approved Approved for servicing release label Jul 2, 2020
@leecow leecow added this to the 3.1.8 milestone Jul 2, 2020
@Anipik Anipik added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Jul 14, 2020
@Anipik Anipik modified the milestones: 3.1.8, 3.1.7 Jul 14, 2020
@Anipik Anipik removed the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Jul 14, 2020
@Anipik Anipik merged commit 38f1f03 into dotnet:release/3.1 Jul 14, 2020
@danmoseley danmoseley deleted the portSafeProcessHandlefix branch August 17, 2020 22:57
freddyrios added a commit to copenhagenatomics/CA_DataUploader that referenced this pull request Feb 17, 2021
reason: the root cause of the last rpi temp slow downs / crashes, is a leak on dotnet core.
i.e. specifically we want this fix dotnet/runtime#37446

we could have gone with .net core 3.1.7, but we were already planning to move to .net 5 anyway dotnet/corefx#42941
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants