WSL: Still unable to launch windows processes from WSL when using long environment variables (see #7947 or #6420))

Version

Microsoft Windows [Version 10.0.22621.674] / WSL-Version 0.70.0.0 / WSLg-Version 1.0.45

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102

Distro Version

Ubuntu 22.04

Other Software

cmd.exe

Repro Steps

  1. Start Ubuntu

  2. Execute the attached script $ . environment-setup-aarch64-tdx-linux_modified environment-setup-aarch64-tdx-linux_modified.zip

  3. Start cmd.exe

Expected Behavior

cmd.exe is started

Actual Behavior

It hangs for a moment and prints <3>init: (3508) ERROR: UtilAcceptVsock:244: accept4 failed 110

The strace of cmd.exe says writev(2, [{iov_base="<3>init: (3512) ERROR: UtilAccep"..., iov_len=63}, {iov_base=NULL, iov_len=0}], 2<3>init: (3512) ERROR: UtilAcceptVsock:244: accept4 failed 110

Diagnostic Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (1 by maintainers)

Most upvoted comments

I removed the Windows Features “Windows Hypervisor Platform” and “Windows Subsystem for Linux” and the “Windows Subsystem for Linux Update” and reinstalled them. But the error is still present.

Output of wsl --version:

WSL-Version: 0.70.0.0
Kernelversion: 5.15.68.1
WSLg-Version: 1.0.45
MSRDC-Version: 1.2.3575
Direct3D-Version: 1.606.4
DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows Version: 10.0.22621.819

When I try to run wsl --update --web-download in a PowerShell with admin rights I got the following output:

PS C:\WINDOWS\system32> wsl --update --web-download
Es wird nach Updates gesucht.
Die Windows-Subsystem für Linux wird auf die Version aktualisiert: 0.70.4.
Fehler aufgrund der Abmeldung eines Benutzers
Error code: Wsl/UpdatePackage/0x80073d19

Translated to English:

PS C:\WINDOWS\system32> wsl --update --web-download
Updates are being checked for.
The Windows subsystem for Linux is updated to version: 0.70.4.
Error due to user logout
Error code: Wsl/UpdatePackage/0x80073d19

When I remove WSL completly again and try to reinstall it in a powershell with admin rights:

wsl --install
Installation: Windows-Subsystem für Linux
Eine angegebene Anmeldesitzung ist nicht vorhanden. Sie wurde gegebenenfalls bereits beendet. 

or this:

wsl --install --web-download
Herunterladen: Windows-Subsystem für Linux
Installation: Windows-Subsystem für Linux
Das angegebene Paket ist bereits installiert, und die erneute Installation des Pakets wurde blockiert. Ausführlichere Informationen finden Sie im Ereignisprotokoll für "AppXDeployment-Server".

When i try to install the WSL within the store, I get the error 0x80240066.

But maybe this is another topic.