Giter Club home page Giter Club logo

createpseudoconsole-crash-with-long-path's Introduction

CreatePseudoConsole-crash-with-long-path

This repository automates reproducing CreatePseudoConsole crash when path to conpty.dll is long.

Usage

.\run-terminal-app.ps1 -DestinationDirLength <number>

The PowerShell command does the following:

  1. Creates a new directory in the project root. The length of the directory full path is equal to the specified number.
  2. Downloads Windows Terminal v1.19.10573.0 and extracts it to the created directory.
  3. Runs the extracted WindowsTerminal.exe.

Steps to reproduce crashing CreatePseudoConsole

.\run-terminal-app.ps1 -DestinationDirLength 145

It runs for a few seconds and then terminates without showing the Windows Terminal UI. The generated output:

Generating destination directory of total full path length 145, base directory full path length: 47
Destination path: D:\CreatePseudoConsole-crash-with-long-path\tmp\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaa (length: 145, 11 new directories created)
Downloading https://github.com/microsoft/terminal/releases/download/v1.19.10573.0/Microsoft.WindowsTerminal_1.19.10573.0_x64.zip ...
Expanding Microsoft.WindowsTerminal_1.19.10573.0_x64.zip
Running D:\CreatePseudoConsole-crash-with-long-path\tmp\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaaa\aaaaaaa\terminal-1.19.10573.0\WindowsTerminal.exe
Finished with exit code -1073740791 (hex: c0000409)

See microsoft/terminal#16860 for the details.

createpseudoconsole-crash-with-long-path's People

Contributors

segrey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.