From owner-freebsd-amd64@FreeBSD.ORG Wed Jan 25 13:36:40 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C1EF106566C; Wed, 25 Jan 2012 13:36:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0FBB48FC08; Wed, 25 Jan 2012 13:36:40 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id A541646B06; Wed, 25 Jan 2012 08:36:39 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 2643CB95E; Wed, 25 Jan 2012 08:36:39 -0500 (EST) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Wed, 25 Jan 2012 08:36:37 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <201201232217.q0NMHBcK093954@red.freebsd.org> In-Reply-To: <201201232217.q0NMHBcK093954@red.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201201250836.38017.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 25 Jan 2012 08:36:39 -0500 (EST) Cc: freebsd-gnats-submit@freebsd.org, "C. Jullien" Subject: Re: amd64/164425: stat function doesn't 32bit mode on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 13:36:40 -0000 On Monday, January 23, 2012 5:17:11 pm C. Jullien wrote: > > >Number: 164425 > >Category: amd64 > >Synopsis: stat function doesn't 32bit mode on amd64 > >Confidential: no > >Severity: critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Mon Jan 23 22:20:03 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: C. Jullien > >Release: 8.1 and 9.0 > >Organization: > Eligis > >Environment: > FreeBSD freebsd.eligis.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46: > 30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > >Description: > A friend of mine also confirmed this issue I discovered at least on 8.1 and is still present on 9.0-RELEASE. > > The problem is that, when compiled on amd64 but for i686 target, stat function hangs with a core dump. > > $ gcc -m32 -DCOMPAT_32BIT -L/usr/lib32 -B/usr/lib32 > > I don't see where I'm wrong but can't imagine I'm the only one having this issue. Yes, -m32 doesn't work currently as it uses the wrong set of headers (/usr/include/machine references amd64 headers, not i386 headers). -- John Baldwin