Skip to content

Conversation

@jakobbotsch
Copy link
Member

Backport of #92123 to release/8.0

Customer Impact

The JIT may crash the process during startup in custom hosting scenarios where stdout is closed before the JIT is initialized. Customer reported in #91856.

Testing

Manually verified that the JIT code making I/O operations on stdout no longer runs (unless needed, e.g. due to DOTNET_JitDisasm being set).

Risk

Low, make some code not run during startup/shutdown, and make some mechanical changes in code that does not run in release builds.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 18, 2023
@ghost ghost assigned jakobbotsch Sep 18, 2023
@ghost
Copy link

ghost commented Sep 18, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #92123 to release/8.0

Customer Impact

The JIT may crash the process during startup in custom hosting scenarios where stdout is closed before the JIT is initialized. Customer reported in #91856.

Testing

Manually verified that the JIT code making I/O operations on stdout no longer runs (unless needed, e.g. due to DOTNET_JitDisasm being set).

Risk

Low, make some code not run during startup/shutdown, and make some mechanical changes in code that does not run in release builds.

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved. this can be merged when ready

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Sep 18, 2023
@jeffschwMSFT jeffschwMSFT added this to the 8.0.0 milestone Sep 18, 2023
@carlossanlop carlossanlop merged commit 7226388 into dotnet:release/8.0 Sep 18, 2023
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 18, 2023
@jakobbotsch jakobbotsch deleted the avoid-stdout-io-on-startup-8.0 branch November 29, 2023 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants