All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Dittmer <jdi@l4x.org>
To: Jeff Dike <jdike@addtoit.com>
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 23:25:18 +0200	[thread overview]
Message-ID: <45369BBE.9040100@l4x.org> (raw)
In-Reply-To: <20061018210506.GA7541@ccure.user-mode-linux.org>

Jeff Dike wrote:
> 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

Well tomorrow perhaps. I've very little time currently :-(

> 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.

As I wrote in the original message: Debian/etch amd64 host+guest,
running btlaunchmany (from the bittorrent package). I can put you
the compressed root + kernel somewhere if that helps. It's roughly
100mb.

Jan

-------------------------------------------------------------------------
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

  reply	other threads:[~2006-10-18 21:26 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
2006-10-18 21:25       ` Jan Dittmer [this message]
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=45369BBE.9040100@l4x.org \
    --to=jdi@l4x.org \
    --cc=jdike@addtoit.com \
    --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.