Open iongion opened 1 month ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
wsl.exe
causes "Application Info"/appinfo
service to leak ~5 registry handles. Turns into a very steady leak with Docker Desktop. Hundreds of thousands of handles leaked after a week uptime. (#9851), similarity score: 0.74Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I have attached the logs as instructed with the issue reproduced.
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
wsl.exe
causes "Application Info"/appinfo
service to leak ~5 registry handles. Turns into a very steady leak with Docker Desktop. Hundreds of thousands of handles leaked after a week uptime. (#9851), similarity score: 0.76Note: You can give me feedback by thumbs upping or thumbs downing this comment.
.wslconfig found
Custom kernel command line found: 'ipv6.disable=1 cgroup_no_v1=all'
Detected appx version: 2.1.5.0
Found no WSL traces in the logs
Windows Version
Microsoft Windows [Version 10.0.22631.4317]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-microsoft-standard-WSL2
Distro Version
Ubuntu 24.04
Other Software
I am using a custom application, developed by myself - https://container-desktop.com
Because on Windows, I cannot use WSL 2 unix domain sockets directly, I need to relay them somehow. My choice is to use
socat
binary in Ubuntu and use stdin and stdout to relay from a unix socket,/var/run/docker.sock
I created a nodejs server that listens to a named pipe and spawns socat processes inside WSL to write to the socket and read back from it. My invocation arguments for spawning the WSL socat binary look like this:After several calls, I see a lot of these accumulating
And behind each are various like these
In linux,
ps aux
shows thatsocat
is dead, but a lot of these accumulatedRepro Steps
clientSocketProcess.kill()
in nodejsYou will notice, socat is killed in WSL, but the weird wsl wrappers are still there and keep accumulating.
Expected Behavior
I expect the related processes to die once the linux socat has exited.
Actual Behavior
Too many init processes running in WSL distro and also too many
wslhost.exe
andconhost.exe
pairsDiagnostic Logs
WslLogs-2024-10-12_21-18-45.zip