[oe-commits] Laurentiu Palcu : qemu.bbclass: fix segfaults when running through pseudo

git at git.openembedded.org git at git.openembedded.org
Thu Feb 7 23:39:13 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 688e9485980de0f29aa00e24ce53a3efd3a3a7cc
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=688e9485980de0f29aa00e24ce53a3efd3a3a7cc

Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date:   Thu Feb  7 16:13:37 2013 +0000

qemu.bbclass: fix segfaults when running through pseudo

qemu user binaries sometimes segfault when running them through pseudo.
So, set PSEUDO_UNLOAD to 1 before running any qemu binary.

[YOCTO #3788]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/qemu.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index cd2e323..8b03926 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -34,5 +34,5 @@ def qemu_run_binary(data, rootfs_path, binary):
     library_path = rootfs_path + data.getVar("base_libdir", True) + ":" + \
                    rootfs_path + data.getVar("libdir", True)
 
-    return qemu_binary + " " + dynamic_loader + " --library-path " + library_path \
+    return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + dynamic_loader + " --library-path " + library_path \
            + " " + rootfs_path + binary





More information about the Openembedded-commits mailing list