From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 24 07:59:36 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 72F4787C for ; Thu, 24 Oct 2013 07:59:36 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from ibiza.webweaving.org (ibiza.webweaving.org [204.109.56.32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 197C622D2 for ; Thu, 24 Oct 2013 07:59:35 +0000 (UTC) Received: from pikmeer.webweaving.org (pikmeer.webweaving.org [178.18.23.51]) by ibiza.webweaving.org (8.14.7/8.14.7) with ESMTP id r9O7xJwu011696; Thu, 24 Oct 2013 07:59:19 GMT (envelope-from dirkx@webweaving.org) Received: from [192.168.189.36] (nat.net.ipw-berlin.de [217.89.118.250]) (authenticated bits=0) by pikmeer.webweaving.org (8.14.7/8.14.7) with ESMTP id r9O7xHhQ037759 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 24 Oct 2013 07:59:19 GMT (envelope-from dirkx@webweaving.org) X-Authentication-Warning: pikmeer.webweaving.org: Host nat.net.ipw-berlin.de [217.89.118.250] claimed to be [192.168.189.36] Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: FoxPro on FreeBSD From: Dirk-Willem van Gulik In-Reply-To: <8A799DDB-3D5C-4418-B064-A2B7821EE0F2@dragondata.com> Date: Thu, 24 Oct 2013 09:59:26 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <36B00CF4-E8C5-4339-8A35-148F5E707353@webweaving.org> References: <52687ED8.6080309@mindslayer.net> <9B89077C-6BE7-49F1-9F22-19FAD9F6C3ED@dragondata.com> <5268B62B.3000104@delphij.net> <8A799DDB-3D5C-4418-B064-A2B7821EE0F2@dragondata.com> To: Kevin Day X-Mailer: Apple Mail (2.1510) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (ibiza.webweaving.org [204.109.56.32]); Thu, 24 Oct 2013 07:59:20 +0000 (UTC) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (pikmeer.webweaving.org [178.18.23.51]); Thu, 24 Oct 2013 07:59:19 +0000 (UTC) Cc: Xin Li , d@delphij.net, "freebsd-hackers@freebsd.org Hackers" , Puppet Master 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: Thu, 24 Oct 2013 07:59:36 -0000 On 24 Oct 2013, at 08:37, Kevin Day wrote: > On Oct 24, 2013, at 12:54 AM, Xin Li wrote: >=20 >> On 10/23/13, 8:32 PM, Kevin Day wrote: >>> I did some debugging, and watched how the process was getting >>> launched, and I've managed to get it to load! >>>=20 >>> The problem was that COFF files expect to be mapped into memory at >>> address 0, something that processes are no longer allowed to do. ... > Nothing is returning any errors, but the .text session isn=92t getting = mapped to the desired location (0x0). If map_at_zero is set to 0, the = process=92s vm_map has min_offset set to PAGE_SIZE instead of 0.=20 ... > Also to clarify my original posting, COFF itself isn=92t the issue = here, just that this specific binary wants its .text section to begin at = a virtual address below 0x1000.=20 Thanks for getting to the bottom of this - may be good to indeed make = the error a lot more human readable - I had the same issue with an old = modified RSA BSafe library - and spend ages looking in the wrong place = for that sigfault. Dw.=