microsoft / microsoft/vscode-cpptools

motd breaks pickRemoteNativeProcess

Open
#7,376 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Issue Type: Bug

I'm running vscode on windows connected to a linux wsl2 VM attempting to attach-debug another remote linux machine.

launch.json:

		{
			"name": "(gdb) Pipe Attach",
			"type": "cppdbg",
			"request": "attach",
			"program": "/my/to/app",
			"processId": "${command:pickRemoteProcess}",
			"pipeTransport": {
				"debuggerPath": "/opt/rh/devtoolset-9/root/usr/bin/gdb",
				"pipeProgram": "/usr/bin/ssh",
				"pipeArgs": [
					"user@remote-host"
				]
			},
			"MIMode": "gdb",
			"miDebuggerPath": "/opt/rh/devtoolset-9/root/usr/bin/gdb"
		},

when i start debugging the remote-attach window shows:

Linux
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 
    1 systemd                                           /usr/lib/systemd/systemd --switched-root --system --deserialize 21
...
23663 kworker/u30:1                                     [kworker/u30:1]

*******
** blah blah motd blah 
*******

and the Remote Extension Host log shows:

[2021-04-15 16:20:07.334] [exthost] [error] Error:  
*******
** blah blah motd blah 
*******
 
	at /home/piersh/.vscode-server/extensions/ms-vscode.cpptools-1.2.2/dist/main.js:769:24
	at ChildProcess.exithandler (child_process.js:294:7)
	at ChildProcess.emit (events.js:315:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) extension.pickRemoteNativeProcess

turning off the motd is not an option.

Extension version: 1.3.0
VS Code version: Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f, 2021-03-30T16:01:55.261Z)
OS version: Windows_NT x64 10.0.19042
Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2
Remote OS version: Linux x64 4.4.0-19041-Microsoft
Remote OS version: Linux x64 3.10.0-957.1.3.el7.x86_64

System Info
Item Value
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 47.66GB (11.68GB free)
Process Argv --crash-reporter-id 70645636-42ae-4864-b371-1810b42a2956
Screen Reader no
VM 0%
Item Value
Remote WSL: CentOS7
OS Linux x64 5.4.72-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)
Memory (System) 37.35GB (17.02GB free)
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 4.4.0-19041-Microsoft
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2901)
Memory (System) 47.66GB (11.67GB free)
VM 0%
Item Value
Remote SSH: dev9.corp.aetheros.com
OS Linux x64 3.10.0-957.1.3.el7.x86_64
CPUs Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz (2 x 2299)
Memory (System) 7.64GB (2.88GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt700cf:30270857
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstry914:30276682
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythontb:30283811
wslfolderdoccf:30282075
vspre833cf:30267465
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820cf:30276953
pythondataviewer:30285071
vscus158cf:30286554

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing extension.pickRemoteNativeProcess and the reported main.js location around line 769, then reproduce the command with the shown pipeTransport and MOTD output. Verify how the remote process list is parsed when MOTD text is present; done means selecting a remote process succeeds without requiring MOTD changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.