These are chat archives for BinaryAnalysisPlatform/qira

Jan 2016
Jan 01 2016 18:32

I encounter a very strange bug in qira.
I use Ubuntu 15.10.
then I install qira and execute
Everything works fine.
After I install gcc-multilib.
a.out is 32bits elf.

file a.out 
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/, for GNU/Linux 2.6.32, BuildID[sha1]=b87061a2df07fc96d9556d289e26556605f7a838, not stripped

I execute command

qira ./a.out

And error appear, only one line error message.

/home/apple/a.out: ��: ̀Í�: D$($: Error 18446744073549524638

I try to trace the code.
I found qemu is run with QEMU_LD_PREFIX.
It has no relation with the system's library.
I don't think gcc-multilib will affect the qemu exection.
I see middleware/
and uncomment this

print "***",' '.join(eargs)

use this line output to directly run the qemu on terminal and it works!!!
But I use qira call the qemu with QEMU_LD_PREFIX environment variable, it failed.
I am wondering.
Need some help plz.