From: Jeff Dike <jdike@addtoit.com>
To: Jan Dittmer <jdi@l4x.org>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Programs in guest segfault, amd64 host and guest
Date: Wed, 18 Oct 2006 17:05:06 -0400 [thread overview]
Message-ID: <20061018210506.GA7541@ccure.user-mode-linux.org> (raw)
In-Reply-To: <45367D7E.9040609@l4x.org>
On Wed, Oct 18, 2006 at 09:16:14PM +0200, Jan Dittmer wrote:
> This is 100% reproducible here. Perfect test case. How to debug?
You want to dig into the code and see what's wrong? Put a breakpoint
on the force_sig_info(SIGSEGV, ...) in segv(). Then find the faulting
instruction -
RIP is regs.skas.regs[16]
pid = cpu_tasks[0].pid
Look in the host's /proc/$pid/maps for the page containing RIP
add uml_physmem to the offset in column 3 - that's the
physical page containing RIP
add the RIP page offset to that to get the actual physical
address for RIP
disassemble the range of memory around it - I usually do 10 -
20 bytes before it to ~10 bytes after
see that the asm looks sane, if not, bump the start of the
disassembly by a byte in either direction until it does
see what the instruction at RIP is - if it involves a gs:
reference, then it's very likely a NPTL problem
If you don't want to do that, tell me what to yum, and how to run
whatever it is, and I'll look at it.
Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2006-10-18 21:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-18 15:33 [uml-devel] Programs in guest segfault, amd64 host and guest Jan Dittmer
2006-10-18 19:09 ` Jeff Dike
2006-10-18 19:16 ` Jan Dittmer
2006-10-18 21:03 ` Nikola Ciprich
2006-10-18 21:05 ` Jeff Dike [this message]
2006-10-18 21:25 ` Jan Dittmer
2006-10-20 16:33 ` Jeff Dike
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=20061018210506.GA7541@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=jdi@l4x.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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.