Comments (4)
The timeout is caused by this test case:
Lines 403 to 445 in 7d537c0
It can be reproduced by:
cargo test -- --nocapture register::regs::tests::test_push_regs_void_sysnum_sleep_test
from proot-rs.
fixed in #14
from proot-rs.
It seems that /bin/sleep
uses syscall CLOCK_NANOSLEEP
while the code capture syscall NANOSLEEP
only:
Line 412 in 7d537c0
Therefore, the process will not exit until 9999 seconds.
from proot-rs.
Another issue is that cancel_syscall()
is implemented by set SysNum
to VOID
Lines 268 to 272 in 7d537c0
while the VOID
is defined as 0
Line 11 in 7d537c0
which is exactly is the system call number of READ
system call in x86_64 linux:
It seems that there is no way to cancel a syscall using ptrace.
Another way is to use an unused system call number(e.g. u64::MAX
). In this case, the system call will fail.
from proot-rs.
Related Issues (20)
- Add support for Android platform and other architectures (e.g. arm, aarch64) HOT 9
- Rewrite loader in rust
- Failed to execute statically linked binaries HOT 2
- Binding a file to dir/file will result in a ENOTDIR: Not a directory HOT 2
- Trailing slash is removed by proot-rs HOT 2
- A call to unshare(CLONE_FS) from tracee may break the emulation of cwd. HOT 1
- Processing the result of getdents64()
- thread 'main' panicked at 'get stopped tracee' HOT 2
- Document Usage in README.md file
- Update Dockerfile with Android SDK HOT 8
- Publish static binaries for each GitHub Release HOT 10
- According to the proot manual, the --bind option should support the ! character to avoid dereference the guest location.
- docker-compose error: want driver overlay2, got devicemapper
- proot-rs --version doesn't show the version number HOT 1
- Generate a changelog
- Cannot run Debian in Termux HOT 1
- Generate man page
- Integrate SonarCloud
- Unable to run the ./proot-rs application in termux HOT 10
- compilation fails on riscv64
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 proot-rs.