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] double fault ...

To: Gerd Knorr <kraxel@xxxxxxxxxxx>
Subject: Re: [Xen-devel] double fault ...
From: Kip Macy <kmacy@xxxxxxxxxx>
Date: Mon, 2 May 2005 09:02:57 -0700 (PDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 May 2005 16:02:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050502155332.GD15699@bytesex>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
It shouldn't matter - you can attach the debugger after crash.


                        -Kip 

On Mon, 2 May 2005, Gerd Knorr wrote:

> On Mon, May 02, 2005 at 04:23:42PM +0100, Keir Fraser wrote:
> > 
> > On 2 May 2005, at 15:51, Gerd Knorr wrote:
> > 
> > >... happens with panics when compiled with debugging.
> > >panic() calls debugger_trap_immediate(), which triggers
> > >do_int3, which calls panic(), which recurses until the
> > >stack is full => bang!
> > 
> > You compile with crash_debug=y?
> 
> Yes.  Mostly to get a xen binary without optimization and with full
> debug info, so I can easily lookup stuff using
>       "objdump -dS xen-syms | less +/<addr>".
> 
> > The intention is that do_int3() will execute DEBUGGER_trap_fatal()
> > before panic(), so you should enter the gdb stub rather than
> > infinitely loop. How is that not occurring?
> 
> I don't actually have a debugger attached, so DEBUGGER_trap_fatal
> aka __trap_to_cdb() instantly returns.
> 
>   Gerd
> 
> 

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

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

<Prev in Thread] Current Thread [Next in Thread>