benfred / remoteprocess

Cross platform process information in Rust
MIT License
56 stars 29 forks source link

Failed to get backtrace NixError(EPERM) #67

Open wasd96040501 opened 1 year ago

wasd96040501 commented 1 year ago
cargo run --example trace --features unwind

When I run this command, I got this error. Anyone can help?

    Finished dev [unoptimized + debuginfo] target(s) in 4.02s
    Running `target/debug/examples/trace`
children []
Thread 4116226 - running
Failed to get backtrace NixError(EPERM)

My system:

➜  remoteprocess git:(master) uname -a
Linux n37-132-231 5.4.56.bsk.10-amd64 #5.4.56.bsk.10 SMP Debian 5.4.56.bsk.10 Fri Sep 24 12:17:03 UTC  x86_64 GNU/Linux
benfred commented 1 year ago

Are you running in a docker container?

If you're not in docker - does running this as sudo get over the permissions issue?

wasd96040501 commented 1 year ago

Yes, I am running in a docker container.