Update Microsoft.Diagnostics.Tracing.TraceEvent to version 3.1.23 to fix P/Invoke buffer handling #5523
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the
Microsoft.Diagnostics.Tracing.TraceEvent
library from version 3.1.21 to 3.1.23 to incorporate the fix for an off-by-one error in buffer handling during P/Invoke operations.Changes Made
MicrosoftDiagnosticsTracingTraceEventVersion
from3.1.21
to3.1.23
ineng/Versions.props
Tools Affected
This centralized version update automatically applies to all diagnostic tools that use the TraceEvent library:
dotnet-stack
(specifically mentioned in the issue)dotnet-gcdump
(specifically mentioned in the issue)dotnet-counters
dotnet-trace
dotnet-dsrouter
Note:
dotnet-dump
does not directly reference the TraceEvent library, so it is not affected by this change.Background
The fix addresses a critical off-by-one error in buffer handling during P/Invoke operations that was resolved in TraceEvent version 3.1.23. This issue was originally reported and fixed in microsoft/perfview#2226.
By updating to the latest version, all affected diagnostic tools will now benefit from this important stability fix.
Fixes #5508.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
kijvsblobprodcus387.vsblob.vsassets.io
dotnet restore src/Tools/dotnet-stack/dotnet-stack.csproj
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.