From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1GaIca-000067-9v for user-mode-linux-devel@lists.sourceforge.net; Wed, 18 Oct 2006 14:06:40 -0700 Received: from saraswathi.solana.com ([198.99.130.12]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1GaIcY-0007Rb-NR for user-mode-linux-devel@lists.sourceforge.net; Wed, 18 Oct 2006 14:06:40 -0700 Date: Wed, 18 Oct 2006 17:05:06 -0400 From: Jeff Dike Message-ID: <20061018210506.GA7541@ccure.user-mode-linux.org> References: <4536495E.7010006@l4x.org> <20061018190957.GG6566@ccure.user-mode-linux.org> <45367D7E.9040609@l4x.org> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <45367D7E.9040609@l4x.org> Subject: Re: [uml-devel] Programs in guest segfault, amd64 host and guest List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Jan Dittmer Cc: user-mode-linux-devel@lists.sourceforge.net 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