** Summary changed: - QEMU_LD_PREFIX PATH not work on loading library + QEMU_LD_PREFIX PATH loading library is not in the correct order
** Description changed: - run qemu with QEMU_LD_PREFIX argument will not load the library in the PATH. + run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. Example: I use debootstrap to download the library of i386 architecture And use -L point to the path. But not load the library from that directory. ** Summary changed: - QEMU_LD_PREFIX PATH loading library is not in the correct order + QEMU_LD_PREFIX not load correct library order in the PATH ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. - Example: I use debootstrap to download the library of i386 architecture - And use -L point to the path. - But not load the library from that directory. + How to reproduce this bug: + ``` + wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh + ./fetchlibs.sh + sudo apt-get install qemu + wget http://train.cs.nctu.edu.tw/files/magic + chmod +x ./magic + qemu-i386 -L /home/apple/libs/i386 /home/apple/magic + ``` ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: - ``` wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh sudo apt-get install qemu wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic - qemu-i386 -L /home/apple/libs/i386 /home/apple/magic - ``` + qemu-i386 -L /home/apple/libs/i386 /home/apple/magic ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: + These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh sudo apt-get install qemu wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh - sudo apt-get install qemu + This is 32bit binary file, wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh This is 32bit binary file, wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic + This is work fine. + But after you install gcc-multilib, it failed. + sudo apt-get install gcc-multilib ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh This is 32bit binary file, wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic - This is work fine. + This is work fine. But after you install gcc-multilib, it failed. sudo apt-get install gcc-multilib + qemu-i386 -L /home/apple/libs/i386 /home/apple/magic ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh This is 32bit binary file, wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic This is work fine. But after you install gcc-multilib, it failed. sudo apt-get install gcc-multilib qemu-i386 -L /home/apple/libs/i386 /home/apple/magic + /home/apple/magic: 0���: ̀Í�: D$(�$: Error 18446744073549536926 ** Description changed: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh This is 32bit binary file, wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic This is work fine. But after you install gcc-multilib, it failed. sudo apt-get install gcc-multilib qemu-i386 -L /home/apple/libs/i386 /home/apple/magic + The following is the error message /home/apple/magic: 0���: ̀Í�: D$(�$: Error 18446744073549536926 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1531352 Title: QEMU_LD_PREFIX not load correct library order in the PATH Status in QEMU: New Bug description: run qemu with QEMU_LD_PREFIX argument will not load correct library order in the PATH. How to reproduce this bug: These command will download the library of other architectures wget https://raw.githubusercontent.com/BinaryAnalysisPlatform/qira/master/fetchlibs.sh ./fetchlibs.sh This is 32bit binary file, wget http://train.cs.nctu.edu.tw/files/magic chmod +x ./magic qemu-i386 -L /home/apple/libs/i386 /home/apple/magic This is work fine. But after you install gcc-multilib, it failed. sudo apt-get install gcc-multilib qemu-i386 -L /home/apple/libs/i386 /home/apple/magic The following is the error message /home/apple/magic: 0���: ̀Í�: D$(�$: Error 18446744073549536926 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions