From owner-freebsd-emulation@FreeBSD.ORG Thu Apr 29 14:42:08 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7738616A4CE for ; Thu, 29 Apr 2004 14:42:08 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30C6D43D31 for ; Thu, 29 Apr 2004 14:42:06 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i3TLg5xZ003407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Apr 2004 17:42:05 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i3TLfxlb088848; Thu, 29 Apr 2004 17:41:59 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16529.30375.713069.15455@grasshopper.cs.duke.edu> Date: Thu, 29 Apr 2004 17:41:59 -0400 (EDT) To: Robert Swindells In-Reply-To: <20040429211707.491F11F7B@ren.fdy2.net> References: <16529.28277.65629.71283@grasshopper.cs.duke.edu> <20040429211707.491F11F7B@ren.fdy2.net> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: freebsd-emulation@freebsd.org Subject: Re: user mode linux? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 21:42:08 -0000 Robert Swindells writes: > > Andrew Gallatin wrote: > >Alas, its not that simple. mmap() is simply failing. Nothing is > >printed to console. > > Is it trying to mmap() to an address that is already used by malloc > or shared libraries ? According to the debugging output I enabled, its doing: mmap: 0, 1785856, 3, 0x00000001, 3, 0 I think this corresponds to: mmap(NULL, 1785856, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) Ie, mapping an address of 0 shared should get you back whatever the system feels like giving you. In fact, I've written a toy test program to duplicate the system calls involved with this file, and I can't seem to make a toy linux binary fail.. Thats what makes me think I'm missing something earlier on in the trace. Drew