Skip to content

&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n" #4471

@fpvision

Description

@fpvision

Type: Debugger

Describe the bug
yet an other: "&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n""

  • OS and Version:
    Kubuntu 18.04

  • VS Code Version:
    1.39.2

  • C/C++ Extension Version:
    0.26.0

  • A clear and concise description of what the bug is.

I just updated vscode to 1.39.2 and starting getting this error, all extensions are updated
when I start debugging gdb (Ubuntu 8.1-0ubuntu3.1) crash with this message

&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
[1] + Segmentation fault (core dumped) "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-40rq0xbq.sbb" 1>"/tmp/Microsoft-MIEngine-Out-vbc3vyru.9xq"

To Reproduce
press F5 to start debugging

the console reports the mentioned error.

Please include a code sample and launch.json configuration.

Launch.json:

"type" and "request" are Grayed out

{
	"configurations": [
		{
			"name": "(gdb) Launch",
			"type": "cppdbg",
			"request": "launch",
			"program": "${workspaceFolder}/build/Robovator2",
			"args": [],
			"stopAtEntry": true,
			"cwd": "${workspaceFolder}",
			"environment": [],
			"externalConsole": true,
			"MIMode": "gdb",
			"setupCommands": [
				{
					"description": "Enable pretty-printing for gdb",
					"text": "-enable-pretty-printing",
					"ignoreFailures": true
				}
			]
		}
	]
}

Steps to reproduce the behavior:
Debug-> start Debugging (F5)

There are no files /tmp/Microsoft-MIEngine* at all, and the /tmp directory has rights rwrwrwrw

lars@lars-ThinkPad-W520:~$ ls -l /tmp/Microsoft*            
ls: cannot access '/tmp/Microsoft*': No such file or directory
lars@lars-ThinkPad-W520:~$ ls -ld /tmp  
drwxrwxrwt 26 root root 36864 Oct 21 16:45 /tmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions