Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting a subprocess breaks debugoff #3

Open
desbma opened this issue Mar 13, 2024 · 1 comment
Open

Starting a subprocess breaks debugoff #3

desbma opened this issue Mar 13, 2024 · 1 comment

Comments

@desbma
Copy link

desbma commented Mar 13, 2024

Code that calls ptraceme_or_die before starting a subprocess through any mean (ie std::process::Command) will crash.
Simple reproducer:

fn main() {
    debugoff::ptraceme_or_die();

    std::process::Command::new("echo")
        .arg("subprocess")
        .status()
        .unwrap();

    println!("exit");
}

Outputs:

$ cargo run
   Compiling test_debugoff v0.1.0 (/home/desbma/src/test_debugoff)
    Finished dev [unoptimized + debuginfo] target(s) in 0.21s
     Running `target/debug/test_debugoff`
subprocess
zsh: death of child  cargo run
$ echo $?
145

I haven't yet spent time to investigate, although I am willing to help.

@CyanChanges
Copy link

Is this investigated? And is this going to be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants