-
Notifications
You must be signed in to change notification settings - Fork 823
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
GDB: Cannot continue after attaching to process #204
Comments
We recently made many improvements to the ptrace system call that gdb uses. One of the next insider flights will have much better gdb support. |
Great. Will you post these releases here on Github? Or what is the best way to receive notifications of bash improvements in the next buiild? |
Yes. I believe the current plan is to post a "what's new in build #####" type post when new flights are released. |
Thanks! I'm looking forward to the updated GDB support :-) I'm able to attach to some (simple) programs. I'm specifically unable to attach to any program that uses threads. Here's a minimal reproducer, which I've posted elsewhere before but am forwarding here to help keep bug reports all in the same place:
If I compile this program as a Linux binary with gcc and try to run it under gdb, I get:
Anyway, one more test case for you. Not sure if you need it, but, here you go in case it's useful. |
ping, update: The reproducer above still fails for me under build 14342. It seems that the GDB improvements above either haven't been shipped yet, or don't cover this use case. |
@aseering - Yes, this specific scenario has not been enabled yet. We are currently investigating it. Stay tuned! |
Just an update: This still doesn't work with build 14361. Another specific use case: I was looking into PulseAudio's behavior in #486, trying to see exactly why it opens a SOCK_DGRAM socket and whether it could be avoided by a configuration option. I was able to break at the |
@aseering - If you are referring to AF_UNIX\SOCK_DGRAM, then that's accurate. It's not yet implemented. |
@rgraebert - Could we ask you to retry this issue on build 14936+ as it may have been fixed. Thanks. |
I see this working on my latest build (with ptrace fix related to other issue that I should be checking in shortly). |
@misenesi -- this is still an issue; did the fix miss Creator's? |
Hm: I tried my simple reproducer above against the latest Insider build, and it no longer reproduces. But the application that I'm actually trying to debug (which is not public) is still failing. I'm working on a standalone reproducer but don't yet have one. |
This one is dangling. The OP problem up top was almost certainly addressed in 15063 if not earlier. The CPU-bound scenario didn't make Fall Creators 16299. Also present in Fall Creators but currently addressed as of 17017 is #2333. We'll call #2333 and the CPU-bound scenario the same for the sake of argument; either way they are both addressed in this cycle. If there are other problems with |
I trying to debug a problem with my deb package, but gdb is not being helpful.
I can attach to the process shown by PS, but once I try to continue I get:
Continuing.
pthread_cond_wait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
185 in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
Couldn't write debug register: Invalid argument.
When I ask gdb to "run" and replying yes to "the program being debugged has been started already. Start from beginning", the terminal freezes.
The text was updated successfully, but these errors were encountered: