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

Nvim-gdb hangs on setting checkpoints. #208

Open
Alexey104 opened this issue Sep 7, 2024 · 3 comments
Open

Nvim-gdb hangs on setting checkpoints. #208

Alexey104 opened this issue Sep 7, 2024 · 3 comments

Comments

@Alexey104
Copy link

What are the steps to reproduce this issue?

  1. GdbStart gdb -q program
  2. start
  3. [[Optional]] Do something...
  4. checkpoint

What happens?

Nvim-gdb becomes completely unresponsive to user input. The terminal window shows the standard message checkpoint 1: fork returned pid <pid>, but gdb prompt doesn't appear after that, it is impossible to enter CLI commands anymore, and nvim-gdb commands (GdbNext, GdbStep...) do nothing. After closing nvim, gdb process is still running until force killed. It doesn't always happen, but most of the times.

What were you expecting to happen?

A checkpoint should be created, and nvim-gdb should continue to receive user input.

Any logs, error output, etc?

https://gist.github.com/Alexey104/7812486bb2f6df77140f3c7b5bce52de

@sakhnik
Copy link
Owner

sakhnik commented Sep 7, 2024

I can't reproduce the issue with test/nvim.py.
asciicast

@Alexey104
Copy link
Author

Alexey104 commented Sep 7, 2024

I've just found out that this is only reproducible with gdb 15.1, which is the default version in the Arch repos at the moment. But downgrading to 14.2 solves the problem completely. Just to illustrate the issue, this is gdb 15.1, also reproducible with clean nvim config (test/nvim.py).

2024-09-07.20-45-04.mp4

:

@sakhnik
Copy link
Owner

sakhnik commented Sep 7, 2024

There must be more to it because 15.1 works reliably for me.

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

2 participants