From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8EFO-0002ER-84 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 13:13:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8EFG-0006W8-UN for qemu-devel@nongnu.org; Thu, 15 Mar 2012 13:13:53 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:44783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8EFG-0006Ve-Nu for qemu-devel@nongnu.org; Thu, 15 Mar 2012 13:13:46 -0400 Received: by yenr5 with SMTP id r5so3753866yen.4 for ; Thu, 15 Mar 2012 10:13:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4F6212C2.4030104@rambo-mes.net> References: <4F6212C2.4030104@rambo-mes.net> From: Mulyadi Santosa Date: Fri, 16 Mar 2012 00:13:04 +0700 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] qemu gdb issue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jacques Cc: qemu-devel@nongnu.org Hi... On Thu, Mar 15, 2012 at 23:03, Jacques wrote: > I'm running an application in qemu through the userspace qemu-i386 and > attaching to the process with gdb. I have pygdb scripts that then > interact with gdb. > > The issue is that at some point I want to change $eip and redirect > instruction flow. I then set $eip to the value I need which gives me the > following: > > Program received signal SIGSEGV, Segmentation fault. > 0x46367046 in ?? () I am not keen in this kind of situation,but I think you hit "non existing" EIP. By that, I mean maybe you think such EIP truly exist (based on ELF info perhaps?), but in reality since qemu user mode do dynamic translations and not really following ELF offset, you got segfault. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com