Comments (4)
Hi, thanks for the report.
This is unfortunately a bug: #138
I'm a little surprised to see this panic while calling Process::myself()
(so seeing the full stack trace would be helpful), but this is a procfs bug that still must be fixed
from procfs.
It seems that backtrace is not working well on Android ?
101|ginkgo:/data/local/tmp $ RUST_BACKTRACE=full ./abcd
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PermissionDenied(Some("/proc/sys/kernel/osrelease"))', /Users/weishu/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/procfs-0.10.1/src/lib.rs:303:34
stack backtrace:
0: 0x59d42c5600 - <unknown>
1: 0x59d42db818 - <unknown>
2: 0x59d42c37ec - <unknown>
3: 0x59d42c6e50 - <unknown>
4: 0x59d42c699c - <unknown>
5: 0x59d42c75d4 - <unknown>
6: 0x59d42c7100 - <unknown>
7: 0x59d42c5a84 - <unknown>
8: 0x59d42c7068 - <unknown>
9: 0x59d42daa64 - <unknown>
10: 0x59d42dabe8 - <unknown>
11: 0x59d42ad04c - <unknown>
12: 0x59d42a59b0 - <unknown>
13: 0x59d42aeed8 - <unknown>
14: 0x59d42af410 - <unknown>
15: 0x59d42c532c - <unknown>
16: 0x59d42af3a0 - <unknown>
17: 0x59d42a34c4 - <unknown>
18: 0x59d42aa338 - <unknown>
19: 0x59d42adcf0 - <unknown>
20: 0x59d42ae024 - <unknown>
21: 0x59d42a0b00 - <unknown>
22: 0x59d42a08e4 - <unknown>
23: 0x59d42a0ac4 - <unknown>
24: 0x59d42a09b4 - <unknown>
25: 0x59d42c78dc - <unknown>
26: 0x59d42a0980 - <unknown>
27: 0x59d42a0be8 - <unknown>
28: 0x79f69cb97c - <unknown>
29: 0x0 - <unknown>
from procfs.
Hello, the latest v0.11.0 release should fix this. Please try it out and let me know if you still have problems. Thanks again for the bug report.
from procfs.
0.11.0 works well, thanks for your great work!
from procfs.
Related Issues (20)
- Does not work when running as 32-bit process on 64-bit machines HOT 3
- Pining of `bitflags` and `hex` does not allow procfs to be used with other crates HOT 3
- Make flate2 as a optional dependencies/feature, current is only used to read /proc/config.gz HOT 2
- examples/mountinfo.rs panic on fs_type: "bpf", should this example skip bpf type in loop? HOT 1
- build.rs erroneous target OS check during cross-compilation HOT 2
- procfs::process::all_processes() can blow "open files" ulimit on a system with a large number of processes HOT 7
- Zombie processes are considered alive HOT 4
- Android: `Iterator::next` for `FDsIter` fails with `bad system call` HOT 3
- No way to ignore `ESRCH` from `Process::stat` HOT 1
- Remove dev dependency with `failure` HOT 2
- MSRV for procfs HOT 2
- Possible vulnerability HOT 1
- Fails to build on FreeBSD HOT 2
- Expose `/proc/<pid>/maps` parsing (and others) HOT 4
- PID should be u32 HOT 2
- Confusing documentation for Stat::comm HOT 3
- Support (limited) use on other platforms HOT 12
- MountInfo does not unescape special characters
- Process uid() fails on some kernels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from procfs.