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] [PATCH] Improve guest stack traces

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Improve guest stack traces
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Sat, 14 Jan 2006 01:51:50 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, John Levon <john.levon@xxxxxxx>
Delivery-date: Sat, 14 Jan 2006 09:58: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=UhAtyq9gcVlxrIR/5jusnKsezdoL8pA3mhN8dLhCGnAjtsFvbTWZjTbIDtRj1Py8Lq7NO97Os7MB2woYaO+KCFxUlcNqEvEPMMNfmBdeHUVqxw3iFDKEbNahWlxLaoM17sy7k3BVK/uqhRtqTMkdAZfjlOkyPYRqxX9jhr3vKuY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7a81ab91d9c49d8b8913ecbb63a39693@xxxxxxxxxxxx>
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: <20060113231311.GA18017@xxxxxxxxxxxxxxxxx> <7a81ab91d9c49d8b8913ecbb63a39693@xxxxxxxxxxxx>
Reply-to: kmacy@xxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
And if you're using a compiler that generates symbols that gdb supports, you can get a *lot* more info by using gdb + gdbserver. Writing a script to wrap execing those two and dumping a crashed VMs state would be a fairly trivial exercise.

                   -Kip

On 1/14/06, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:

On 13 Jan 2006, at 23:13, John Levon wrote:

> Add an option to use the frame pointer for guest stack traces.
> For stack dumps, avoid assumptions regarding stack size, and
> continue past unreadable addresses, which helps when a guest
> has overflowed its stack.
>
> Signed-off-by: John Levon <john.levon@xxxxxxx>

Improved guest backtraces belong in the xenctx utility
(tools/xentrace/xenctx.c). It already has the clear advantage that it
can print kernel symbols as well as addresses. The stack dump code in
Xen is mainly for very early crashes in dom0, and it's quite sufficient
for that.

So, if you want a frame-walking mode, put it in xenctx.

  -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel