All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: xen-devel@lists.xensource.com
Subject: gdbserver-xen x86_64 paravirt guest debugging
Date: Wed, 19 Apr 2006 17:09:51 -0500	[thread overview]
Message-ID: <20060419220951.GS16776@us.ibm.com> (raw)

I've attempted to debug live x86_64 domU domains with little success.
gdbserver-xen segfaults and I've starting running gdb on gdbserver-xen
to see where things are going south.

I kick off the server under gdb, and then run gdb client and remote
attach.  This appears to succeed, and gives me:

[New Thread 0]
[Switching to Thread 0]
0xffffffff8014e258 in softlockup_tick (regs=0xffff880026c6fcd8) at
kernel/softlockup.c:50
50              unsigned long timestamp = per_cpu(timestamp, this_cpu);

But when I ask for a backtrace:

(gdb) bt
#0  0xffffffff8014e258 in softlockup_tick (regs=0xffff880026c6fcd8) at
kernel/softlockup.c:50
Ignoring packet error, continuing...
Reply contains invalid hex digit 116


On the other side (gdbserver-xen) I see:

(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/rharper/work/openhype/xen/unstable/hg/d/tools/debugger/gdb/gdb-6.2.1-linux-x86_64-xen/gdb/gdbserver/gdbserver-xen 127.0.0.1:9999 --attach 1
domain currently paused
Attached; pid = 1
Listening on port 9999
Remote debugging from host 127.0.0.1

Program received signal SIGSEGV, Segmentation fault.
0x00002b2611bf410a in map_domain_va_64 (xc_handle=7, cpu=0, guest_va=0xffffffff80364ed0,
    perm=1) at xc_ptrace.c:295
295         l3p = page_array[l3p];

Some inspection:

(gdb) p l3p
$4 = 796261
(gdb) p nr_pages
$5 = 196608

page_array only has 196k entries AFAICT, so this seems problematic.

Anyone have x86_64 paravirt guest debugging working on latest unstable?

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com

             reply	other threads:[~2006-04-19 22:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19 22:09 Ryan Harper [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-04-19 22:16 gdbserver-xen x86_64 paravirt guest debugging Kamble, Nitin A
2006-04-20 14:31 ` Ryan Harper
2006-04-20 22:23 ` Ryan Harper
2006-04-20 23:53 Kamble, Nitin A

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060419220951.GS16776@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.