| Questions | Answers
|------------------------------------------------------|--------------------
| OS/arch/bits (mandatory) | Arch Linux x86_64
| File format of the file you reverse (mandatory) | ELF 32-bit LSB shared object ARM, EABI5 version 1 (SYSV), dynamically linked
| Architecture/bits of the file (mandatory) | ARM 32bit
| r2 -v full output, not truncated (mandatory) | radare2 2.6.0 0 @ linux-x86-64 git.2.6.0 commit: HEAD build: 2018-05-23__01:38:10
Successful write
Failed to write
wa mov r0, 1Did you opened qith -w? Did you tried with rasm2?
On 24 May 2018, at 23:34, MaxXor notifications@github.com wrote:
Work environment
Questions Answers
OS/arch/bits (mandatory) Arch Linux x86_64
File format of the file you reverse (mandatory) ELF 32-bit LSB shared object ARM, EABI5 version 1 (SYSV), dynamically linked
Architecture/bits of the file (mandatory) ARM 32bit
r2 -v full output, not truncated (mandatory) radare2 2.6.0 0 @ linux-x86-64 git.2.6.0 commit: HEAD build: 2018-05-23__01:38:10
Expected behaviorSuccessful write
Actual behavior
Failed to write
Steps to reproduce the behavior
Open ELF 32bit ARM shared library
Try to change an instruction with wa mov r0, 1
I can provide the library if needed in private
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
It's also not working when I start radare2 with r2 -A -w <file>... I'm sure it worked before with ARM 32bit files as I've did it before. Never used rasm2.
I've tested patching files of other architectures and it seems to be working. Only ARM seems to be affected.
I've digged a little bit into this issue and I found out that the writing of ARM instructions is working in radare version 2.3.0.
@MaxXor , @radare i think i found the issue here !
$ r2 -A -w arm-bin
[x] Analyze all flags starting with sym. and entry0 (aa)
...
[x] Constructing a function name for fcn.* and sym.func.* functions (aan)
[0x00014348]> wa mov r0, 1
Failed to write
$ r2 -w arm-bin
[0x00014348]> wa mov r0, 1
Written 4 byte(s) (mov r0, 1) = wx 0100a0e3
[0x00014348]> pd 1
0x00014348 0100a0e3 mov r0, 1
cant repro on mach0-x86-64
in fact i cant repro on elf-arm binary either, can you share this bin? or try again?
I've tested again with latest commit https://github.com/radare/radare2/commit/e3d11b989c869f8f0c9ba89b1e2292dc0a6491b8 and now when I run r2 -A -w arm-bin I get a segmentation fault. Will send you the binary later via mail.
@radare Did you try with -A as @sivaramaaa showed?
wtf? which version of r2 do you have? do u have more than one r2 installed? see r2 -V
On 11 Jun 2018, at 11:07, MaxXor notifications@github.com wrote:
I've tested again with latest commit e3d11b9 https://github.com/radare/radare2/commit/e3d11b989c869f8f0c9ba89b1e2292dc0a6491b8 and now when I run r2 -A -w arm-bin I get a segmentation fault. Will send you the binary later via mail.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/radare/radare2/issues/10182#issuecomment-396174824, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-lkryelJRhrbPS4AzvZoZFrYEUXrHks5t7jNpgaJpZM4UNCJ6.
I tested with radare2 2.6.0 release build as you can read in the first post of this issue and now tried again by compiling it from the latest commit where I get the segmentation fault at the end of the analysis.
test against git, we dont fix bugs in releases
On 11 Jun 2018, at 12:04, MaxXor notifications@github.com wrote:
I tested with radare2 2.6.0 release build as you can read in the first post of this issue and now tried again by compiling it from the latest commit where I get the segmentation fault at the end of the analysis.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/radare/radare2/issues/10182#issuecomment-396191105, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-li6qEo6hlz-vSjJsUOOLmzM7JVplks5t7kCvgaJpZM4UNCJ6.
can you share the binary?
On 11 Jun 2018, at 12:04, MaxXor notifications@github.com wrote:
I tested with radare2 2.6.0 release build as you can read in the first post of this issue and now tried again by compiling it from the latest commit where I get the segmentation fault at the end of the analysis.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/radare/radare2/issues/10182#issuecomment-396191105, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-li6qEo6hlz-vSjJsUOOLmzM7JVplks5t7kCvgaJpZM4UNCJ6.
Sent you the library on the mail mentioned on your github profile. Try it with r2 -A -w <file>.
works perfectly fine, the problem is in your installation, run make purge to remove all installations or messy files from old r2 setups and then sys/install.sh
You are right, just tested the latest commit in a clean environment & it's working again.
Most helpful comment
@MaxXor , @radare i think i found the issue here !
With Analysis (not working)
Without analysis (Works fine)