Open rgnter opened 2 years ago
@rgnter could you please retry with the 2.0.4-rc2 prerelease? There were some important GDB fixes in it. There is a chance it is fixed. https://github.com/rizinorg/cutter/releases/tag/v2.0.4-rc2
Does not work with version you have provided me with.
I have compiled cutter and found the issue:
The DebugActions::onAttachedRemoteDebugger
is for some unknown reason to me, being called twice.
DebugActions::remoteDialog
is nullptr(and the destructor has not been called), causing crash.remoteDialog
is not nullptr, as expected.A simple null check in the function fixes everything.
Fixed in PR #2830
The issue still occurs for me:
Remote debugging from host 127.0.0.1
[remote] readchar: readchar: Got EOF
[remote] getpkt: [getpkt: discarding char '�']
Remote side has terminated connection. GDBserver will reopen the connection.
Environment information
Describe the bug Communication with gdb server fails(due to protocol error?) and cutter tries to proceed with debugging but runs into segfault.
Gdb server from winbuilds(arch x64) ran with command
gdbserver --remote-debug 127.0.0.1:53535 file.exe
(target executable arch is x32)outputs following:
To Reproduce Steps to reproduce the behavior:
Expected behavior Debugger should successfuly connect and proceed with debugging.
Additional context Dump: crash.zip