rust-lang / rust-lang/cargo

In windows, the program by cargo run called don't have JOB_OBJECT_LIMIT_BREAKAWAY_OK flag

Open
#4,841 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-custom-subcommands C-bug Command-run O-windows S-accepted
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

My app needs to create a child process with CREATE_BREAKAWAY_FROM_JOB flag, but the program by cargo run called don't have JOB_OBJECT_LIMIT_BREAKAWAY_OK flag, so I got deny error.

see https://msdn.microsoft.com/en-US/library/ms684863

I have to change cargo run to cargo build && .\target\debug\app.exe to fix this.

Is it a feature, or a bug?

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 reproducing the Windows behavior with cargo run and compare it with cargo build && .\target\debug\app.exe; consult the linked MSDN documentation for the required job-object flag. Trace the cargo run process-launch entry point and verify that a successful fix allows the child process to use CREATE_BREAKAWAY_FROM_JOB without the deny error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
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.