Crash to desktop when running an invalid Export Certificate Powershell command #3999

Closed
opened 2026-01-30 23:35:17 +00:00 by claunia · 8 comments
Owner

Originally created by @Choke101 on GitHub (Sep 24, 2019).

Originally assigned to: @miniksa on GitHub.

Environment

Platform ServicePack Version VersionString


Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal
0.4.2382.0

Powershell version
$PSVersionTable.PSVersion Major Minor Build Revision


5 1 18362 145

Any other software?
no

Steps to reproduce

  1. Type a poorly formed Export-Certificate powershell command such as
    Export-Certificate -Type CERT -FilePath "cert:\LocalMachine\my\blah" -Force
  2. Don't supply any details and hit enter when prompted for
    "Supply values for the following Parameters CERT:
  3. Get a great long exception stack trace that you can't read before windows closes as it crashes to desktop ending the WindowsTerminal process.

Expected behavior

Get a stack trace, and the terminal doesn't actually close and crash back to desktop.

Actual behavior

Closes window and Crashes back to desktop after printing out stack trace.

Originally created by @Choke101 on GitHub (Sep 24, 2019). Originally assigned to: @miniksa on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0 Windows Terminal 0.4.2382.0 Powershell version $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 1 18362 145 Any other software? no # Steps to reproduce 1. Type a poorly formed Export-Certificate powershell command such as Export-Certificate -Type CERT -FilePath "cert:\LocalMachine\my\blah" -Force 2. Don't supply any details and hit enter when prompted for "Supply values for the following Parameters CERT: 3. Get a great long exception stack trace that you can't read before windows closes as it crashes to desktop ending the WindowsTerminal process. # Expected behavior Get a stack trace, and the terminal doesn't actually close and crash back to desktop. # Actual behavior Closes window and Crashes back to desktop after printing out stack trace.
Author
Owner

@zadjii-msft commented on GitHub (Sep 24, 2019):

/feedback

@zadjii-msft commented on GitHub (Sep 24, 2019): /feedback
Author
Owner

@ghost commented on GitHub (Sep 24, 2019):

Hi there!

Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?

Thanks!

image image

@ghost commented on GitHub (Sep 24, 2019): Hi there!<br><br>Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?<br><br>Thanks!<br><br>![image](https://user-images.githubusercontent.com/18221333/62478757-b69d0d00-b760-11e9-9626-1fa33c91e7c5.png) ![image](https://user-images.githubusercontent.com/18221333/62478649-6de55400-b760-11e9-806e-5aab7e085a9f.png)
Author
Owner

@Choke101 commented on GitHub (Sep 27, 2019):

https://aka.ms/AA65778

@Choke101 commented on GitHub (Sep 27, 2019): https://aka.ms/AA65778
Author
Owner

@DHowett-MSFT commented on GitHub (Oct 24, 2019):

We can't reproduce this, but we also can't get any helpful information out of your feedback entry. Sorry about that! I'm going to mark this one Needs-Repro.

@DHowett-MSFT commented on GitHub (Oct 24, 2019): We can't reproduce this, but we also can't get any helpful information out of your feedback entry. Sorry about that! I'm going to mark this one Needs-Repro.
Author
Owner

@miniksa commented on GitHub (Nov 11, 2019):

I think this is related to #3380.

@miniksa commented on GitHub (Nov 11, 2019): I think this is related to #3380.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 28, 2020):

So, it looks like this was a powershell crash the whole time. Powershell is exiting with code 3221225477 or STATUS_ACCESS_VIOLATION.

@DHowett-MSFT commented on GitHub (Feb 28, 2020): So, it looks like this was a powershell crash the whole time. Powershell is exiting with code 3221225477 or STATUS_ACCESS_VIOLATION.
Author
Owner

@Choke101 commented on GitHub (Feb 28, 2020):

I'm confused by changing the label to Product-Powershell is that stating the bug should only be fixed in powershell and not Terminal? I understand powershell may need to be fixed a bit to handle those but the terminal app should have resilience to safely recover from bad exit codes or violations so that it doesn't close the entire process and destroy the window and other tabs.

@Choke101 commented on GitHub (Feb 28, 2020): I'm confused by changing the label to Product-Powershell is that stating the bug should only be fixed in powershell and not Terminal? I understand powershell may need to be fixed a bit to handle those but the terminal app should have resilience to safely recover from bad exit codes or violations so that it doesn't close the entire process and destroy the window and other tabs.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 28, 2020):

You may not have tried this recently, or your terminal settings may be out of date, but this no longer wipes out your terminal. It prints out "process exited with code 322xxx" and just stays open for you to inspect the damage.

@DHowett-MSFT commented on GitHub (Feb 28, 2020): You may not have tried this recently, or your terminal settings may be out of date, but this no longer wipes out your terminal. It prints out "process exited with code 322xxx" and just stays open for you to inspect the damage.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3999