microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.27k stars 311 forks source link

Broken surrogate in clipboard makes msrdc crash in a loop #1091

Open wodim opened 1 year ago

wodim commented 1 year ago

Windows Version

Microsoft Windows [Version 10.0.22621.1992]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.90.1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

Having a broken surrogate in the clipboard makes msrdc crash in a loop. Execute this in powershell:

Set-Clipboard -Value $([char]0xD835)

And msrdc will begin crashing in a loop until you set the clipboard to anything else

Faulting application name: msrdc.exe, version: 1.2.3770.0, time stamp: 0x638500bd
Faulting module name: WSLDVCPlugin.dll_unloaded, version: 1.0.51.0, time stamp: 0x641dd899
Exception code: 0xc0000005
Fault offset: 0x000000000000300d
Faulting process id: 0x0x2530
Faulting application start time: 0x0x1D9BE6998D4C575
Faulting application path: C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe\msrdc.exe
Faulting module path: WSLDVCPlugin.dll
Report Id: e907d824-ca7c-4cc2-b6a7-52fe5fc9ba9a
Faulting package full name: MicrosoftCorporationII.WindowsSubsystemForLinux_1.2.5.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: msrdc

Expected Behavior

.

Actual Behavior

.

Diagnostic Logs

No response

OneBlue commented 1 year ago

Moving to wslg