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

Fix sporadic bug in the write_ptrace test #116

Closed
nbaksalyar opened this issue Sep 27, 2020 · 0 comments
Closed

Fix sporadic bug in the write_ptrace test #116

nbaksalyar opened this issue Sep 27, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nbaksalyar
Copy link
Member

It looks like a race condition that hasn't been observed in local environments yet.
The error occurs in the write_memory_ptrace test:

---- target::linux::writemem::tests::write_memory_ptrace stdout ----

thread 'target::linux::writemem::tests::write_memory_ptrace' panicked at 'called `Result::unwrap()` on an `Err` value: Sys(EPERM)', src/target/linux/writemem.rs:292:91

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:

    target::linux::writemem::tests::write_memory_ptrace

A possible strategy to find the root case:

  1. Replicate the Travis CI environment (same Docker env settings and capabilities).
  2. Set a breakpoint on the if let Err(Sys(EPERM)) = result { ... } condition.
  3. Run the test repeatedly until the breakpoint is hit, and observe the local state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant