Skip to content

Conversation

@vargaz
Copy link
Contributor

@vargaz vargaz commented Feb 2, 2024

Backport of #97721 to release/8.0-staging

Customer Impact

  • Customer reported
  • Found internally

A customer reported an issue where they were calling Sum or Average on a List type of ~20K items resulting in a crash with an unclear stacktrace. After triaging, we noticed the runtime was not properly dereferencing byref values. We went in and fixed the glitch.

Regression

  • Yes
  • No

Testing

Regression test added on CI to make sure this usage passes.

Also manually tested .Sum in a foreach and it works as expected.

Risk

Low

@ghost ghost added the area-Codegen-JIT-mono label Feb 2, 2024
@ghost ghost assigned vargaz Feb 2, 2024
@vargaz
Copy link
Contributor Author

vargaz commented Feb 2, 2024

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lambdageek
Copy link
Member

@vargaz will you backport the test to 8.0, also?

@lambdageek lambdageek requested review from steveisok and removed request for SamMonoRT February 2, 2024 18:49
@lambdageek lambdageek added the Servicing-consider Issue for next servicing release review label Feb 2, 2024
@lambdageek lambdageek added this to the 8.0.x milestone Feb 2, 2024
@vargaz
Copy link
Contributor Author

vargaz commented Feb 2, 2024

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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. we will take for consideration in 8.0.x

@rbhanda rbhanda modified the milestones: 8.0.x, 8.0.3 Feb 8, 2024
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 8, 2024
@vargaz
Copy link
Contributor Author

vargaz commented Feb 9, 2024

/azp run runtime

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeffschwMSFT jeffschwMSFT merged commit ef1b0d6 into dotnet:release/8.0-staging Feb 9, 2024
@vargaz vargaz deleted the backport-97721 branch February 9, 2024 22:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Codegen-JIT-mono Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants