[Canary]: Tab tear-off leads to crash #21501

Closed
opened 2026-01-31 07:46:25 +00:00 by claunia · 5 comments
Owner

Originally created by @tusharsnx on GitHub (Apr 9, 2024).

Windows Terminal version

1.21.991.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

  1. Open Windows Terminal Canary.
  2. Try tearing off a tab.

Expected Behavior

The tab is opened in a new WT window.

Actual Behavior

WT crashes.

Originally created by @tusharsnx on GitHub (Apr 9, 2024). ### Windows Terminal version 1.21.991.0 ### Windows build number 10.0.22631.0 ### Other Software _No response_ ### Steps to reproduce 1. Open Windows Terminal Canary. 2. Try tearing off a tab. ### Expected Behavior The tab is opened in a new WT window. ### Actual Behavior WT crashes.
Author
Owner

@tusharsnx commented on GitHub (Apr 9, 2024):

In debug build on main, Closing a tab with the "" button also leads to the same crashing behavior. This is not reproducible on the latest Canary build (maybe due to release vs debug build?)

@tusharsnx commented on GitHub (Apr 9, 2024): In debug build on `main`, Closing a tab with the "❌" button also leads to the same crashing behavior. This is not reproducible on the latest Canary build (maybe due to release vs debug build?)
Author
Owner

@tusharsnx commented on GitHub (Apr 9, 2024):

Exception: Unhandled exception at 0x00007FFDD7FBEBDF (ntdll.dll) in WindowsTerminal.exe: Indirect call guard check detected invalid control transfer.

The exception is thrown at this if's scope exit:

Screenshot 2024-04-09 194231

image

@tusharsnx commented on GitHub (Apr 9, 2024): Exception: Unhandled exception at 0x00007FFDD7FBEBDF (ntdll.dll) in WindowsTerminal.exe: Indirect call guard check detected invalid control transfer. The exception is thrown at this `if`'s scope exit: ![Screenshot 2024-04-09 194231](https://github.com/microsoft/terminal/assets/55626797/bb5563d0-2d8b-40ee-a61a-9f49540da99c) ![image](https://github.com/microsoft/terminal/assets/55626797/6aea4c5d-f212-45fd-8e44-17c291b3dc9f)
Author
Owner

@lhecker commented on GitHub (Apr 9, 2024):

Indirect call guard check detected invalid control transfer.

Hmm, this is just a hunch, and I apologize for your SSD 😣, but could you try cleaning the entire solution and building it again?

image

Some of us had this issue happen before and back then it could be resolved with a clean build. My suspicion is that the build system doesn't properly invalidate some compiled objects which results in mismatched vtables.

@lhecker commented on GitHub (Apr 9, 2024): > Indirect call guard check detected invalid control transfer. Hmm, this is just a hunch, and I apologize for your SSD 😣, but could you try cleaning the entire solution and building it again? ![image](https://github.com/microsoft/terminal/assets/2256941/c6ba8def-9147-4f22-986b-af0b2eedd3ed) Some of us had this issue happen before and back then it could be resolved with a clean build. My suspicion is that the build system doesn't properly invalidate some compiled objects which results in mismatched vtables.
Author
Owner

@tusharsnx commented on GitHub (Apr 9, 2024):

@lhecker Thanks for the info. I'll try doing a clean build next time.

I'm also curious why Canary might crash on tab tear-off 🤔

@tusharsnx commented on GitHub (Apr 9, 2024): @lhecker Thanks for the info. I'll try doing a clean build next time. I'm also curious why Canary might crash on tab tear-off 🤔
Author
Owner

@zadjii-msft commented on GitHub (Apr 15, 2024):

FWIW I can repro the tear-off crash on my own canary 21.991 (and after upgrading, my 21.1011) here as well. So, it's definitely not just a clean build problem.

@zadjii-msft commented on GitHub (Apr 15, 2024): FWIW I can repro the tear-off crash on my own canary 21.991 (and after upgrading, my 21.1011) here as well. So, it's definitely not just a clean build problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21501