From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 11:12:19 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 058F6106564A for ; Fri, 26 Feb 2010 11:12:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 5244C8FC0A for ; Fri, 26 Feb 2010 11:12:17 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o1QBCGZp063950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Feb 2010 13:12:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o1QBCGdT055517; Fri, 26 Feb 2010 13:12:16 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o1QBCG0A055516; Fri, 26 Feb 2010 13:12:16 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 26 Feb 2010 13:12:16 +0200 From: Kostik Belousov To: Fernando Apestegu?a Message-ID: <20100226111216.GE2489@deviant.kiev.zoral.com.ua> References: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> <20100226104147.GC2489@deviant.kiev.zoral.com.ua> <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Uwl7UQhJk99r8jnw" Content-Disposition: inline In-Reply-To: <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linprocfs proc/pid/mem Bad address X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 26 Feb 2010 11:12:19 -0000 --Uwl7UQhJk99r8jnw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 26, 2010 at 12:06:07PM +0100, Fernando Apestegu?a wrote: > On Fri, Feb 26, 2010 at 11:41 AM, Kostik Belousov w= rote: > > On Thu, Feb 25, 2010 at 10:54:02PM +0100, Fernando Apestegu?a wrote: > >> Why /compat/linux/proc//mem always reports "Bad address" ? > >> > >> I'm using 8.0-RELEASE-p2 > >> > >> Thanks in advance. > > > > Reports when ? What is the operation you doing that causes this ? >=20 > Oops, sorry. When trying to cat the file for example. In Linux the > error reported is something like > "No such process" >=20 > > mem provides access to the target process virtual address space as file. Reading from the file at some offset returns corresponding sequence of bytes present in the process virtual address space starting at the offset. Since cat starts read at the file offset 0, and (almost) no processes map the page at the address 0, you get this error. --Uwl7UQhJk99r8jnw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuHrJAACgkQC3+MBN1Mb4iFfQCg06zRONQUpc4PPt5rvhJe3ofp PPYAn3WRfatbWJ53oyU+3F/G/2s8ezZ1 =S4tH -----END PGP SIGNATURE----- --Uwl7UQhJk99r8jnw--