From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 26 14:00:44 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 689BB106566C for ; Fri, 26 Feb 2010 14:00:44 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id EE7218FC20 for ; Fri, 26 Feb 2010 14:00:43 +0000 (UTC) Received: by ewy27 with SMTP id 27so50783ewy.14 for ; Fri, 26 Feb 2010 06:00:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jdxzmLlh8Fe9/3nbFPjGV0MMaKDVa1GxQNJ1mErMh8s=; b=iF08b8yO+aGVh86OJWiV/ypKqeb2GaOgcKNhTWut+zLGWKVU0C31oFJumH3PW8C8UO TbGBodmeUejF14wezUkd3KzM92O7nKdtKrka8Bd8tz5aetKZnKn5lmwMosXlkSUoW96v y+yZ9bXNfKr9u/ffBDt1wzLRb+pBbVTxekpe0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eJN0mEjte31euJePB8iZK9keYSYG36SeHs/Q92mh+XGhGS8KG+MBiM0nqHr/qejymH JOqXq2po84oQmye9BZkuQBQdQ8aeqMF4S+PzZEUsR39yumv8+OUFNdZHbKQtjquVqnID Ael2netBJSxWbqr+KsgcoZfvg15W3oVBCCOKk= MIME-Version: 1.0 Received: by 10.213.96.7 with SMTP id f7mr171700ebn.7.1267192837868; Fri, 26 Feb 2010 06:00:37 -0800 (PST) In-Reply-To: <20100226111216.GE2489@deviant.kiev.zoral.com.ua> References: <1bd550a01002251354v7ea3ede9r458c027b038280fc@mail.gmail.com> <20100226104147.GC2489@deviant.kiev.zoral.com.ua> <1bd550a01002260306t10e1d287wc634e47848020ddc@mail.gmail.com> <20100226111216.GE2489@deviant.kiev.zoral.com.ua> Date: Fri, 26 Feb 2010 15:00:37 +0100 Message-ID: <1bd550a01002260600x4d83d610k3149374143ade77c@mail.gmail.com> From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 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 14:00:44 -0000 On Fri, Feb 26, 2010 at 12:12 PM, Kostik Belousov wrote: > 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 wrote: >> > 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 ? >> >> Oops, sorry. When trying to cat the file for example. In Linux the >> error reported is something like >> "No such process" >> >> > > > 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. Thanks for the clarification. >