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
I/O errors when connecting to ARM gdbserver #1700
Comments
paste the line you are using to connect to that gdb On 11/18/2014 09:45 PM, msftsecurityteam wrote:
|
is that arm-server vbam? if so, don't blame us for shitty vbam-code |
vbam is a gb/gba emulator that supports gdbserver in theory. but in reallity it does not work with r2 nor real gdb |
Ah, no. This is an actual embedded Linux/ARM box |
@msftsecurityteam Can you bisect that commit which broken this? Because that was working well after we fixed it after Hack.Lu. This commit should be ok bf3c739. See also this #1560 |
Use the r2-v script that comes in radare2-regressions repository to compile and track multiple versions of r2 marking them as good and bad. r2-v log |less Ill probably write a blog post about this
|
@XVilka: actually I am now getting the following errors: [0x40455d6c]> dc gdbserver shows: input_interrupt, count = 1 c = 48 ('0') |
use r2-v init first i use that script by installing it (make install in r2r) use r2-v good and r2-v bad.. while you have another terminal with r2-v thanks On 11/19/2014 06:02 PM, msftsecurityteam wrote:
|
@msftsecurityteam any luck with bisecting? |
@XVilka - im sorry I have taken so long to respond. Unfortunately I have started a new job and I don't have access to all of the ARM hardware I had before :-\ so I cannot test anymore |
The ARM backend is still not fully working, i have been doing some tests on my RPI and opened this issue, so we can keep tracking those errors here too: #1773 |
Getting similar on qemu-arm:
|
amd64 debugger, arm debuggee
|
We already know that gdb backend is not working in all platforms, anyone is going to look at it, should I? This must be ready for the release |
Anyone wants to take care of this issue? The complains about the reg profile is because the total size of the regs differs from the one taken from the backend. See drp for more info.
|
From real Android device |
yes the arm debugger no longer works for any platform right now, neither ios, android, native linux or gdb remote. Looks like all this stuff got broken after the w32 rewrite, im aware of this, and im looking for spare time to fix it.
|
it is working now? |
Not working for me. radare2 1.1.0-git 13146 @ darwin-x86-64 git.1.0.2-202-gdb0f4da PS: used different commands to connect to the gdbserver, both using -D gdb -d gdb://, added -b 32, and also -AA sometimes. None of them works. The target is a Linux 127.0.0.1 3.4.112-g4905d43-mCU #14 PREEMPT Fri Oct 28 11:20:43 CEST 2016 armv5tejl GNU/Linux |
Cant reproduce :? tried with arm32 and arm64 on qemu and real hardware $ r2 -a arm -b 32 -d gdb://host:port the same goes for arm64 if -b 64 is used |
This is an old bug, situation can be different nowadays. Close it if you
can't reproduce.
…On Jan 29, 2017 7:52 PM, "radare" ***@***.***> wrote:
Cant reproduce :? tried with arm32 and arm64 on qemu and real hardware
$ r2 -a arm -b 32 -d gdb://host:port
the same goes for arm64 if -b 64 is used
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1700 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMZ_WBbkvPuMXC1TRbqFz7CJFMWMlhcks5rXLXVgaJpZM4C9WsG>
.
|
Hi, I am running gdbserver built with gdb 7.5, and when trying to connect to a remote gdbserver on an ARM machine I get the following:
ptrace: Input/output error.
input_interrupt, count = 1 c = 36 ('$')
ptrace: Input/output error.
input_interrupt, count = 1 c = 36 ('$')
ptrace: Input/output error.
input_interrupt, count = 1 c = 36 ('$')
ptrace: Input/output error.
input_interrupt, count = 1 c = 36 ('$')
input_interrupt, count = 1 c = 43 ('+')
input_interrupt, count = 1 c = 36 ('$')
input_interrupt, count = 1 c = 103 ('g')
input_interrupt, count = 1 c = 35 ('#')
input_interrupt, count = 1 c = 54 ('6')
input_interrupt, count = 1 c = 55 ('7')
input_interrupt, count = 1 c = 36 ('$')
input_interrupt, count = 1 c = 103 ('g')
input_interrupt, count = 1 c = 35 ('#')
input_interrupt, count = 1 c = 54 ('6')
input_interrupt, count = 1 c = 55 ('7')
input_interrupt, count = 1 c = 36 ('$')
input_interrupt, count = 1 c = 118 ('v')
input_interrupt, count = 1 c = 67 ('C')
and this repeats on the gdbserver side.
Radare2 side shows:
[0x4041fd6c]> dcs
Running child until next syscall
r_debug_reg: error reading registers
r_debug_reg: error reading registers
r_debug_reg: error reading registers
r_debug_reg: error reading registers
r_debug_reg: error reading registers
r_debug_reg: error reading registers
r_debug_reg: error reading registers
r_debug_reg: error reading registers
The text was updated successfully, but these errors were encountered: