SSH from VSCode creates fork bomb

Connecting to the login node from VSCode seems to be spawning child process.

-bash: fork: retry: No child processes
-bash: fork: retry: No child processes
-bash: fork: retry: No child processes
-bash: fork: retry: No child processes

This wasn’t the case a few days ago. Uninstalling ~/.vscode-server doesn’t help. Any idea what may be the cause?

[16:36:43.827] Showing password prompt
[16:36:51.319] Got password response
[16:36:51.319] "install" wrote data to terminal: "*****************"
[16:36:51.349] > 
[16:36:51.721] > /spack/apps/linux-centos7-x86_64/gcc-4.8.5/lua-5.3.5-rzebuo27twsh7lddxyfysshtj52
> ycsmy/bin/lua: ...qzz6fgqaoszbd65/lmod/lmod/libexec/../tools/TermWidth.lua:53: a
> ttempt to index a nil value (local 'r_c')
> stack traceback:
>         ...qzz6fgqaoszbd65/lmod/lmod/libexec/../tools/TermWidth.lua:53: in upval
> ue 'askSystem'
>         ...qzz6fgqaoszbd65/lmod/lmod/libexec/../tools/TermWidth.lua:92: in funct
> ion 'TermWidth'
>         ...6fgqaoszbd65/lmod/lmod/libexec/../tools/serializeTbl.lua:162: in upva
> lue 'outputTblHelper'
>         ...6fgqaoszbd65/lmod/lmod/libexec/../tools/serializeTbl.lua:224: in func
> tion 'serializeTbl'
>         ...zzv4g6g7wfwzl4aoqzz6fgqaoszbd65/lmod/lmod/libexec/MT.lua:347: in func
> tion 'MT.serializeTbl'
>         ...-qzzv4g6g7wfwzl4aoqzz6fgqaoszbd65/lmod/lmod/libexec/lmod:541: in func
> tion 'main'
>         ...-qzzv4g6g7wfwzl4aoqzz6fgqaoszbd65/lmod/lmod/libexec/lmod:570: in main
>  chunk
>         [C]: in ?
[16:36:51.747] > a851ebbcb022: running
> bash: fork: retry: Resource temporarily unavailable
[16:36:52.730] > bash: fork: retry: No child processes
[16:36:54.730] > bash: fork: retry: Resource temporarily unavailable
[16:36:55.729] > bash: fork: retry: No child processes
[16:36:57.728] > bash: fork: retry: Resource temporarily unavailable
[16:36:58.730] > bash: fork: retry: No child processes
[16:37:00.735] > bash: fork: retry: Resource temporarily unavailable
[16:37:01.733] > bash: fork: retry: Resource temporarily unavailable
[16:37:03.733] > bash: fork: retry: Resource temporarily unavailable
[16:37:07.735] > bash: fork: retry: Resource temporarily unavailable
[16:37:15.733] > bash: fork: Resource temporarily unavailable
> Missing GLIBCXX >= 3.4.18!
> Found versions
> bash: fork: retry: Resource temporarily unavailable
[16:37:15.752] > 
[16:37:16.737] > bash: fork: retry: No child processes
[16:37:18.737] > a851ebbcb022$$1$$
> Acquiring lock on /home1/haomingl/.vscode-server/bin/784b0177c56c607789f9638da7b
> 6bf3230d47a8c/vscode-remote-lock.haomingl.784b0177c56c607789f9638da7b6bf3230d47a
> 8c
> bash: fork: retry: Resource temporarily unavailable
[16:37:18.791] > 
[16:37:19.742] > bash: fork: retry: No child processes
[16:37:21.744] > Found existing installation at /home1/haomingl/.vscode-server/bin/784b0177c56c60
> 7789f9638da7b6bf3230d47a8c...
> Checking /home1/haomingl/.vscode-server/.784b0177c56c607789f9638da7b6bf3230d47a8
> c.log and /home1/haomingl/.vscode-server/.784b0177c56c607789f9638da7b6bf3230d47a
> 8c.pid for a running server
> Looking for server with pid: 42405
> bash: fork: retry: Resource temporarily unavailable
[16:37:21.759] > 
[16:37:22.744] > bash: fork: retry: No child processes
[16:37:24.746] > bash: fork: retry: Resource temporarily unavailable
[16:37:25.748] > bash: fork: retry: No child processes
[16:37:27.748] > bash: fork: retry: Resource temporarily unavailable
[16:37:28.747] > bash: fork: retry: No child processes
[16:37:30.747] > bash: fork: retry: Resource temporarily unavailable
[16:37:31.751] > bash: fork: retry: No child processes
[16:37:33.748] > bash: fork: retry: Resource temporarily unavailable
[16:37:34.748] > bash: fork: retry: No child processes
[16:37:36.773] > Found running server...
>  
> *
> * Reminder: You may only use this software with Visual Studio family products,  
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) 
> *
[16:37:36.778] > 
> 
> bash: fork: retry: Resource temporarily unavailable
[16:37:37.751] > bash: fork: retry: No child processes
[16:37:39.751] > bash: fork: retry: Resource temporarily unavailable
[16:37:40.752] > bash: fork: retry: No child processes
[16:37:42.753] > bash: fork: retry: Resource temporarily unavailable
[16:37:43.752] > bash: fork: retry: No child processes
[16:37:45.755] > bash: fork: retry: Resource temporarily unavailable
[16:37:46.758] > bash: fork: retry: No child processes
[16:37:48.754] > bash: fork: retry: Resource temporarily unavailable
[16:37:49.756] > bash: fork: retry: No child processes
[16:37:51.756] > bash: fork: retry: Resource temporarily unavailable
[16:37:52.754] > bash: fork: retry: No child processes
[16:37:54.758] > Server did not start successfully. Full server log at /home1/haomingl/.vscode-se
> rver/.784b0177c56c607789f9638da7b6bf3230d47a8c.log >>>
> <<< End of server log
> a851ebbcb022: start
> exitCode==32==
> listeningOn====
> osReleaseId==centos==
> arch==x86_64==
> tmpDir==/run/user/400273==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> a851ebbcb022: end
[16:37:54.758] Received install output: 
exitCode==32==
listeningOn====
osReleaseId==centos==
arch==x86_64==
tmpDir==/run/user/400273==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

[16:37:54.759] Resolver error: Error: The VS Code Server failed to start
	at g.ServerInstallError (c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:585156)
	at f (c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:579404)
	at t.handleInstallOutput (c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:582429)
	at t.tryInstall (c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:681023)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:643908
	at async t.withShowDetailsEvent (c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:647224)
	at async t.resolve (c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:644958)
	at async c:\Users\edric\.vscode\extensions\ms-vscode-remote.remote-ssh-0.84.0\out\extension.js:1:727082
[16:37:54.763] ------

I recommend switching to the SSH FS extension. See the last few comments on this post: Unable to connect to discovery from VS code - #14 by dstrong