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

detach process failed: File not found #17

Open
cwen0 opened this issue Jan 15, 2021 · 0 comments
Open

detach process failed: File not found #17

cwen0 opened this issue Jan 15, 2021 · 0 comments

Comments

@cwen0
Copy link
Member

cwen0 commented Jan 15, 2021

[2021-01-15 09:26:19.390428 +00:00] INFO [toda::ptrace] src/ptrace/mod.rs:309: deteching process 599 failed with error: File not found: /proc/599/stat

Stack backtrace:
   0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
             at ./root/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.31/src/backtrace.rs:26
      toda::ptrace::PtraceManager::detach
             at src/ptrace/mod.rs:86
   1: <toda::ptrace::TracedProcess as core::ops::drop::Drop>::drop::{{closure}}
             at src/ptrace/mod.rs:308
      std::thread::local::LocalKey<T>::try_with
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libstd/thread/local.rs:263
      std::thread::local::LocalKey<T>::with
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libstd/thread/local.rs:239
      <toda::ptrace::TracedProcess as core::ops::drop::Drop>::drop
             at src/ptrace/mod.rs:308
   2: core::ptr::drop_in_place
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/ptr/mod.rs:184
      toda::replacer::mmap_replacer::MmapReplacer::prepare::{{closure}}
             at src/replacer/mmap_replacer.rs:296
      core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/ops/function.rs:275
   3: core::iter::traits::iterator::Iterator::find_map::check::{{closure}}
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/traits/iterator.rs:2258
      core::iter::adapters::filter_try_fold::{{closure}}
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:979
      core::iter::traits::iterator::Iterator::try_fold
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/traits/iterator.rs:1889
      <core::iter::adapters::Filter<I,P> as core::iter::traits::iterator::Iterator>::try_fold
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:1028
      core::iter::traits::iterator::Iterator::find_map
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/traits/iterator.rs:2264
      <core::iter::adapters::FilterMap<I,F> as core::iter::traits::iterator::Iterator>::next
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:1128
      <core::iter::adapters::Map<I,F> as core::iter::traits::iterator::Iterator>::next
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:849
      <core::iter::adapters::fuse::Fuse<I> as core::iter::adapters::fuse::FuseImpl<I>>::next
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/fuse.rs:403
      <core::iter::adapters::fuse::Fuse<I> as core::iter::traits::iterator::Iterator>::next
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/fuse.rs:69
      <core::iter::adapters::flatten::FlattenCompat<I,U> as core::iter::traits::iterator::Iterator>::next
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/flatten.rs:272
      <core::iter::adapters::flatten::FlatMap<I,U,F> as core::iter::traits::iterator::Iterator>::next
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/flatten.rs:55
      itertools::groupbylazy::GroupInner<K,I,F>::next_element
             at ./root/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.9.0/src/groupbylazy.rs:146
      itertools::groupbylazy::GroupInner<K,I,F>::step_current
             at ./root/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.9.0/src/groupbylazy.rs:217
      itertools::groupbylazy::GroupInner<K,I,F>::step
             at ./root/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.9.0/src/groupbylazy.rs:101
      <itertools::groupbylazy::Groups<K,I,F> as core::iter::traits::iterator::Iterator>::next
             at ./root/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.9.0/src/groupbylazy.rs:379
      core::iter::traits::iterator::Iterator::fold
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/traits/iterator.rs:2021
      <core::iter::adapters::FilterMap<I,F> as core::iter::traits::iterator::Iterator>::fold
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:1152
      <core::iter::adapters::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:870
   4: <core::iter::adapters::FilterMap<I,F> as core::iter::traits::iterator::Iterator>::fold
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/adapters/mod.rs:1152
      core::iter::traits::iterator::Iterator::for_each
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/traits/iterator.rs:658
      <hashbrown::map::HashMap<K,V,S> as core::iter::traits::collect::Extend<(K,V)>>::extend
             at ./cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:2578
      <std::collections::hash::map::HashMap<K,V,S> as core::iter::traits::collect::Extend<(K,V)>>::extend
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libstd/collections/hash/map.rs:2427
      <std::collections::hash::map::HashMap<K,V,S> as core::iter::traits::collect::FromIterator<(K,V)>>::from_iter
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libstd/collections/hash/map.rs:2412
      core::iter::traits::iterator::Iterator::collect
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/iter/traits/iterator.rs:1671
      toda::replacer::mmap_replacer::MmapReplacer::prepare
             at src/replacer/mmap_replacer.rs:288
   5: toda::replacer::UnionReplacer::prepare
             at src/replacer/mod.rs:42
   6: toda::resume
             at src/main.rs:101
      toda::main
             at src/main.rs:146
   7: std::rt::lang_start::{{closure}}
             at ./rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libstd/rt.rs:67
   8: std::rt::lang_start_internal::{{closure}}
             at src/libstd/rt.rs:52
      std::panicking::try::do_call
             at src/libstd/panicking.rs:342
      std::panicking::try
             at src/libstd/panicking.rs:319
      std::panic::catch_unwind
             at src/libstd/panic.rs:394
      std::rt::lang_start_internal
             at src/libstd/rt.rs:51
   9: main
  10: <unknown>
  11: _start
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

1 participant