From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 18 02:01:24 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 88D315F9 for ; Wed, 18 Sep 2013 02:01:24 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 76310242A for ; Wed, 18 Sep 2013 02:01:24 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:3011:e3ac:635b:7610] (unknown [IPv6:2601:9:4d00:119:3011:e3ac:635b:7610]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 6CDA339821 for ; Tue, 17 Sep 2013 19:01:18 -0700 (PDT) From: Rui Paulo Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: mmap on emulated i386 Message-Id: <31F58652-AB49-4B52-91C0-17A017350903@FreeBSD.org> Date: Tue, 17 Sep 2013 19:01:16 -0700 To: FreeBSD Mailing List Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 02:01:24 -0000 Hi, I'm trying to figure out why the following fails when compiled on amd64 = with -m32: mmap(NULL, 0x70000, PROT_READ|PROT_WRITE|PROT_EXEC, = MAP_ANON|MAP_PRIVATE, -1, 0); It returns EINVAL. I looked around everywhere but I couldn't find where = the EINVAL is coming from. The length argument doesn't really make any = difference. At this point I'm thinking it's a bug... -- Rui Paulo