Skip to content

Debugger may cause system errors when command initiative is left in the console #124819

@vincedani

Description

@vincedani

Hi there!

I would like to debug a C++ application (may not be important), so a new console is created as cppdbg: name....
The problem is, if I write a command initiative into that console, then start the debugger, it fails.

Like

$ ^C  /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-2bopttgv.y62
bash: :s^C  /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-2bopttgv.y62 : substitution failed

A bigger problem there if e.g. a remove command initiative is there:

$ rm -rf ./build /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-2bopttgv.y62
rm: cannot remove '/usr/bin/env': Permission denied
rm: cannot remove '/bin/sh': Permission denied

If somebody started the IDE with root privileges, then this would cause an uncomfortable surprise.

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.15.2 (user setup)
  • OS Version: Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    *caused-by-extensionIssue identified to be caused by an extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions