-
Notifications
You must be signed in to change notification settings - Fork 510
SIGSEGV when connecting to a remote gdbserver running on Android #229
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
Comments
Seems like it might make sense to turn off the The root of the problem is that gdb is being run as a subprocess of python and not attached directly to a terminal, so the programs being debugged have their output buffered by the kernel. Using something like https://github.com/xtermjs/xterm.js would fix the root of the problem, though that is a significant change to the architecture of gdbgui. |
My understanding is that gdb mi resolves the remote with that context, yeah it makes sense to not repeatedly call Another option is to expose this as a cmdline arg. In my use case, gdbgui gets invoked via a wrapper script that also handles all the gdbserver+adb machinery. |
This should be fixed in gdbgui v0.14. |
Describe the bug
When connecting a remote gdbserver running on Android, gdbgui spams the console with SIGSEGV errors.
This works fine with the gdb terminal client, and disabling "Attempt to flush stdout after each command is run" works around the issue (similarly #195)
The workaround is a little unfortunate, since it makes it harder to deploy gdbgui to other users.
To Reproduce
Steps to reproduce the behavior:
gdbserver
(taken from the NDK) on Androidtarget remote :<PORT>
, the bottom terminal is flooded with SIGSEGV errorsDisabling "Attempt to flush stdout after each command is run" fixes the problem.
Screenshots

Please complete the following information:
gdbgui -v
): 0.13.0.0gdb -v
): GNU gdb (GDB) 7.11pip freeze
):click==6.7
Flask==0.12.4
Flask-Compress==1.4.0
Flask-SocketIO==2.9.6
gdbgui==0.13.0.0
gevent==1.3.6
greenlet==0.4.14
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
pygdbmi==0.8.3.0
Pygments==2.2.0
python-engineio==2.2.0
python-socketio==2.0.0
six==1.11.0
Werkzeug==0.14.1
Additional context
gdbgui spams the bottom console with
The text was updated successfully, but these errors were encountered: