From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGiwX-0004kX-Qi for qemu-devel@nongnu.org; Wed, 06 Jan 2016 02:55:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGiwU-0006GD-GZ for qemu-devel@nongnu.org; Wed, 06 Jan 2016 02:55:41 -0500 Received: from indium.canonical.com ([91.189.90.7]:42038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGiwU-0006FT-7O for qemu-devel@nongnu.org; Wed, 06 Jan 2016 02:55:38 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aGiwT-00036y-Mt for ; Wed, 06 Jan 2016 07:55:37 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A21B32E80C2 for ; Wed, 6 Jan 2016 07:55:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 06 Jan 2016 07:39:55 -0000 From: bananaapple Sender: bounces@canonical.com References: <20160106010526.4703.56064.malonedeb@chaenomeles.canonical.com> Message-Id: <20160106073955.27906.37281.launchpad@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX PATH loading library is not in the correct order Reply-To: Bug 1531352 <1531352@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** 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 PA= TH. + 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=EF=BF=BD=EF=BF=BD=EF=BF=BD: =CD=80=C3=8D=EF=BF=BD: D= $(=EF=BF=BD=04$=02: 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=EF=BF=BD=EF=BF=BD=EF=BF=BD: =CD=80=C3=8D=EF=BF=BD: D= $(=EF=BF=BD=04$=02: 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=EF=BF=BD=EF=BF=BD=EF=BF=BD: =CD=80=C3=8D=EF=BF=BD: D= $(=EF=BF=BD=04$=02: Error 18446744073549536926 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions