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

Agent crashes when attempting to login #143

Open
the-sun-will-rise-tomorrow opened this issue Oct 18, 2023 · 14 comments
Open

Agent crashes when attempting to login #143

the-sun-will-rise-tomorrow opened this issue Oct 18, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@the-sun-will-rise-tomorrow

rbw login fails with rbw login: failed to parse message from agent: EOF while parsing a value at line 1 column 0.

With RUST_BACKTRACE=1 rbw login, in .local/share/rbw/agent.err:

[2023-10-18T20:47:02Z WARN  rbw_agent::agent] couldn't create clipboard context: XCB - couldn't establish conection: DisplayParsingError
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: SystemCall(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" })', src/locked.rs:15:65
stack backtrace:
Warning: using insecure memory!
pinentry-curses: no LC_CTYPE known - assuming UTF-8
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: <rbw::locked::Vec as core::default::Default>::default
   4: rbw::locked::Vec::new
   5: rbw::pinentry::getpin::{{closure}}
   6: rbw_agent::agent::handle_request::{{closure}}
   7: rbw_agent::agent::Agent::run::{{closure}}::{{closure}}
   8: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
   9: tokio::runtime::task::core::Core<T,S>::poll
  10: tokio::runtime::task::harness::Harness<T,S>::poll
  11: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
  12: tokio::runtime::scheduler::multi_thread::worker::Context::run
  13: tokio::runtime::context::scoped::Scoped<T>::set
  14: tokio::runtime::context::runtime::enter_runtime
  15: tokio::runtime::scheduler::multi_thread::worker::run
  16: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  17: tokio::runtime::task::core::Core<T,S>::poll
  18: tokio::runtime::task::harness::Harness<T,S>::poll
  19: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@n-hass
Copy link

n-hass commented Oct 24, 2023

Same issue here on macOS.

@xusiai
Copy link

xusiai commented Nov 19, 2023

Experiencing this as well on NixOS, regardless of whether I manage rbw's config via nix or not.

@Samasaur1
Copy link

I get this same issue on macOS with rbw installed via Nix, though setting RUST_BACKTRACE=1 doesn't give me any more information

@doy doy added the bug Something isn't working label Apr 20, 2024
@doy
Copy link
Owner

doy commented Apr 20, 2024

can you give this a try with version 1.10.0? i updated the dependency in use here, which may help.

@Samasaur1
Copy link

@doy I still see the same error

@Samasaur1
Copy link

and the only entry in agent.err is

WARN  rbw_agent] failed to disable PTRACE_ATTACH, agent memory may be dumpable by other processes: unimplemented on this platform

@doy
Copy link
Owner

doy commented Apr 21, 2024

did this just start happening recently? or has it always crashed?

@Samasaur1
Copy link

For me at least, this has always happened

@doy
Copy link
Owner

doy commented Apr 21, 2024

can you give me the output of ulimit -l and du -sh ~/.cache/rbw (or du -sh ~/Library/Caches/rbw if you're on macos)?

@Samasaur1
Copy link

[sam](~)$ ulimit -l
unlimited
[sam](~)$ du -sh ~/Library/Caches/rbw
  0B	/Users/sam/Library/Caches/rbw

@Samasaur1
Copy link

@doy I noticed that there were some new commits after v1.10.0, so I tried building that version, but still no luck (with the same error)

@doy
Copy link
Owner

doy commented Jul 28, 2024

i'm not sure what is actually going on here, but i've made this functionality optional in version 1.12 - let me know if this fixes the issue

@Samasaur1
Copy link

Still no luck on v1.12.0:

[sam](/tmp)$ clear
[sam](/tmp)$ rm ~/Library/Application\ Support/rbw/agent.*
[sam](/tmp)$ rbw --version
rbw 1.12.0
[sam](/tmp)$ rbw login
rbw login: failed to parse message from agent: EOF while parsing a value at line 1 column 0
[sam](/tmp)$ c ~/Library/Application\ Support/rbw/agent.*
───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /Users/sam/Library/Application Support/rbw/agent.err
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ [2024-07-28T20:04:50Z WARN  rbw_agent] failed to disable PTRACE_ATTACH, agent memory may be dumpable by other processes: unimplemented on this platform
───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /Users/sam/Library/Application Support/rbw/agent.out   <EMPTY>
───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[sam](/tmp)$

@Samasaur1
Copy link

For the record, v1.11.1 works fine on Linux

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

5 participants