WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] pdb missing files?

To: "Jonathan M. McCune" <jonmccune@xxxxxxx>
Subject: Re: [Xen-devel] pdb missing files?
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Fri, 30 Sep 2005 13:49:03 -0700
Cc: NAHieu <nahieu@xxxxxxxxx>, Arvind Seshadri <arvinds@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Bryan Parno <parno@xxxxxxx>
Delivery-date: Fri, 30 Sep 2005 20:46:41 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RgSDBPz5a9+kbachXONRc7emZcO9PbZ3jq0l0tDVyyyBX46SjjdOUNkpqHJaSR34iVBNAPEklbh+WJ9PMdEEBLGO5qai8uQCdv1GH7KuGQM/MVYcYgVSFktFqu+Y69FOnpcBOOP81RuJ9wCItge6ZZGF2UazH8swsyE+EKkvg18=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <433DA04C.3000906@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <433CD40E.6030907@xxxxxxx> <5d7aca950509300026w576bd5a5wf8be25374c8706dd@xxxxxxxxxxxxxx> <b1fa29170509300044w47c8de22he6c72c9c98df8b9d@xxxxxxxxxxxxxx> <433D6488.4090400@xxxxxxx> <b1fa29170509301103n6eb596e0i95d16b0d12f9161c@xxxxxxxxxxxxxx> <433DA04C.3000906@xxxxxxx>
Reply-to: Kip Macy <kip.macy@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

The next obstacle is that gdbserver-xen is segfaulting upon connection
from gdb in dom0.  Again, this works great with an unmodified domU.  You
asked me to give the output from the two different runs of gdbserver-xen.

I actually meant when you gave it an invalid domain id, but that isn't a key issue ...

 

#0  0x40021fb4 in map_domain_va () from /usr/lib/libxenctrl.so.3.0
(gdb) bt
#0  0x40021fb4 in map_domain_va () from /usr/lib/libxenctrl.so.3.0
#1  0x4002268a in xc_ptrace () from /usr/lib/libxenctrl.so.3.0
#2  0x0804cb27 in linux_read_memory (memaddr=0, myaddr=0xbff5ab50 "", len=8)
    at ../../../gdb-6.2.1/gdb/gdbserver/linux-xen-low.c:394
#3  0x0804bd41 in read_inferior_memory (memaddr=The value of variable
'memaddr' is distributed across several
locations, and GDB cannot access its value.

That is a rather strange place for it to be blowing up. In the past there were cases where it would blow up in xc_ptrace when it tried to dereference an address that had not been successfully mapped to. In principle using alloca could bite you if len were so long that you ran off your stack, but you have a small stack and you're only reading 8 bytes. I'll see if I can determine any more by spelunking at the assembly level.

Just to confirm that I'm looking at the same code, is your line 394:

       buffer[i] = myptrace (xc_handle, PTRACE_PEEKTEXT, inferior_pid, (PTRACE_ARG3_TYPE) addr, 0);




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>