From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgDLR-00059u-3H for qemu-devel@nongnu.org; Wed, 26 Aug 2009 03:55:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgDLL-0004yF-VC for qemu-devel@nongnu.org; Wed, 26 Aug 2009 03:55:00 -0400 Received: from [199.232.76.173] (port=52764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgDLL-0004xu-PM for qemu-devel@nongnu.org; Wed, 26 Aug 2009 03:54:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:7089) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgDLL-00010e-9t for qemu-devel@nongnu.org; Wed, 26 Aug 2009 03:54:55 -0400 Received: from mail-px0-f184.google.com ([209.85.216.184]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgDLK-0003DJ-3e for qemu-devel@nongnu.org; Wed, 26 Aug 2009 03:54:54 -0400 Received: by pxi14 with SMTP id 14so6833509pxi.19 for ; Wed, 26 Aug 2009 00:54:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <526ddcfc0908251750y232f71e1u481527c591ab50c8@mail.gmail.com> References: <526ddcfc0908251750y232f71e1u481527c591ab50c8@mail.gmail.com> Date: Wed, 26 Aug 2009 14:54:52 +0700 Message-ID: Subject: Re: [Qemu-devel] Qemu user space on linux From: Mulyadi Santosa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Toni Cc: qemu-devel@nongnu.org On Wed, Aug 26, 2009 at 7:50 AM, Toni wrote: > I found that in qemu user space on linux (qemu-i386), if you execute an > executable that contains an "execve" this is execute into qemu-i386 > replacing it. > See "linux-user/syscall.c" around line 4360. How it is possible to fix this > bug? > Antonio Could you precisely tell what you see? I did this in qemu linux user for i386 (version 0.10.5): $ /usr/local/qemu/bin/qemu-i386 -strace ./myexecve /bin/ls 4 last lines showed: 20693 execve("/bin/ls",{"/bin/ls","-l","-s",NULL})total 16 8 -rwxrwxr-x 1 mulyadi mulyadi 5320 Aug 26 14:41 myexecve 4 -rw-rw-r-- 1 mulyadi mulyadi 428 Aug 26 14:41 myexecve.c 4 -rw-rw-r-- 1 mulyadi mulyadi 622 Aug 26 14:39 myexecve.c~ As you can see, it is executing /bin/ls, not qemu-i386. -- regards, Mulyadi Santosa Freelance Linux trainer blog: the-hydra.blogspot.com