qira icon indicating copy to clipboard operation
qira copied to clipboard

QEMU_LD_PREFIX is not correct load the exactly library

Open bananaappletw opened this issue 9 years ago • 9 comments

Test on Ubuntu 15.10 After install qira and execute fetchlib.sh. Then install the gcc-multilib.

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

https://bugs.launchpad.net/qemu/+bug/1531352 Waiting qemu fix this or patch the qemu code

bananaappletw avatar Jan 06 '16 08:01 bananaappletw

this seems to be fixed in upstream

Maroc-OS avatar Feb 05 '16 00:02 Maroc-OS

Actually not. I still suffering.

bananaappletw avatar Feb 25 '16 02:02 bananaappletw

Hummm, it seems related to the binary you are trying to debug. what binary are you trying to qira in?

Maroc-OS avatar Feb 26 '16 01:02 Maroc-OS

http://train.cs.nctu.edu.tw/files/magic The normal 32-bit elf file.

bananaappletw avatar Feb 26 '16 01:02 bananaappletw

You could check out the gitter discussion.

I had dicussed this problem with @nedwill long long ago.

bananaappletw avatar Feb 26 '16 01:02 bananaappletw

hummmm! it works like a charm here :

`merruktechnology@mail:~/qira$ qira ./magic *** program is /home/merruktechnology/qira/magic with hash 7b0e7e7e0211ba733748eb4b5b23f4a3884d2abe **** set QEMU_LD_PREFIX to /home/merruktechnology/qira/libs/i386 **** using /home/merruktechnology/qira/tracers/qemu/qemu-2.1.3/i386-linux-user/qemu-i386 for 0x3 no qira server found, starting it *** deleting old runs **** running /home/merruktechnology/qira/magic **** starting WEB SERVER on 0.0.0.0:3002 Welcome to Magic system! Give me your name(a-z): on 0 going from 1 to 53356...* using base 0 for 0 *** WARNING, changing segment 0x8048000 134515208 done 45.249000 ms *** mapping c637897f06c5c68337dea0f27846b5eb2c323f55 /etc/ld.so.cache sz:0x44e3c off:0x0 @ 0xF6794000 done *** mapping c9a1d9164029fa4472251e0a1a65aba132020f54 /lib/i386-linux-gnu/libc.so.6 sz:0x1aea7c off:0x0 @ 0xF65E5000 done *** mapping c9a1d9164029fa4472251e0a1a65aba132020f54 /lib/i386-linux-gnu/libc.so.6 sz:0x3000 off:0x1a9000 @ 0xF678E000 done

Your name is . Give me something that you want to MAGIC: on 0 going from 53356 to 55136...done 2.122000 ms on 0 going from 55136 to 55256...done 0.154000 ms aaa on 0 going from 55256 to 55413...done 0.216000 ms �߭on 0 going from 55413 to 69216...done 11.628000 ms on 0 going from 69216 to 69253...done 0.028000 ms

`

Maroc-OS avatar Feb 26 '16 03:02 Maroc-OS

What's your distribution? I'm Ubuntu 15.10 Do you install gcc-multilib?

bananaappletw avatar Feb 26 '16 04:02 bananaappletw

yeap and its the same distro "Ubuntu 15.10 x86_64"

Maroc-OS avatar Feb 26 '16 04:02 Maroc-OS

I have the same problem too. After I install g++-multilib, qira work incorrectly!!

DuckLL avatar Jan 05 '17 11:01 DuckLL