Received: from eggs.gnu.org ([208.118.235.92]:48953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpvv0-0005nN-RI for qemu-devel@nongnu.org; Tue, 01 Jan 2013 02:05:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tpvuw-0000UE-4u for qemu-devel@nongnu.org; Tue, 01 Jan 2013 02:05:46 -0500 Received: from indium.canonical.com ([91.189.90.7]:46823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpvuv-0000UA-Pr for qemu-devel@nongnu.org; Tue, 01 Jan 2013 02:05:42 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Tpvuu-0002dc-L7 for ; Tue, 01 Jan 2013 07:05:40 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 50C142E8084 for ; Tue, 1 Jan 2013 07:05:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Jan 2013 06:56:07 -0000 From: Samuel Seay Sender: bounces@canonical.com References: <20120919105129.11155.13183.malonedeb@gac.canonical.com> Message-Id: <20130101065607.2435.88901.malone@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1052857] Re: qemu-user compiled static for ppc fails Reply-To: Bug 1052857 <1052857@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I ran into this issue also and did a bit of investigating. This is only an issue when ran on a 64bit host. The actual problem line is err |=3D __put_user(h2g(ka->_sa_handler), &sc->handler); inside of linux_user/signal.c. What I am unsure of is when the h2g() macro, the cause of the assert, is valid to be used. In this case, under 64bit, GUEST_BASE has a value (32bit it is 0) but ka->_sa_handler has a low value. Assuming that the low value is a direct result of being a guest address and not a host address then the h2g() shouldn't be called. I removed the macro from that line which kept the assert from appearing but qemu still died after running 'ls'. I am attempting to fix this bug but I have limited understanding of qemu itself so no promises of me doing a fix, let alone a proper fix. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1052857 Title: qemu-user compiled static for ppc fails Status in QEMU: New Bug description: On debian I used debootstrap to set up a powerpc chroot. If I then copy in a statically linked qemu-user ppc binary it will work for some commands in the chroot and fail for others. Steps to reproduce: host$ mkdir powerpc host$ sudo debootstrap --arch=3Dpowerpc --foreign wheezy powerpc http://f= tp.debian.org/debian host$ sudo cp /usr/bin/qemu-ppc-static powerpc/usr/bin/ host$ LANG=3DC sudo chroot powerpc /usr/bin/qemu-ppc-static /bin/bash I have no name!@guest:/# pwd / I have no name!@guest:/# cd home/ I have no name!@guest:/home# ls qemu-ppc-static: /tmp/buildd/qemu-1.1.2+dfsg/linux-user/signal.c:4341: se= tup_frame: Assertion `({ unsigned long __guest =3D (unsigned long)(ka->_sa_= handler) - guest_base; (__guest < (1ul << 32)) && (!reserved_va || (__guest= < reserved_va)); })' failed. I have also built this from the git HEAD sources (hash 6b80f7db8a7f84d21e46d01e30c8497733bb23a0) and I get the same result. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1052857/+subscriptions