From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 23 05:37:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C485A1065672 for ; Mon, 23 Nov 2009 05:37:19 +0000 (UTC) (envelope-from heliocentric@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id 7DFC28FC19 for ; Mon, 23 Nov 2009 05:37:19 +0000 (UTC) Received: by gxk10 with SMTP id 10so2466152gxk.3 for ; Sun, 22 Nov 2009 21:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=SsMPYrTlYrgxI/+cSMuVuxXoAgRcXvZpovIOCSmRQQo=; b=k6Nrf2TYQGmgQOV/vp4mMz+/edScCfQUkpmkAxdE7v0Ig2cOeyJa+tgxp4kU3tr6su kJrH5jHWghVJhyYCC0RtdZxd2SajkhLket6R39J6mtcNEnioWP7CM0LEeB2EXOP5l2u7 Xb46NJXczi78xYX+CTxDhSAVN6D0MbuVGFljE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=o49sxZqNvNdNUNBPaBHtpXCqJYBo4fZ7+ftmGmiwQqDEK8mH3fRrCI82I2Pz6WdjuH Kr3kuOm8Xx/UomA3OHwUbaIWNWEZ3NI96XHkz0U2DzB5IfoXBbhl82NFdkfPMjE5xG8g ZZ7ax93xFM0daK3xDlbYJAu+TmYP9R2mya1GQ= MIME-Version: 1.0 Sender: heliocentric@gmail.com Received: by 10.150.174.8 with SMTP id w8mr7674739ybe.204.1258953062815; Sun, 22 Nov 2009 21:11:02 -0800 (PST) In-Reply-To: <20091121105244.GA35595@server.vk2pj.dyndns.org> References: <20091119065742.GA28159@logik.internal.network> <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> <20091121105244.GA35595@server.vk2pj.dyndns.org> Date: Mon, 23 Nov 2009 00:11:02 -0500 X-Google-Sender-Auth: 362b78a516240ee5 Message-ID: From: Dylan Cochran To: Peter Jeremy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 05:37:19 -0000 On Sat, Nov 21, 2009 at 5:52 AM, Peter Jeremy wrote: > I did run into problems initially because my i386 userland wasn't > aligned with my amd64 kernel but rebuilding both fixed that (I'm > running 8.0-RC1 and a bit). > > Note that some tools that poke around in kernel innards won't work - > ps and lsof are the most obvious. =A0ktrace works but the resultant > ktrace.out files need to read with an amd64 kdump. A word of caution: not all the ioctl's and setsockopt's have the proper glue code under COMBAT_FREEBSD32. For example, running ifconfig on 7.2 i386-on-amd64 is unable to set an ip address, and syscons ioctls are completely broken. The program will build properly, but will be unreliable at runtime (seemingly out of the blue segfaults, a few cases of sigbus). Especially if they do a blind cast without sanity checking and confinue forward on error. While this may not seem that relevant on a build machine, remember that autoconf generates tiny stub binaries and runs them to determine 'compatibility' for the binary it intends to build. It may feed information that will lead it to making incorrect guesses about the target environment. It's not very common, but it has happened, and can fly under the radar.