Skip to content

Popen CREATE_BREAKAWAY_FROM_JOB in Python while debugging causes permission error (Access Denied) #545

@joseraffucci

Description

@joseraffucci

Issue Type: Bug

Code to reproduce the permissions error:

import subprocess

subprocess.Popen("notepad.exe", creationflags=subprocess.CREATE_BREAKAWAY_FROM_JOB)

Causes a permission error access denied. Running it outside of the debugger works as expected.

VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.21313

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.94GB (15.97GB free)
Process Argv --crash-reporter-id 338c7b88-be14-436e-bdaa-5f135c9b89a1
Screen Reader no
VM 0%
Extensions (12)
Extension Author (truncated) Version
vscode-tailwindcss bra 0.5.9
vscode-eslint dba 2.1.14
gitlens eam 11.2.1
vscode-pull-request-github Git 0.23.1
todo-tree Gru 0.0.196
vscode-docker ms- 1.10.0
python ms- 2021.1.502429796
vscode-pylance ms- 2021.2.3-pre.1
jupyter ms- 2020.12.414227025
autodocstring njp 0.5.4
vetur oct 0.32.0
vscode-yaml red 0.15.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt617cf:30253240
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt600cf:30251589

Metadata

Metadata

Assignees

Labels

P1bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions