From owner-freebsd-amd64@FreeBSD.ORG Fri May 23 23:19:22 2014 Return-Path: Delivered-To: freebsd-amd64@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 ESMTPS id C6A9E11A for ; Fri, 23 May 2014 23:19:22 +0000 (UTC) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "vps.rulingia.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 449782FDD for ; Fri, 23 May 2014 23:19:21 +0000 (UTC) Received: from server.rulingia.com (c220-239-242-83.belrs5.nsw.optusnet.com.au [220.239.242.83]) by vps.rulingia.com (8.14.7/8.14.7) with ESMTP id s4NMqv24074191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 24 May 2014 08:53:02 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.8/8.14.8) with ESMTP id s4NMr0mj014574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 24 May 2014 08:53:00 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.8/8.14.8/Submit) id s4NMr0lc014572 for freebsd-amd64@freebsd.org; Sat, 24 May 2014 08:53:00 +1000 (EST) (envelope-from peter) Date: Sat, 24 May 2014 08:53:00 +1000 From: Peter Jeremy To: freebsd-amd64@freebsd.org Subject: i386 Go programs crash on amd64 Message-ID: <20140523225300.GA14433@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2014 23:19:22 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've been playing with Go (lang/go) and found that i386 Go binaries segfault when run on amd64 (9.x, 10.x or HEAD). I've narrowed it down to the LDT handling but am not sure whether it's on the FreeBSD or Go side. As far as I can see, the i386 binary is correctly calling i386_set_ldt() and the i386_set_ldt() emulation in the amd64 kernel matches the i386 kernel - but the net result doesn't work. Can anyone offer any suggestions as to how to resolve this? --=20 Peter Jeremy --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQJ8BAEBCgBmBQJTf9FLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0blQP/0Y7ad5xiKpiuSWwPTj7ZtNq xBZoDboaLESU9eF6Wz7DEw6+TH1kHlXHGqaTs1aH4wAgjvvuusrb91FlAV1HN0Xy SftQCBuL3xur5YfK1X3RT4UtkTI0UwkzNBkPJ9IyCk8l2jTN5X5lqFm53PURy0FA PxFOwzISYPSaeWZkG4suu6/FiZEaE+RWJBwRjJy76V48/Trrzp2sXZUgsoNXnfbt Tan4jZSwh1HNeIEp+dHNaOGQhKYpXBPYD3BaolhSZF/7MgQola4RVuEK6oMpDfgZ MdrmTwXd/lO8D3RZsY5WDNlnN+1cKN5sW7qSBpukgDWQG+Y1BBsqUMDstKexZNEq 9wEBd2mG0oC4rUbWNKltZkqb1J8bUNAQCM9MCWlKRnX2JfjYoGcbwOd3sZ4OOcW9 v6snv2YpARZr+/+JN7sHtATvEvWu+KeHAmj6qGw6VPKCKkRHGA1kksYC8zGWQ6eJ qoG0KybXcyioix6Df++yk0VkD981dpxwWfN3lfhUFHjanhibJaJFoaikGgbCldOU CK1Ev4tN7SIpbdyinFdlLg6d5h/5zHPUlA8kyHRP60GP7lK6hD4G9vUsVE3AdDR1 3wQcK19Hk5eOhLSKYbX33fCdEpJXiOStwG+lvfZpOJzfyb1wV8n1jZBT+CeOCki+ C4/WKNhcRhWiynPZF45o =F8Vl -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--