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

Locks up #16

Closed
jtgd opened this issue Dec 29, 2019 · 1 comment
Closed

Locks up #16

jtgd opened this issue Dec 29, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@jtgd
Copy link

jtgd commented Dec 29, 2019

It's been crashing for me lately. Locks up (display won't update), no response to keys, 100% CPU on one core, Ctrl-C won't stop it, kill -SIGHUP will. Usually it runs for days before this happens, but just now it was less than an hour from startup so I suppose it's random. It's been doing this for a few months. Is there any info I can collect to help you?

I'm running this in a tmux window. Linux kernel 5.1.5.

@epilys
Copy link
Owner

epilys commented Feb 3, 2020

Hello @jtgd, my apologies for not replying earlier. I had intended to do so but honestly just forgot.

I tried letting it run for days as you did back when you reported this but I wasn't able to reproduce this so I'm afraid you would have to give me some info on this first. Fortunately it's simple:

  1. Build and run the debug build (cargo run). It will be noticeably slower but it will most probably be still fast enough to be usable. It might idle on 10-20% of CPU though.
  2. Wait for it to hang
  3. When it hangs, attach with gdb (ie rust-gdb --pid=$(pgrep bb)). If successful bb will be stopped (process state T).
  4. Usually you would share a core dump, but this would mean I would see all of the procfs data in the memory. Instead print a backtrace (bt), and copy paste it here. That should hopefully be enough.
  5. Run kill to stop the process. (by the way, Ctrl-C not working is a bug. I hope I fix a push for this asap, thank you)
  6. Run quit.

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

2 participants