qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library
@ 2016-01-06  1:05 bananaapple
  2016-01-06  2:09 ` [Qemu-devel] [Bug 1531352] " bananaapple
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bananaapple @ 2016-01-06  1:05 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

run qemu with QEMU_LD_PREFIX argument will not load the library in the PATH.
Ex: 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.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
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 PATH not work on loading library

Status in QEMU:
  New

Bug description:
  run qemu with QEMU_LD_PREFIX argument will not load the library in the PATH.
  Ex: 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX PATH not work on loading library
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
@ 2016-01-06  2:09 ` bananaapple
  2016-01-06  7:39 ` [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX PATH loading library is not in the correct order bananaapple
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bananaapple @ 2016-01-06  2:09 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  run qemu with QEMU_LD_PREFIX argument will not load the library in the PATH.
- Ex: I use debootstrap to download the library of i386 architecture
+ 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.

-- 
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 PATH not work on loading library

Status in QEMU:
  New

Bug description:
  run qemu with QEMU_LD_PREFIX argument will not load the library 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX PATH loading library is not in the correct order
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
  2016-01-06  2:09 ` [Qemu-devel] [Bug 1531352] " bananaapple
@ 2016-01-06  7:39 ` bananaapple
  2016-01-06  7:55 ` [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH bananaapple
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bananaapple @ 2016-01-06  7:39 UTC (permalink / raw)
  To: qemu-devel

** 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$(�\x04$\x02: 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$(�\x04$\x02: 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$(�\x04$\x02: Error 18446744073549536926

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
  2016-01-06  2:09 ` [Qemu-devel] [Bug 1531352] " bananaapple
  2016-01-06  7:39 ` [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX PATH loading library is not in the correct order bananaapple
@ 2016-01-06  7:55 ` bananaapple
  2016-01-06  8:24 ` bananaapple
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bananaapple @ 2016-01-06  7:55 UTC (permalink / raw)
  To: qemu-devel

** 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$(�\x04$\x02: Error 18446744073549536926
+ Because the order of dynamic linker search the shared library is wrong.
+ When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
+ If the system not loaded correspond with the dynamic linker, it will crash.
+ Code flow:
+ linux-user/main.c: 
+   call loader_exec
+ linuxload.c: 
+   call load_elf_binary
+ elfload.c: 
+   in load_elf_binary function
+   dynamic loader will be elf_interpreter
+ I think the problem should be here.

-- 
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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
  linux-user/main.c: 
    call loader_exec
  linuxload.c: 
    call load_elf_binary
  elfload.c: 
    in load_elf_binary function
    dynamic loader will be elf_interpreter
  I think the problem should be here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
                   ` (2 preceding siblings ...)
  2016-01-06  7:55 ` [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH bananaapple
@ 2016-01-06  8:24 ` bananaapple
  2016-01-06 11:58 ` bananaapple
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bananaapple @ 2016-01-06  8:24 UTC (permalink / raw)
  To: qemu-devel

** 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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
- linux-user/main.c: 
-   call loader_exec
- linuxload.c: 
-   call load_elf_binary
- elfload.c: 
-   in load_elf_binary function
-   dynamic loader will be elf_interpreter
+ linux-user/main.c:
+   call loader_exec
+ linuxload.c:
+   call load_elf_binary
+ elfload.c:
+   in load_elf_binary function
+   dynamic loader will be elf_interpreter
  I think the problem should be here.

** Also affects: gcc-defaults (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: gcc-defaults (Ubuntu)

-- 
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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
  linux-user/main.c:
    call loader_exec
  linuxload.c:
    call load_elf_binary
  elfload.c:
    in load_elf_binary function
    dynamic loader will be elf_interpreter
  I think the problem should be here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
                   ` (3 preceding siblings ...)
  2016-01-06  8:24 ` bananaapple
@ 2016-01-06 11:58 ` bananaapple
  2020-11-19 16:22 ` Thomas Huth
  2021-01-19  4:17 ` Launchpad Bug Tracker
  6 siblings, 0 replies; 8+ messages in thread
From: bananaapple @ 2016-01-06 11:58 UTC (permalink / raw)
  To: qemu-devel

** 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
+ bash 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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
  linux-user/main.c:
    call loader_exec
  linuxload.c:
    call load_elf_binary
  elfload.c:
    in load_elf_binary function
    dynamic loader will be elf_interpreter
  I think the problem should be here.

-- 
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
  bash 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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
  linux-user/main.c:
    call loader_exec
  linuxload.c:
    call load_elf_binary
  elfload.c:
    in load_elf_binary function
    dynamic loader will be elf_interpreter
  I think the problem should be here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
                   ` (4 preceding siblings ...)
  2016-01-06 11:58 ` bananaapple
@ 2020-11-19 16:22 ` Thomas Huth
  2021-01-19  4:17 ` Launchpad Bug Tracker
  6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2020-11-19 16:22 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.

** Changed in: qemu
       Status: New => Incomplete

-- 
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:
  Incomplete

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
  bash 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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
  linux-user/main.c:
    call loader_exec
  linuxload.c:
    call load_elf_binary
  elfload.c:
    in load_elf_binary function
    dynamic loader will be elf_interpreter
  I think the problem should be here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH
  2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
                   ` (5 preceding siblings ...)
  2020-11-19 16:22 ` Thomas Huth
@ 2021-01-19  4:17 ` Launchpad Bug Tracker
  6 siblings, 0 replies; 8+ messages in thread
From: Launchpad Bug Tracker @ 2021-01-19  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
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:
  Expired

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
  bash 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$(�\x04$\x02: Error 18446744073549536926
  Because the order of dynamic linker search the shared library is wrong.
  When your system has /lib32 directory, its priority is higher than the QEMU_LD_PREFIX.
  If the system not loaded correspond with the dynamic linker, it will crash.
  Code flow:
  linux-user/main.c:
    call loader_exec
  linuxload.c:
    call load_elf_binary
  elfload.c:
    in load_elf_binary function
    dynamic loader will be elf_interpreter
  I think the problem should be here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1531352/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-19  4:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-06  1:05 [Qemu-devel] [Bug 1531352] [NEW] QEMU_LD_PREFIX PATH not work on loading library bananaapple
2016-01-06  2:09 ` [Qemu-devel] [Bug 1531352] " bananaapple
2016-01-06  7:39 ` [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX PATH loading library is not in the correct order bananaapple
2016-01-06  7:55 ` [Qemu-devel] [Bug 1531352] Re: QEMU_LD_PREFIX not load correct library order in the PATH bananaapple
2016-01-06  8:24 ` bananaapple
2016-01-06 11:58 ` bananaapple
2020-11-19 16:22 ` Thomas Huth
2021-01-19  4:17 ` Launchpad Bug Tracker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).