Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
893 stars 200 forks source link

execve() Failed #686

Closed cjcox17 closed 6 years ago

cjcox17 commented 7 years ago

Anytime I try to assemble or edit current line, I get a dialog that says execve() Failed. Binary ninja will not save or edit any binaries that I open. There are no errors about it when I run --debug --stderr-log or in the binary ninja gui log. Happens on both the stable and development versions of the personal edition.

psifertex commented 7 years ago

Hmm. what platform are you running on?

We shell out to yasm for x86 shellcode (if you try it on any other architecture I suspect it would work). Can you try manually running it on the command-line? (Check in the install path)

cjcox17 commented 7 years ago

Linux archdesktop 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017 x86_64 GNU/Linux

Just as a note, it does work inside my windows virtual box. I will test this later on my desktop tonight when I get some time. Thanks! Awesome app by the way.

cjcox17 commented 7 years ago

Yasm wasn't installed on my system, after installing it however, it still happens.

✘ desktop@archdesktop  ~/binaryninja  yasm --version yasm 1.3.0 Compiled on Aug 11 2014. Copyright (c) 2001-2014 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary. desktop@archdesktop  ~/binaryninja  file binaryninja binaryninja: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=51d67fc12fdc7ef977acf185172181a840c2e7c3, not stripped, with debug_info desktop@archdesktop  ~/binaryninja  uname -a Linux archdesktop 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017 x86_64 GNU/Linux desktop@archdesktop  ~/binaryninja 

plafosse commented 6 years ago

Unfortunately Arch is not a supported platform and many other linux users use the assembler without issue. So I'm going to close this issue.

psifertex commented 2 months ago

FWIW, you don't need yasm installed. We ship our own. So if it's not finding the one we ship there's something else wrong with permissions, the download was corrupted, or maybe something different with rpath in the executables? Not sure.