[PR #12599] [MERGED] Fix fail-fast due to unlocked FreeProcessData call #29124

Open
opened 2026-01-31 09:32:57 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12599
Author: @lhecker
Created: 2/28/2022
Status: Merged
Merged: 3/1/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/fix-connection-fail-fast


📝 Commits (1)

  • bc01b34 Fix fail-fast due to unlocked FreeProcessData call

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 src/server/IoDispatchers.cpp (+3 -2)

📄 Description

2b202ce6 introduced a bug, where FreeProcessData was called without the console
lock being held. The previous code can be found in 40e3dea, on line 441-454.

PR Checklist

  • Closes MSFT:21372705
  • I work here
  • Tests added/passed

Validation Steps Performed

None, as this fix is purely theoretic, but it matches the stack trace
and 40e3dea clearly wasn't correctly ported to strict C++ either.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12599 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 2/28/2022 **Status:** ✅ Merged **Merged:** 3/1/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/fix-connection-fail-fast` --- ### 📝 Commits (1) - [`bc01b34`](https://github.com/microsoft/terminal/commit/bc01b34a87c584dfa9b9df5f62fd7a89041f54a4) Fix fail-fast due to unlocked FreeProcessData call ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/server/IoDispatchers.cpp` (+3 -2) </details> ### 📄 Description 2b202ce6 introduced a bug, where FreeProcessData was called without the console lock being held. The previous code can be found in 40e3dea, on line 441-454. ## PR Checklist * [x] Closes MSFT:21372705 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed None, as this fix is purely theoretic, but it matches the stack trace and 40e3dea clearly wasn't correctly ported to strict C++ either. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:32:57 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29124