From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 02:19:00 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9EA1D16A421; Sun, 3 Jun 2007 02:19:00 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 71C0313C45A; Sun, 3 Jun 2007 02:19:00 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l532Ixrl017131; Sat, 2 Jun 2007 22:18:59 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l532Ix8R046219; Sat, 2 Jun 2007 22:18:59 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 956FA73068; Sat, 2 Jun 2007 22:18:59 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070603021859.956FA73068@freebsd-current.sentex.ca> Date: Sat, 2 Jun 2007 22:18:59 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 02:19:00 -0000 TB --- 2007-06-03 01:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-03 01:40:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-03 01:40:00 - cleaning the object tree TB --- 2007-06-03 01:40:40 - checking out the source tree TB --- 2007-06-03 01:40:40 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-03 01:40:40 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-03 01:51:16 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-03 01:51:16 - cd /src TB --- 2007-06-03 01:51:16 - /usr/bin/make -B buildworld >>> World build started on Sun Jun 3 01:51:18 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] ===> lib/bind/bind9 (depend) rm -f .depend mkdep -f .depend -a -DVERSION='"9.4.1"' -DHAVE_CONFIG_H -DLIBINTERFACE=30 -DLIBREVISION=3 -DLIBAGE=0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR='"/var"' -DNS_SYSCONFDIR='"/etc/namedb"' -DNAMED_CONFFILE='"/etc/namedb/named.conf"' -DRNDC_CONFFILE='"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE='"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9/.. -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../dns -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccc/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccfg/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/unix/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/pthreads/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include -I/src/lib/bind/bind9/../isc -I/src/lib/bind/bind9/../../../contrib/bind9/lib/lwres/unix/include -I/s rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/bind/bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/version.c In file included from /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include/isc/refcount.h:23, from /src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dns/acl.h:39, from /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c:38: /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/atomic.h:28:2: error: #error "impossible case. check build configuration" mkdep: compile failed *** Error code 1 Stop in /src/lib/bind/bind9. *** Error code 1 Stop in /src/lib/bind. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-03 02:18:59 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-03 02:18:59 - ERROR: failed to build world TB --- 2007-06-03 02:18:59 - tinderbox aborted TB --- 0.92 user 3.75 system 2338.50 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 09:48:16 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22F6616A468; Sun, 3 Jun 2007 09:48:16 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id EFA6113C448; Sun, 3 Jun 2007 09:48:15 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l539mFBC028155; Sun, 3 Jun 2007 05:48:15 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l539mF4G030493; Sun, 3 Jun 2007 05:48:15 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id CA1FB73068; Sun, 3 Jun 2007 05:48:14 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070603094814.CA1FB73068@freebsd-current.sentex.ca> Date: Sun, 3 Jun 2007 05:48:14 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 09:48:16 -0000 TB --- 2007-06-03 09:10:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-03 09:10:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-03 09:10:00 - cleaning the object tree TB --- 2007-06-03 09:10:15 - checking out the source tree TB --- 2007-06-03 09:10:15 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-03 09:10:15 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-03 09:20:38 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-03 09:20:38 - cd /src TB --- 2007-06-03 09:20:38 - /usr/bin/make -B buildworld >>> World build started on Sun Jun 3 09:20:39 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] ===> lib/bind/bind9 (depend) rm -f .depend mkdep -f .depend -a -DVERSION='"9.4.1"' -DHAVE_CONFIG_H -DLIBINTERFACE=30 -DLIBREVISION=3 -DLIBAGE=0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR='"/var"' -DNS_SYSCONFDIR='"/etc/namedb"' -DNAMED_CONFFILE='"/etc/namedb/named.conf"' -DRNDC_CONFFILE='"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE='"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9/.. -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../dns -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccc/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccfg/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/unix/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/pthreads/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include -I/src/lib/bind/bind9/../isc -I/src/lib/bind/bind9/../../../contrib/bind9/lib/lwres/unix/include -I/s rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/bind/bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/version.c In file included from /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include/isc/refcount.h:23, from /src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dns/acl.h:39, from /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c:38: /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/atomic.h:28:2: error: #error "impossible case. check build configuration" mkdep: compile failed *** Error code 1 Stop in /src/lib/bind/bind9. *** Error code 1 Stop in /src/lib/bind. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-03 09:48:14 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-03 09:48:14 - ERROR: failed to build world TB --- 2007-06-03 09:48:14 - tinderbox aborted TB --- 0.19 user 0.88 system 2293.70 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 15:54:18 2007 Return-Path: X-Original-To: amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F057116A46B for ; Sun, 3 Jun 2007 15:54:18 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.freebsd.org (Postfix) with ESMTP id 6B6E013C468 for ; Sun, 3 Jun 2007 15:54:18 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 8088F6658; Sun, 3 Jun 2007 19:26:54 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 5C53865D9; Sun, 3 Jun 2007 19:26:54 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.14.1/8.14.1) id l53FQ7hK047259; Sun, 3 Jun 2007 19:26:07 +0400 (MSD) (envelope-from ru) Date: Sun, 3 Jun 2007 19:26:07 +0400 From: Ruslan Ermilov To: Doug Barton , FreeBSD Tinderbox Message-ID: <20070603152607.GA41397@rambler-co.ru> References: <20070603094814.CA1FB73068@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20070603094814.CA1FB73068@freebsd-current.sentex.ca> User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: No virus found Cc: amd64@FreeBSD.org, current@FreeBSD.org Subject: Re: [head tinderbox] failure on amd64/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: Sun, 03 Jun 2007 15:54:19 -0000 On Sun, Jun 03, 2007 at 05:48:14AM -0400, FreeBSD Tinderbox wrote: > TB --- 2007-06-03 09:10:00 - tinderbox 2.3 running on freebsd-current.sen= tex.ca > TB --- 2007-06-03 09:10:00 - starting HEAD tinderbox run for amd64/amd64 > TB --- 2007-06-03 09:10:00 - cleaning the object tree > TB --- 2007-06-03 09:10:15 - checking out the source tree > TB --- 2007-06-03 09:10:15 - cd /tinderbox/HEAD/amd64/amd64 > TB --- 2007-06-03 09:10:15 - /usr/bin/cvs -f -R -q -d/home/ncvs update -P= d -A src > TB --- 2007-06-03 09:20:38 - building world (CFLAGS=3D-O2 -pipe) > TB --- 2007-06-03 09:20:38 - cd /src > TB --- 2007-06-03 09:20:38 - /usr/bin/make -B buildworld > >>> World build started on Sun Jun 3 09:20:39 UTC 2007 > >>> Rebuilding the temporary build tree > >>> stage 1.1: legacy release compatibility shims > >>> stage 1.2: bootstrap tools > >>> stage 2.1: cleaning up the object tree > >>> stage 2.2: rebuilding the object tree > >>> stage 2.3: build tools > >>> stage 3: cross tools > >>> stage 4.1: building includes > >>> stage 4.2: building libraries > [...] > =3D=3D=3D> lib/bind/bind9 (depend) > rm -f .depend > mkdep -f .depend -a -DVERSION=3D'"9.4.1"' -DHAVE_CONFIG_H -DLIBINTERFA= CE=3D30 -DLIBREVISION=3D3 -DLIBAGE=3D0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS= _LOCALSTATEDIR=3D'"/var"' -DNS_SYSCONFDIR=3D'"/etc/namedb"' -DNAMED_CONFFIL= E=3D'"/etc/namedb/named.conf"' -DRNDC_CONFFILE=3D'"/etc/namedb/rndc.conf"' = -DRNDC_KEYFILE=3D'"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9/.. -I/src/l= ib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind= 9/../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bind/bind9/../../..= /contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../dns -I/src/lib/bind= /bind9/../../../contrib/bind9/lib/isccc/include -I/src/lib/bind/bind9/../..= /../contrib/bind9/lib/isccfg/include -I/src/lib/bind/bind9/../../../contrib= /bind9/lib/isc/unix/include -I/src/lib/bind/bind9/../../../contrib/bind9/li= b/isc/pthreads/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc= /include -I/src/lib/bind/bind9/../isc -I/src/lib/bind/bind9/../../../contri= b/bind9/lib/lwres/unix/include -I/s > rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/bi= nd/bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/in= clude -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include /= src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/lib/bind/b= ind9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bind/bind9/..= /../../contrib/bind9/lib/bind9/version.c > In file included from /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/= include/isc/refcount.h:23, > from /src/lib/bind/bind9/../../../contrib/bind9/lib/dns/= include/dns/acl.h:39, > from /src/lib/bind/bind9/../../../contrib/bind9/lib/bind= 9/check.c:38: > /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/ato= mic.h:28:2: error: #error "impossible case. check build configuration" > mkdep: compile failed > *** Error code 1 >=20 I fixed this by the following patch: %%% Index: lib/bind/config.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/lib/bind/config.mk,v retrieving revision 1.17 diff -u -p -r1.17 config.mk --- lib/bind/config.mk 2 Jun 2007 23:19:55 -0000 1.17 +++ lib/bind/config.mk 3 Jun 2007 14:23:13 -0000 @@ -63,12 +63,10 @@ CFLAGS+=3D -I${LIB_BIND_DIR} .endif =20 # Use the right version of the atomic.h file from lib/isc -.if ${MACHINE_ARCH} =3D=3D "amd64" -ISC_ATOMIC_ARCH=3D x86_64 +.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "i386" +ISC_ATOMIC_ARCH=3D x86_32 .elif ${MACHINE_ARCH} =3D=3D "arm" ISC_ATOMIC_ARCH=3D mips -.elif ${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "i386/pc98" -ISC_ATOMIC_ARCH=3D x86_32 .else ISC_ATOMIC_ARCH=3D ${MACHINE_ARCH} .endif %%% Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 17:08:30 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5365A16A41F; Sun, 3 Jun 2007 17:08:30 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 2C37613C43E; Sun, 3 Jun 2007 17:08:30 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l53H8TLf043067; Sun, 3 Jun 2007 13:08:29 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l53H8T3r046956; Sun, 3 Jun 2007 13:08:29 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id E45BB73068; Sun, 3 Jun 2007 13:08:28 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070603170828.E45BB73068@freebsd-current.sentex.ca> Date: Sun, 3 Jun 2007 13:08:28 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner5 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 17:08:30 -0000 TB --- 2007-06-03 16:30:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-03 16:30:01 - starting HEAD tinderbox run for amd64/amd64 TB --- 2007-06-03 16:30:01 - cleaning the object tree TB --- 2007-06-03 16:30:18 - checking out the source tree TB --- 2007-06-03 16:30:18 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2007-06-03 16:30:18 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-03 16:40:32 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-03 16:40:32 - cd /src TB --- 2007-06-03 16:40:32 - /usr/bin/make -B buildworld >>> World build started on Sun Jun 3 16:40:33 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] ===> lib/bind/bind9 (depend) rm -f .depend mkdep -f .depend -a -DVERSION='"9.4.1"' -DHAVE_CONFIG_H -DLIBINTERFACE=30 -DLIBREVISION=3 -DLIBAGE=0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR='"/var"' -DNS_SYSCONFDIR='"/etc/namedb"' -DNAMED_CONFFILE='"/etc/namedb/named.conf"' -DRNDC_CONFFILE='"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE='"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9/.. -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../dns -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccc/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccfg/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/unix/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/pthreads/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include -I/src/lib/bind/bind9/../isc -I/src/lib/bind/bind9/../../../contrib/bind9/lib/lwres/unix/include -I/s rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/bind/bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/version.c In file included from /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include/isc/refcount.h:23, from /src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dns/acl.h:39, from /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c:38: /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/atomic.h:28:2: error: #error "impossible case. check build configuration" mkdep: compile failed *** Error code 1 Stop in /src/lib/bind/bind9. *** Error code 1 Stop in /src/lib/bind. *** Error code 1 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-03 17:08:28 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-03 17:08:28 - ERROR: failed to build world TB --- 2007-06-03 17:08:28 - tinderbox aborted TB --- 0.28 user 0.78 system 2307.42 real http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 17:18:36 2007 Return-Path: X-Original-To: amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E471016A469 for ; Sun, 3 Jun 2007 17:18:36 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 8707813C4C9 for ; Sun, 3 Jun 2007 17:18:36 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 22036 invoked by uid 399); 3 Jun 2007 16:51:55 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 3 Jun 2007 16:51:55 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <4662F1A8.70109@FreeBSD.org> Date: Sun, 03 Jun 2007 09:51:52 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: Ruslan Ermilov References: <20070603094814.CA1FB73068@freebsd-current.sentex.ca> <20070603152607.GA41397@rambler-co.ru> In-Reply-To: <20070603152607.GA41397@rambler-co.ru> X-Enigmail-Version: 0.95.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: amd64@FreeBSD.org, FreeBSD Tinderbox , current@FreeBSD.org Subject: Re: [head tinderbox] failure on amd64/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: Sun, 03 Jun 2007 17:18:37 -0000 Ruslan Ermilov wrote: > I fixed this by the following patch: Thanks for this, and the advice about the ARCH variables for pc98. I was going by the list of KNOWN_ARCHES in src/Makefile.inc1, but I should probably have looked closer. Doug -- This .signature sanitized for your protection From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 17:51:36 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 206AF16A421; Sun, 3 Jun 2007 17:51:36 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id F1DCE13C43E; Sun, 3 Jun 2007 17:51:35 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.05) with ESMTP id l53HpZU6003722 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 3 Jun 2007 10:51:35 -0700 X-Auth-Received: from [192.168.10.45] (c-67-166-149-71.hsd1.ca.comcast.net [67.166.149.71]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l53HpYap020168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 3 Jun 2007 10:51:35 -0700 Message-ID: <4662FFA5.4000602@u.washington.edu> Date: Sun, 03 Jun 2007 10:51:33 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: FreeBSD Tinderbox References: <20070603170828.E45BB73068@freebsd-current.sentex.ca> In-Reply-To: <20070603170828.E45BB73068@freebsd-current.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.6.3.102838 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='SUPERLONG_LINE 0.05, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: amd64@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/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: Sun, 03 Jun 2007 17:51:36 -0000 FreeBSD Tinderbox wrote: > TB --- 2007-06-03 16:30:01 - tinderbox 2.3 running on freebsd-current.s= entex.ca > TB --- 2007-06-03 16:30:01 - starting HEAD tinderbox run for amd64/amd6= 4 > TB --- 2007-06-03 16:30:01 - cleaning the object tree > TB --- 2007-06-03 16:30:18 - checking out the source tree > TB --- 2007-06-03 16:30:18 - cd /tinderbox/HEAD/amd64/amd64 > TB --- 2007-06-03 16:30:18 - /usr/bin/cvs -f -R -q -d/home/ncvs update = -Pd -A src > TB --- 2007-06-03 16:40:32 - building world (CFLAGS=3D-O2 -pipe) > TB --- 2007-06-03 16:40:32 - cd /src > TB --- 2007-06-03 16:40:32 - /usr/bin/make -B buildworld > =20 >>>> World build started on Sun Jun 3 16:40:33 UTC 2007 >>>> Rebuilding the temporary build tree >>>> stage 1.1: legacy release compatibility shims >>>> stage 1.2: bootstrap tools >>>> stage 2.1: cleaning up the object tree >>>> stage 2.2: rebuilding the object tree >>>> stage 2.3: build tools >>>> stage 3: cross tools >>>> stage 4.1: building includes >>>> stage 4.2: building libraries >>>> =20 > [...] > =3D=3D=3D> lib/bind/bind9 (depend) > rm -f .depend > mkdep -f .depend -a -DVERSION=3D'"9.4.1"' -DHAVE_CONFIG_H -DLIBINTER= FACE=3D30 -DLIBREVISION=3D3 -DLIBAGE=3D0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 = -DNS_LOCALSTATEDIR=3D'"/var"' -DNS_SYSCONFDIR=3D'"/etc/namedb"' -DNAMED_C= ONFFILE=3D'"/etc/namedb/named.conf"' -DRNDC_CONFFILE=3D'"/etc/namedb/rndc= =2Econf"' -DRNDC_KEYFILE=3D'"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9= /.. -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src= /lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bin= d/bind9/../../../contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../d= ns -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isccc/include -I/src/= lib/bind/bind9/../../../contrib/bind9/lib/isccfg/include -I/src/lib/bind/= bind9/../../../contrib/bind9/lib/isc/unix/include -I/src/lib/bind/bind9/.= =2E/../../contrib/bind9/lib/isc/pthreads/include -I/src/lib/bind/bind9/..= /../../contrib/bind9/lib/isc/include -I/src/lib/bind/bind9/../isc -I/src/= lib/bind/bind9/../../../contrib/bind9/lib/lwres/unix/include -I/s > rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/= bind/bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind= 9/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/inc= lude /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/li= b/bind/bind9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bin= d/bind9/../../../contrib/bind9/lib/bind9/version.c > In file included from /src/lib/bind/bind9/../../../contrib/bind9/lib/is= c/include/isc/refcount.h:23, > from /src/lib/bind/bind9/../../../contrib/bind9/lib/dn= s/include/dns/acl.h:39, > from /src/lib/bind/bind9/../../../contrib/bind9/lib/bi= nd9/check.c:38: > /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/a= tomic.h:28:2: error: #error "impossible case. check build configuration"= > mkdep: compile failed > *** Error code 1 > > Stop in /src/lib/bind/bind9. > *** Error code 1 > > Stop in /src/lib/bind. > *** Error code 1 > > Stop in /src/lib. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > TB --- 2007-06-03 17:08:28 - WARNING: /usr/bin/make returned exit code = 1=20 > TB --- 2007-06-03 17:08:28 - ERROR: failed to build world > TB --- 2007-06-03 17:08:28 - tinderbox aborted > TB --- 0.28 user 0.78 system 2307.42 real > > > http://tinderbox.des.no/tinderbox-head-HEAD-amd64-amd64.full Is there a reason why this line of code is invalid for amd64 (from=20 /usr/src/contrib/bind9/lib/isc/x86_64/include/isc/atomic.h:25-28)? #ifdef ISC_PLATFORM_USEGCCASM /* We share the gcc-version with x86_32 */ #error "impossible case. check build configuration" After doing some searching, all that that macro does is use says the = OS can use gcc asm instructions. -Garrett From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 22:20:52 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C458716A507 for ; Sun, 3 Jun 2007 22:20:52 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 74BF913C45E for ; Sun, 3 Jun 2007 22:20:49 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 23921 invoked by uid 399); 3 Jun 2007 22:20:48 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 3 Jun 2007 22:20:48 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <46633EBF.4080209@FreeBSD.org> Date: Sun, 03 Jun 2007 15:20:47 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: Garrett Cooper References: <20070603170828.E45BB73068@freebsd-current.sentex.ca> <4662FFA5.4000602@u.washington.edu> In-Reply-To: <4662FFA5.4000602@u.washington.edu> X-Enigmail-Version: 0.95.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: amd64@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/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: Sun, 03 Jun 2007 22:20:52 -0000 Garrett Cooper wrote: > Is there a reason why this line of code is invalid for amd64 (from > /usr/src/contrib/bind9/lib/isc/x86_64/include/isc/atomic.h:25-28)? > > #ifdef ISC_PLATFORM_USEGCCASM > > /* We share the gcc-version with x86_32 */ > #error "impossible case. check build configuration" > > After doing some searching, all that that macro does is use says the > OS can use gcc asm instructions. Yeah, I looked at that header and asked myself the same question. I'm going to follow up with the ISC folks on that issue. Meanwhile I finally got access to an amd64 machine that I could build the port on (our reference system is literally FUBAR), and it looks like things are in better shape than I feared. Ruslan's suggestion of using the x86_32 atomic.h header that I already committed turns out to be how the port does it, and the other generated headers look good, so the build should be fine now. If anyone could confirm that with sources that include v. 1.18 of src/lib/bind/config.mk the world actually builds, I'd appreciate it. If you could do some rudimentary testing of the results, I'd be eternally grateful. :) FWIW, I relied on the fact that the bind94 port builds just fine on our platforms to convince me that things would be fine for the base. While that seems to have worked for most of the cases, it turns out to have not been a good assumption to make. I apologize for the inconvenience that I created. Mea culpa, Doug -- This .signature sanitized for your protection From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 3 23:22:19 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37DC516A421; Sun, 3 Jun 2007 23:22:19 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id EFEBA13C489; Sun, 3 Jun 2007 23:22:18 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.05) with ESMTP id l53NMIPg026317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 3 Jun 2007 16:22:18 -0700 X-Auth-Received: from [192.168.10.45] (c-67-166-149-71.hsd1.ca.comcast.net [67.166.149.71]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l53NMHFd002507 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 3 Jun 2007 16:22:18 -0700 Message-ID: <46634D28.8060503@u.washington.edu> Date: Sun, 03 Jun 2007 16:22:16 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Doug Barton References: <20070603170828.E45BB73068@freebsd-current.sentex.ca> <4662FFA5.4000602@u.washington.edu> <46633EBF.4080209@FreeBSD.org> In-Reply-To: <46633EBF.4080209@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.6.3.160256 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: amd64@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/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: Sun, 03 Jun 2007 23:22:19 -0000 Doug Barton wrote: > Garrett Cooper wrote: > >> Is there a reason why this line of code is invalid for amd64 (from >> /usr/src/contrib/bind9/lib/isc/x86_64/include/isc/atomic.h:25-28)? >> >> #ifdef ISC_PLATFORM_USEGCCASM >> >> /* We share the gcc-version with x86_32 */ >> #error "impossible case. check build configuration" >> >> After doing some searching, all that that macro does is use says the >> OS can use gcc asm instructions. >> > > Yeah, I looked at that header and asked myself the same question. I'm > going to follow up with the ISC folks on that issue. > > Meanwhile I finally got access to an amd64 machine that I could build > the port on (our reference system is literally FUBAR), and it looks > like things are in better shape than I feared. Ruslan's suggestion of > using the x86_32 atomic.h header that I already committed turns out to > be how the port does it, and the other generated headers look good, so > the build should be fine now. If anyone could confirm that with > sources that include v. 1.18 of src/lib/bind/config.mk the world > actually builds, I'd appreciate it. If you could do some rudimentary > testing of the results, I'd be eternally grateful. :) > > FWIW, I relied on the fact that the bind94 port builds just fine on > our platforms to convince me that things would be fine for the base. > While that seems to have worked for most of the cases, it turns out to > have not been a good assumption to make. I apologize for the > inconvenience that I created. > > > Mea culpa, > > Doug Ok, I'll give it a shot now Doug. Thanks! -Garrett From owner-freebsd-amd64@FreeBSD.ORG Mon Jun 4 02:52:55 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4AD5416A468; Mon, 4 Jun 2007 02:52:55 +0000 (UTC) (envelope-from wkwu@csie.nctu.edu.tw) Received: from mailgate.csie.nctu.edu.tw (mailgate.csie.nctu.edu.tw [140.113.209.7]) by mx1.freebsd.org (Postfix) with ESMTP id EB01213C484; Mon, 4 Jun 2007 02:52:54 +0000 (UTC) (envelope-from wkwu@csie.nctu.edu.tw) Received: from ccbsd4.csie.nctu.edu.tw (wkwu@ccbsd4.csie.nctu.edu.tw [140.113.209.64]) by mailgate.csie.nctu.edu.tw (8.13.8/8.13.4) with ESMTP id l542eaZW084857; Mon, 4 Jun 2007 10:40:36 +0800 (CST) (envelope-from wkwu@ccbsd4.csie.nctu.edu.tw) Received: (from wkwu@localhost) by ccbsd4.csie.nctu.edu.tw (8.13.8/8.13.8/Submit) id l542cODL013511; Mon, 4 Jun 2007 10:38:24 +0800 (CST) (envelope-from wkwu) Date: Mon, 4 Jun 2007 10:38:24 +0800 From: James To: Mark Linimon Message-ID: <20070604023824.GA83067@csie.NCTU.edu.tw> References: <200706021928.l52JSl4h039048@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706021928.l52JSl4h039048@freefall.freebsd.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-amd64@FreeBSD.org, wkwu.amd64@csie.nctu.edu.tw Subject: Re: amd64/71644: [panic] amd64 5.3-BETA4 crash when heavy load 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: Mon, 04 Jun 2007 02:52:55 -0000 I think the problem can be closed. :-) On Sat, Jun 02, 2007 at 07:28:47PM +0000, Mark Linimon wrote: > Synopsis: [panic] amd64 5.3-BETA4 crash when heavy load > > State-Changed-From-To: open->feedback > State-Changed-By: linimon > State-Changed-When: Sat Jun 2 19:28:20 UTC 2007 > State-Changed-Why: > Is this still a problem with recent versions of FreeBSD? > > > Responsible-Changed-From-To: freebsd-amd64->linimon > Responsible-Changed-By: linimon > Responsible-Changed-When: Sat Jun 2 19:28:20 UTC 2007 > Responsible-Changed-Why: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=71644 From owner-freebsd-amd64@FreeBSD.ORG Mon Jun 4 11:08:20 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68B2B16A4D8 for ; Mon, 4 Jun 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFD913C46C for ; Mon, 4 Jun 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l54B8Jl8037442 for ; Mon, 4 Jun 2007 11:08:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l54B8Iep037438 for freebsd-amd64@FreeBSD.org; Mon, 4 Jun 2007 11:08:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Jun 2007 11:08:18 GMT Message-Id: <200706041108.l54B8Iep037438@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 04 Jun 2007 11:08:20 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/89202 amd64 [ufs] [panic] Kernel crash when accessing filesystem w o amd64/112222 amd64 [libc] 32-bit libc incorrectly converts some FP number 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/73322 amd64 [msdosfs] [hang] unarchiving /etc to msdosfs locks up o amd64/74747 amd64 System panic on shutdown when process will not die o amd64/76136 amd64 system halts before reboot o amd64/78406 amd64 [panic]AMD64 w/ SCSI: issue 'rm -r /usr/ports' and sys o amd64/80691 amd64 amd64 kernel hangs on load o amd64/82425 amd64 [fxp] fxp0: device timeout, fxp interface dies on 5.4/ o amd64/83005 amd64 Memory Occupied during installation of the FreeBSD 5.4 f amd64/84832 amd64 Installation crashes just at boot AMD64/ Version 5.4 o amd64/85451 amd64 [hang] 6.0-BETA3 lockups on AMD64 (PREEMPTION only) o amd64/86080 amd64 [radeon] [hang] radeon DRI causes system hang on amd64 o amd64/86503 amd64 [atapicam] [panic] k3b crash the system like hardware o amd64/87258 amd64 [smp] [boot] cannot boot with SMP and Areca ARC-1160 r o amd64/87305 amd64 [smp] Dual Opteron / FreeBSD 5 & 6 / powerd results in o amd64/87316 amd64 [vge] "vge0 attach returned 6" on FreeBSD 6.0-RC1 amd6 o amd64/87689 amd64 [powerd] [hang] powerd hangs SMP Opteron 244 5-STABLE o amd64/87977 amd64 [busdma] [panic] amd64 busdma dflt_lock called (by ata f amd64/88568 amd64 [panic] 6.0-RELEASE install cd does not boot with usb o amd64/88790 amd64 kernel panic on first boot (after the FreeBSD installa o amd64/89501 amd64 System crashes on install using ftp on local subnet o amd64/89503 amd64 Cant Boot Installation Disk o amd64/89546 amd64 [geom] GEOM error o amd64/89550 amd64 [sym] [patch] sym0: VTOBUS failed (6.0 Release) o amd64/91405 amd64 [asr] [panic] Kernel panic caused by asr on 6.0-amd64 o amd64/91492 amd64 BTX halted o amd64/92337 amd64 [em] FreeBSD 6.0 Release Intel Pro 1000 MT em1 no buff o amd64/92889 amd64 [libc] xdr double buffer overflow o amd64/93961 amd64 [busdma] Problem in bounce buffer handling in sys/amd6 o amd64/94677 amd64 panic in amd64 install at non-root user creation o amd64/94989 amd64 BTX Halts on Sun Fire X2100 w/6.1-BETA4 (amd64) and 5. o amd64/95414 amd64 kernel crashes during install o amd64/95888 amd64 kernel: ad2: TIMEOUT - WRITE_DMA retrying on HP DL140G a amd64/96981 amd64 reproducible instant reboot by unprivileged user o amd64/97075 amd64 Panic, Trap 12 o amd64/97337 amd64 [dri] xorg reboots system if dri module is enabled o amd64/102122 amd64 6.1-RELEASE amd64 Install Media panics on boot. s amd64/104311 amd64 ports/wine should be installable on amd64 o amd64/105514 amd64 FreeBSD/amd64 - Fails to boot on HP Pavilion dv8000 La o amd64/105531 amd64 [sata] gigabyte GA-M51GM-S2G / nVidia nForce 430 - doe o amd64/105629 amd64 [re] TrendNet TEG-BUSR 10/100/1000 disables itself on o amd64/106604 amd64 saslauthd crashes with signal 6 on FreeBSD 6.2-PREREL o amd64/106918 amd64 [re] Asus P5B with internal RealTek PCIe Ethernet gets o amd64/107345 amd64 [panic] Kernel Panic/Crash on dd if=/dev/ad4 of=/dev/a o amd64/108861 amd64 [nve] nve(4) driver on FreeBSD 6.2 AMD64 does not work f amd64/109584 amd64 zdump doesn't work o amd64/110655 amd64 [threads] 32 bit threaded applications crash on amd64 f amd64/111337 amd64 [hang] The system freezes when large file is transferr o amd64/111955 amd64 [install] Install CD boot panic due to missing BIOS sm o amd64/111992 amd64 BTX failed - HP Laptop dv2315nr s gnu/112215 amd64 [patch] gcc(1): "gcc -m32" attempts to link against 64 o amd64/112677 amd64 [aac] Adaptec 4805SAS causes 6.2 (AMD64) to panic (amd f amd64/112828 amd64 Complete data loss after upgrade 6.1 -> 6.2 (Amd64) o amd64/113021 amd64 [re] ASUS M2A-VM onboard NIC does not work o amd64/113130 amd64 [sata] no sata drive found (regression) 53 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/74608 amd64 [mpt] [hang] mpt hangs 5 minutes when booting o amd64/74811 amd64 [nfs] df, nfs mount, negative Avail -> 32/64-bit confu s amd64/85273 amd64 FreeBSD (NetBSD or OpenBSD) not install on laptop Comp o amd64/88730 amd64 kernel panics during booting from the installation CD o amd64/91195 amd64 FreeBSD 6.0(amd64) and Asus A8R-MVP a amd64/92527 amd64 [ciphy.c] ][patch] no driver for "CICADA VSC 8201 Giga a amd64/93002 amd64 amd64 (6.0) coredumps at unpredictable times a amd64/93090 amd64 [nve] NIC on GA-K8NF-9 motherboard is recognized, but o amd64/97489 amd64 [ata] nForce 410 ATA controller dma time out (ASUS K8N o amd64/100326 amd64 [fdc] /dev/fd0 not created after installation FreeBSD o amd64/100838 amd64 [powerd] FreeBSD 6.0/6.1 kernel panics when booting wi f amd64/101132 amd64 [smp] Incorrect cpu idle and usage statistics in top a o amd64/101248 amd64 vi(1) can crash in ncurses(3) on amd64 o amd64/102716 amd64 ex with no argument in an xterm gets SIGSEGV o amd64/103259 amd64 [ar] Cannot use ataraid on nvidia nForce4+amd64 o amd64/106186 amd64 [panic] panic in swap_pager_swap_init (amd64/smp/6.2-p o amd64/107858 amd64 ASRock Conroe-945G-DVI motherboard: non-working sound f amd64/108345 amd64 6.2-* GENERIC will not boot Intel PD EMT64 w/ ACPI o amd64/110599 amd64 [geli] geli attach to gmirror device hangs and cannot o amd64/111096 amd64 motherboard ASRock AM2NF6G-VSTA not supported f amd64/113111 amd64 Potentially wrong instructions will be produced for EM o amd64/113232 amd64 [mfi] [patch] mfi(4) patch to enable megacli(8) on Del 22 problems total. From owner-freebsd-amd64@FreeBSD.ORG Mon Jun 4 16:59:02 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F93216A421; Mon, 4 Jun 2007 16:59:02 +0000 (UTC) (envelope-from ambrisko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id DBA4B13C45B; Mon, 4 Jun 2007 16:59:01 +0000 (UTC) (envelope-from ambrisko@FreeBSD.org) Received: from freefall.freebsd.org (ambrisko@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l54Gx1cU083865; Mon, 4 Jun 2007 16:59:01 GMT (envelope-from ambrisko@freefall.freebsd.org) Received: (from ambrisko@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l54Gx1dJ083861; Mon, 4 Jun 2007 16:59:01 GMT (envelope-from ambrisko) Date: Mon, 4 Jun 2007 16:59:01 GMT From: Doug Ambrisko Message-Id: <200706041659.l54Gx1dJ083861@freefall.freebsd.org> To: ambrisko@FreeBSD.org, freebsd-amd64@FreeBSD.org, ambrisko@FreeBSD.org Cc: Subject: Re: amd64/113232: [mfi] [patch] mfi(4) patch to enable megacli(8) on Dell PowerEdge PERC5 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: Mon, 04 Jun 2007 16:59:02 -0000 Synopsis: [mfi] [patch] mfi(4) patch to enable megacli(8) on Dell PowerEdge PERC5 Responsible-Changed-From-To: freebsd-amd64->ambrisko Responsible-Changed-By: ambrisko Responsible-Changed-When: Mon Jun 4 16:55:26 UTC 2007 Responsible-Changed-Why: I'll take this. We wanted to address some other issues in -current before MFC'ing some code that had know issues and didn't solve some critical problems (panic's) that we found. I just committed some fixes to -current so the new -current stuff will be MFC'ed shortly to 6.X. Sorry for the delay, Scott and myself have been busy with various things. http://www.freebsd.org/cgi/query-pr.cgi?pr=113232 From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 5 16:03:15 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 45A4316A421; Tue, 5 Jun 2007 16:03:15 +0000 (UTC) (envelope-from rafan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1C0DE13C483; Tue, 5 Jun 2007 16:03:15 +0000 (UTC) (envelope-from rafan@FreeBSD.org) Received: from freefall.freebsd.org (rafan@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l55G3Efm044055; Tue, 5 Jun 2007 16:03:15 GMT (envelope-from rafan@freefall.freebsd.org) Received: (from rafan@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l55G3Ekb044051; Tue, 5 Jun 2007 16:03:14 GMT (envelope-from rafan) Date: Tue, 5 Jun 2007 16:03:14 GMT From: Rong-En Fan Message-Id: <200706051603.l55G3Ekb044051@freefall.freebsd.org> To: rafan@FreeBSD.org, freebsd-amd64@FreeBSD.org, rafan@FreeBSD.org Cc: Subject: Re: amd64/101248: vi(1) can crash in ncurses(3) 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: Tue, 05 Jun 2007 16:03:15 -0000 Synopsis: vi(1) can crash in ncurses(3) on amd64 Responsible-Changed-From-To: freebsd-amd64->rafan Responsible-Changed-By: rafan Responsible-Changed-When: Tue Jun 5 16:03:14 UTC 2007 Responsible-Changed-Why: I have a patch for this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=101248 From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 5 19:12:07 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B01E016A469 for ; Tue, 5 Jun 2007 19:12:07 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 29AE713C45E for ; Tue, 5 Jun 2007 19:12:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l55JC293030114; Tue, 5 Jun 2007 15:12:03 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Tue, 5 Jun 2007 14:51:18 -0400 User-Agent: KMail/1.9.6 References: <20070603094814.CA1FB73068@freebsd-current.sentex.ca> <20070603152607.GA41397@rambler-co.ru> In-Reply-To: <20070603152607.GA41397@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706051451.19707.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 05 Jun 2007 15:12:03 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3362/Tue Jun 5 13:02:53 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: amd64@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/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: Tue, 05 Jun 2007 19:12:07 -0000 On Sunday 03 June 2007 11:26:07 am Ruslan Ermilov wrote: > On Sun, Jun 03, 2007 at 05:48:14AM -0400, FreeBSD Tinderbox wrote: > > TB --- 2007-06-03 09:10:00 - tinderbox 2.3 running on=20 freebsd-current.sentex.ca > > TB --- 2007-06-03 09:10:00 - starting HEAD tinderbox run for amd64/amd64 > > TB --- 2007-06-03 09:10:00 - cleaning the object tree > > TB --- 2007-06-03 09:10:15 - checking out the source tree > > TB --- 2007-06-03 09:10:15 - cd /tinderbox/HEAD/amd64/amd64 > > TB --- 2007-06-03 09:10:15 - /usr/bin/cvs -f -R -q -d/home/ncvs=20 update -Pd -A src > > TB --- 2007-06-03 09:20:38 - building world (CFLAGS=3D-O2 -pipe) > > TB --- 2007-06-03 09:20:38 - cd /src > > TB --- 2007-06-03 09:20:38 - /usr/bin/make -B buildworld > > >>> World build started on Sun Jun 3 09:20:39 UTC 2007 > > >>> Rebuilding the temporary build tree > > >>> stage 1.1: legacy release compatibility shims > > >>> stage 1.2: bootstrap tools > > >>> stage 2.1: cleaning up the object tree > > >>> stage 2.2: rebuilding the object tree > > >>> stage 2.3: build tools > > >>> stage 3: cross tools > > >>> stage 4.1: building includes > > >>> stage 4.2: building libraries > > [...] > > =3D=3D=3D> lib/bind/bind9 (depend) > > rm -f .depend > >=20 mkdep -f .depend -a -DVERSION=3D'"9.4.1"' -DHAVE_CONFIG_H -DLIBINTERFACE= =3D30 -DLIBREVISION=3D3 -DLIBAGE=3D0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_L= OCALSTATEDIR=3D'"/var"' -DNS_SYSCONFDIR=3D'"/etc/namedb"' -DNAMED_CONFFILE= =3D'"/etc/namedb/named.conf"' -DRNDC_CONFFILE=3D'"/etc/namedb/rndc.conf"' -= DRNDC_KEYFILE=3D'"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9/.. -I/src/li= b/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9= /../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bind/bind9/../../../= contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../dns -I/src/lib/bind/= bind9/../../../contrib/bind9/lib/isccc/include -I/src/lib/bind/bind9/../../= =2E./contrib/bind9/lib/isccfg/include -I/src/lib/bind/bind9/../../../contri= b/bind9/lib/isc/unix/include -I/src/lib/bind/bind9/../../../contrib/bind9/l= ib/isc/pthreads/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/is= c/include -I/src/lib/bind/bind9/../isc -I/src/lib/bind/bind9/../../../contr= ib/bind9/lib/lwres/unix/include -I/s > > =20 rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/bind/= bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/inclu= de -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include /src= /lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/lib/bind/bind= 9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bind/bind9/../..= /../contrib/bind9/lib/bind9/version.c > > In file included=20 from /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include/isc/refcoun= t.h:23, > > =20 from /src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dns/acl.h:3= 9, > > =20 from /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c:38: >=20 > /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/ato= mic.h:28:2:=20 error: #error "impossible case. check build configuration" > > mkdep: compile failed > > *** Error code 1 > >=20 > I fixed this by the following patch: >=20 > %%% > Index: lib/bind/config.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/lib/bind/config.mk,v > retrieving revision 1.17 > diff -u -p -r1.17 config.mk > --- lib/bind/config.mk 2 Jun 2007 23:19:55 -0000 1.17 > +++ lib/bind/config.mk 3 Jun 2007 14:23:13 -0000 > @@ -63,12 +63,10 @@ CFLAGS+=3D -I${LIB_BIND_DIR} > .endif > =20 > # Use the right version of the atomic.h file from lib/isc > -.if ${MACHINE_ARCH} =3D=3D "amd64" > -ISC_ATOMIC_ARCH=3D x86_64 > +.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "i386" > +ISC_ATOMIC_ARCH=3D x86_32 > .elif ${MACHINE_ARCH} =3D=3D "arm" > ISC_ATOMIC_ARCH=3D mips > -.elif ${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "i386/pc98" > -ISC_ATOMIC_ARCH=3D x86_32 > .else > ISC_ATOMIC_ARCH=3D ${MACHINE_ARCH} > .endif > %%% Arguably, this is a bug in bind9 that if you use gcc you use x86_32 for=20 x86_64, but if you use a different compiler, you use x86_64 for x86_64. I'= d=20 suggest that the bind9 folks either always use x86_32 for x86_64, or always= =20 use x86_64 for x86_64. =2D-=20 John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 5 19:45:32 2007 Return-Path: X-Original-To: amd64@freebsd.org Delivered-To: freebsd-amd64@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D466116A400; Tue, 5 Jun 2007 19:45:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 510C913C469; Tue, 5 Jun 2007 19:45:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l55JC293030114; Tue, 5 Jun 2007 15:12:03 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Tue, 5 Jun 2007 14:51:18 -0400 User-Agent: KMail/1.9.6 References: <20070603094814.CA1FB73068@freebsd-current.sentex.ca> <20070603152607.GA41397@rambler-co.ru> In-Reply-To: <20070603152607.GA41397@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706051451.19707.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 05 Jun 2007 15:12:03 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3362/Tue Jun 5 13:02:53 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: amd64@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/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: Tue, 05 Jun 2007 19:45:33 -0000 On Sunday 03 June 2007 11:26:07 am Ruslan Ermilov wrote: > On Sun, Jun 03, 2007 at 05:48:14AM -0400, FreeBSD Tinderbox wrote: > > TB --- 2007-06-03 09:10:00 - tinderbox 2.3 running on=20 freebsd-current.sentex.ca > > TB --- 2007-06-03 09:10:00 - starting HEAD tinderbox run for amd64/amd64 > > TB --- 2007-06-03 09:10:00 - cleaning the object tree > > TB --- 2007-06-03 09:10:15 - checking out the source tree > > TB --- 2007-06-03 09:10:15 - cd /tinderbox/HEAD/amd64/amd64 > > TB --- 2007-06-03 09:10:15 - /usr/bin/cvs -f -R -q -d/home/ncvs=20 update -Pd -A src > > TB --- 2007-06-03 09:20:38 - building world (CFLAGS=3D-O2 -pipe) > > TB --- 2007-06-03 09:20:38 - cd /src > > TB --- 2007-06-03 09:20:38 - /usr/bin/make -B buildworld > > >>> World build started on Sun Jun 3 09:20:39 UTC 2007 > > >>> Rebuilding the temporary build tree > > >>> stage 1.1: legacy release compatibility shims > > >>> stage 1.2: bootstrap tools > > >>> stage 2.1: cleaning up the object tree > > >>> stage 2.2: rebuilding the object tree > > >>> stage 2.3: build tools > > >>> stage 3: cross tools > > >>> stage 4.1: building includes > > >>> stage 4.2: building libraries > > [...] > > =3D=3D=3D> lib/bind/bind9 (depend) > > rm -f .depend > >=20 mkdep -f .depend -a -DVERSION=3D'"9.4.1"' -DHAVE_CONFIG_H -DLIBINTERFACE= =3D30 -DLIBREVISION=3D3 -DLIBAGE=3D0 -DWANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_L= OCALSTATEDIR=3D'"/var"' -DNS_SYSCONFDIR=3D'"/etc/namedb"' -DNAMED_CONFFILE= =3D'"/etc/namedb/named.conf"' -DRNDC_CONFFILE=3D'"/etc/namedb/rndc.conf"' -= DRNDC_KEYFILE=3D'"/etc/namedb/rndc.key"' -I/src/lib/bind/bind9/.. -I/src/li= b/bind/bind9/../../../contrib/bind9/lib/bind9/include -I/src/lib/bind/bind9= /../../../contrib/bind9/lib/dns/include/dst -I/src/lib/bind/bind9/../../../= contrib/bind9/lib/dns/include -I/src/lib/bind/bind9/../dns -I/src/lib/bind/= bind9/../../../contrib/bind9/lib/isccc/include -I/src/lib/bind/bind9/../../= =2E./contrib/bind9/lib/isccfg/include -I/src/lib/bind/bind9/../../../contri= b/bind9/lib/isc/unix/include -I/src/lib/bind/bind9/../../../contrib/bind9/l= ib/isc/pthreads/include -I/src/lib/bind/bind9/../../../contrib/bind9/lib/is= c/include -I/src/lib/bind/bind9/../isc -I/src/lib/bind/bind9/../../../contr= ib/bind9/lib/lwres/unix/include -I/s > > =20 rc/lib/bind/bind9/../../../contrib/bind9/lib/lwres/include -I/src/lib/bind/= bind9/../lwres -I/src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/inclu= de -I/src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include /src= /lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c /src/lib/bind/bind= 9/../../../contrib/bind9/lib/bind9/getaddresses.c /src/lib/bind/bind9/../..= /../contrib/bind9/lib/bind9/version.c > > In file included=20 from /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/include/isc/refcoun= t.h:23, > > =20 from /src/lib/bind/bind9/../../../contrib/bind9/lib/dns/include/dns/acl.h:3= 9, > > =20 from /src/lib/bind/bind9/../../../contrib/bind9/lib/bind9/check.c:38: >=20 > /src/lib/bind/bind9/../../../contrib/bind9/lib/isc/x86_64/include/isc/ato= mic.h:28:2:=20 error: #error "impossible case. check build configuration" > > mkdep: compile failed > > *** Error code 1 > >=20 > I fixed this by the following patch: >=20 > %%% > Index: lib/bind/config.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/lib/bind/config.mk,v > retrieving revision 1.17 > diff -u -p -r1.17 config.mk > --- lib/bind/config.mk 2 Jun 2007 23:19:55 -0000 1.17 > +++ lib/bind/config.mk 3 Jun 2007 14:23:13 -0000 > @@ -63,12 +63,10 @@ CFLAGS+=3D -I${LIB_BIND_DIR} > .endif > =20 > # Use the right version of the atomic.h file from lib/isc > -.if ${MACHINE_ARCH} =3D=3D "amd64" > -ISC_ATOMIC_ARCH=3D x86_64 > +.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "i386" > +ISC_ATOMIC_ARCH=3D x86_32 > .elif ${MACHINE_ARCH} =3D=3D "arm" > ISC_ATOMIC_ARCH=3D mips > -.elif ${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "i386/pc98" > -ISC_ATOMIC_ARCH=3D x86_32 > .else > ISC_ATOMIC_ARCH=3D ${MACHINE_ARCH} > .endif > %%% Arguably, this is a bug in bind9 that if you use gcc you use x86_32 for=20 x86_64, but if you use a different compiler, you use x86_64 for x86_64. I'= d=20 suggest that the bind9 folks either always use x86_32 for x86_64, or always= =20 use x86_64 for x86_64. =2D-=20 John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Tue Jun 5 21:00:14 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 403DB16A46C for ; Tue, 5 Jun 2007 21:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E4D1313C45A for ; Tue, 5 Jun 2007 21:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l55L0DZH077609 for ; Tue, 5 Jun 2007 21:00:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l55L0D41077608; Tue, 5 Jun 2007 21:00:13 GMT (envelope-from gnats) Date: Tue, 5 Jun 2007 21:00:13 GMT Message-Id: <200706052100.l55L0D41077608@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: "Jeffrey D. Wheelhouse" Cc: Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Jeffrey D. Wheelhouse" List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 21:00:14 -0000 The following reply was made to PR amd64/110655; it has been noted by GNATS. From: "Jeffrey D. Wheelhouse" To: bug-followup@FreeBSD.org Cc: Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. Date: Tue, 05 Jun 2007 16:49:59 -0400 We are still having this problem on 6.2-RELEASE-p4. I have confirmed that using the example source code above with the thr library also does not work: $ cc -m32 -B/usr/lib32 -lthr -o crash32 crash32.c $ ./crash32 Bad system call(coredump) $ cc -lthr -o crash32 crash32.c $ ./crash32 Thread. $ Thanks, Jeff -- Jeff Wheelhouse jdw@wheelhouse.org From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 6 20:54:16 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFD9B16A400 for ; Wed, 6 Jun 2007 20:54:16 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id DDAC913C448 for ; Wed, 6 Jun 2007 20:54:16 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E28051A3C19; Wed, 6 Jun 2007 13:55:35 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 3F47E511F1; Wed, 6 Jun 2007 16:54:16 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 2CC9FC207; Wed, 6 Jun 2007 16:54:16 -0400 (EDT) Date: Wed, 6 Jun 2007 16:54:16 -0400 From: Kris Kennaway To: "Jeffrey D. Wheelhouse" Message-ID: <20070606205416.GA6271@rot13.obsecurity.org> References: <200706052100.l55L0D41077608@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706052100.l55L0D41077608@freefall.freebsd.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-amd64@FreeBSD.org Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. 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, 06 Jun 2007 20:54:17 -0000 On Tue, Jun 05, 2007 at 09:00:13PM +0000, Jeffrey D. Wheelhouse wrote: > The following reply was made to PR amd64/110655; it has been noted by GNATS. > > From: "Jeffrey D. Wheelhouse" > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on > amd64 SMP kernel. > Date: Tue, 05 Jun 2007 16:49:59 -0400 > > We are still having this problem on 6.2-RELEASE-p4. > > I have confirmed that using the example source code above with the thr > library also does not work: > > $ cc -m32 -B/usr/lib32 -lthr -o crash32 crash32.c > $ ./crash32 > Bad system call(coredump) -m32 doesn't DTRT on FreeBSD, can you confirm that this problem exists with a binary compiled by an i386 compiler? Kris From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 6 21:40:09 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B883116A469 for ; Wed, 6 Jun 2007 21:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6774513C4DE for ; Wed, 6 Jun 2007 21:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l56Le9Sd022468 for ; Wed, 6 Jun 2007 21:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l56Le9lp022465; Wed, 6 Jun 2007 21:40:09 GMT (envelope-from gnats) Date: Wed, 6 Jun 2007 21:40:09 GMT Message-Id: <200706062140.l56Le9lp022465@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: Jeff Wheelhouse Cc: Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeff Wheelhouse List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 21:40:09 -0000 The following reply was made to PR amd64/110655; it has been noted by GNATS. From: Jeff Wheelhouse To: Kris Kennaway Cc: bug-followup@FreeBSD.org Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. Date: Wed, 06 Jun 2007 17:11:25 -0400 Kris Kennaway wrote: > -m32 doesn't DTRT on FreeBSD, can you confirm that this problem exists > with a binary compiled by an i386 compiler? I can. $ uname -m i386 $ cc -o crash32-thr crash32.c -lthr $ cc -o crash32-pthread crash32.c -pthread $ md5 crash32-thr crash32-pthread MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 $ ./crash32-thr Thread. $ ./crash32-pthread Thread. $ $ uname -m amd64 $ md5 crash32-thr crash32-pthread MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 $ ./crash32-thr Bad system call(coredump) $ ./crash32-pthread Memory fault(coredump) $ Thanks, Jeff From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 6 21:50:07 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAFE316A468 for ; Wed, 6 Jun 2007 21:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 982F713C4C2 for ; Wed, 6 Jun 2007 21:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l56Lo7Ka022870 for ; Wed, 6 Jun 2007 21:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l56Lo7rG022869; Wed, 6 Jun 2007 21:50:07 GMT (envelope-from gnats) Date: Wed, 6 Jun 2007 21:50:07 GMT Message-Id: <200706062150.l56Lo7rG022869@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: Kris Kennaway Cc: Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kris Kennaway List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 21:50:07 -0000 The following reply was made to PR amd64/110655; it has been noted by GNATS. From: Kris Kennaway To: Jeff Wheelhouse Cc: Kris Kennaway , bug-followup@FreeBSD.org Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. Date: Wed, 6 Jun 2007 17:42:38 -0400 On Wed, Jun 06, 2007 at 05:11:25PM -0400, Jeff Wheelhouse wrote: > Kris Kennaway wrote: > >-m32 doesn't DTRT on FreeBSD, can you confirm that this problem exists > >with a binary compiled by an i386 compiler? > > I can. > > $ uname -m > i386 > $ cc -o crash32-thr crash32.c -lthr > $ cc -o crash32-pthread crash32.c -pthread > $ md5 crash32-thr crash32-pthread > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > $ ./crash32-thr > Thread. > $ ./crash32-pthread > Thread. > $ > > $ uname -m > amd64 > $ md5 crash32-thr crash32-pthread > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > $ ./crash32-thr > Bad system call(coredump) > $ ./crash32-pthread > Memory fault(coredump) > $ OK, that's useful to know. I ran into a problem myself that looked similar but wanted to check first (I didn't isolate it to libthr yet). Kris From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 6 23:53:27 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FA7216A468 for ; Wed, 6 Jun 2007 23:53:27 +0000 (UTC) (envelope-from dixit@netapp.com) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.freebsd.org (Postfix) with ESMTP id 0C12F13C455 for ; Wed, 6 Jun 2007 23:53:26 +0000 (UTC) (envelope-from dixit@netapp.com) X-IronPort-AV: E=Sophos;i="4.16,390,1175497200"; d="scan'208";a="67897961" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 06 Jun 2007 16:24:55 -0700 Received: from dixit-lxp.netapp.com (hohmann-lxp.hq.netapp.com [10.97.16.180] (may be forged)) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id l56NOreN006508 for ; Wed, 6 Jun 2007 16:24:54 -0700 (PDT) Message-ID: <46674245.9020304@netapp.com> Date: Wed, 06 Jun 2007 19:24:53 -0400 From: "Dixit, Amol" User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: amd64 kmod symbol relocation 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, 06 Jun 2007 23:53:27 -0000 Hi, I am having issues loading a test module on amd64 platform, ONLY when its loaded below 2gb (0x80000000). The module is trying to access a function 'printf()' in a shared library which is beyond the 2gb boundary but the runtime loader is trying to relocate the symbol to some other offset in its .text section. (gdb) disass alloc_loader Dump of assembler code for function alloc_loader: 0xffffff000b3a2000 : push %rbp 0xffffff000b3a2001 : mov $0xb3a2026,%rdi 0xffffff000b3a2008 : xor %eax,%eax 0xffffff000b3a200a : mov %rsp,%rbp 0xffffff000b3a200d : callq 0x8024b730 <---- call printf() 0xffffff000b3a2012 : leaveq 0xffffff000b3a2013 : xor %eax,%eax 0xffffff000b3a2015 : retq (gdb) p/x frame.tf_rip $10 = 0xffffff008024b730 <--- panic "privileged instruction fault" address (gdb) info sym 0xffffff008024b730 No symbol matches 0xffffff008024b730. <--- nothing here, hence the panic! (gdb) info sym 0xffffffff8024b730 printf in section .text <--- here it is! beyond 2gb (sign-extended) The module is compiled with kernel memory model (mcmodel=kernel). Any ideas why the relocation is failing in this manner? How do we force kldload to use addresses above 2gb? Object code looks like this: alloc_loader(): 0: 55 push %rbp 1: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 4: R_X86_64_32S .rodata.str1.1+0x6 8: 31 c0 xor %eax,%eax a: 48 89 e5 mov %rsp,%rbp d: e8 00 00 00 00 callq 12 e: R_X86_64_PC32 printf+0xfffffffffffffffc 12: c9 leaveq 13: 31 c0 xor %eax,%eax 15: c3 retq I believe relocation types R_X86_64_32S and R_X86_64_PC32 require top 33 bits 1 or 0 and in case of 'printf' 0xffffff008024b730 doesn't obey it...I guess! Thanks, Amol From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 7 04:38:08 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E23816A41F for ; Thu, 7 Jun 2007 04:38:08 +0000 (UTC) (envelope-from erasme@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id C3DAF13C458 for ; Thu, 7 Jun 2007 04:38:07 +0000 (UTC) (envelope-from erasme@gmail.com) Received: by wr-out-0506.google.com with SMTP id 69so305403wra for ; Wed, 06 Jun 2007 21:38:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=SCS+MXF0F3aohTcqUCYEETPyZQHSFQjU58tAHBpo6PZHVvyvWEyJHhlhrmxX2WlVNqMftqMrAj5sypaHnAX1U5K0tzMf+kqEGHJUAONOWbqviVygZLGr6YknXQE4XhAGaoT/crbi17k/Vjq7C3RoIHkdS/r2AufN5FE6sclCbZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=A57qM0U1dJNeaJ4viMm1ZqOlmCYk7OXSX45ijVbb4dgMRRb+SE/o5Den5UCTi821VvCWf5q1IMY9IKKFqK2JLbUtM+IW3E9J0HKIHQOPyHoyZ5jlZ4f66sX22miPQC9kcxoRcJSChbmHkDuxL6IGkyvgCP4Nt+5TEs5W0B4GHKA= Received: by 10.142.254.8 with SMTP id b8mr66164wfi.1181189573183; Wed, 06 Jun 2007 21:12:53 -0700 (PDT) Received: by 10.142.111.17 with HTTP; Wed, 6 Jun 2007 21:12:53 -0700 (PDT) Message-ID: <7a3bc8a80706062112k12e6dc19wf1f69d49b074ce89@mail.gmail.com> Date: Wed, 6 Jun 2007 21:12:53 -0700 From: "Patrick Maloney" To: freebsd-amd64@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: ATI Radeon X1650 Pro 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: Thu, 07 Jun 2007 04:38:08 -0000 Good evening! Was wondering if you could tell me if the ATI Radeon X1650 PRO PCI Express is compatible with FreeBSD 6.2 AMD64? Any suggestions, comments welcomed! Also, where can I find a clear list of supported hardward for the AMD64 architecture release of FreeBSD? Thank you! Patrick Maloney From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 7 17:10:04 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2E05916A421 for ; Thu, 7 Jun 2007 17:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1084F13C465 for ; Thu, 7 Jun 2007 17:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l57HA3kB098433 for ; Thu, 7 Jun 2007 17:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l57HA3L3098432; Thu, 7 Jun 2007 17:10:03 GMT (envelope-from gnats) Resent-Date: Thu, 7 Jun 2007 17:10:03 GMT Resent-Message-Id: <200706071710.l57HA3L3098432@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lasta Yani Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2435F16A41F for ; Thu, 7 Jun 2007 17:08:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 15A2013C45D for ; Thu, 7 Jun 2007 17:08:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l57H8OvI010080 for ; Thu, 7 Jun 2007 17:08:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l57H8OEJ010079; Thu, 7 Jun 2007 17:08:24 GMT (envelope-from nobody) Message-Id: <200706071708.l57H8OEJ010079@www.freebsd.org> Date: Thu, 7 Jun 2007 17:08:24 GMT From: Lasta Yani To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: amd64/113461: Intel S5000VSA works with FreeBSD/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: Thu, 07 Jun 2007 17:10:04 -0000 >Number: 113461 >Category: amd64 >Synopsis: Intel S5000VSA works with FreeBSD/AMD64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jun 07 17:10:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Lasta Yani >Release: FreeBSD 6.2-RELEASE-p5 >Organization: Orion Cyber Internet (ORION), ISP >Environment: FreeBSD BackUp.orion.net.id 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Mon Jun 4 21:07:39 WIT 2007 root@BackUp.orion.net.id:/usr/obj/usr/src/sys/Orin amd64 >Description: Update for pages http://www.freebsd.org/platforms/amd64/motherboards.html >How-To-Repeat: >Fix: Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-p5 #0: Mon Jun 4 21:07:39 WIT 2007 root@BackUp.orion.net.id:/usr/obj/usr/src/sys/Orin Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU 5120 @ 1.86GHz (1861.93-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6 Features=0xbfebfbff Features2=0x4e3bd,CX16,,,> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 real memory = 1069547520 (1020 MB) avail memory = 1021755392 (974 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 cpu2: on acpi0 acpi_throttle2: on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 cpu3: on acpi0 acpi_throttle3: on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: irq 16 at device 0.0 on pci1 pci2: on pcib2 pcib3: irq 16 at device 0.0 on pci2 pci3: on pcib3 pcib4: irq 17 at device 1.0 on pci2 pci4: on pcib4 pcib5: irq 18 at device 2.0 on pci2 pci5: on pcib5 em0: port 0x3020-0x303f mem 0xb8820000-0xb883ffff,0xb8400000-0xb87fffff irq 18 at device 0.0 on pci5 em0: Ethernet address: 00:15:17:17:b3:80 em1: port 0x3000-0x301f mem 0xb8800000-0xb881ffff,0xb8000000-0xb83fffff irq 19 at device 0.1 on pci5 em1: Ethernet address: 00:15:17:17:b3:81 pcib6: at device 0.3 on pci1 pci6: on pcib6 em2: port 0x2040-0x207f mem 0xb8940000-0xb895ffff,0xb8900000-0xb893ffff irq 24 at device 1.0 on pci6 em2: Ethernet address: 00:02:a5:4e:94:a6 em3: port 0x2000-0x203f mem 0xb8960000-0xb897ffff irq 25 at device 1.1 on pci6 em3: Ethernet address: 00:02:a5:4e:94:a7 pcib7: at device 3.0 on pci0 pci7: on pcib7 pci0: at device 8.0 (no driver attached) pcib8: irq 16 at device 28.0 on pci0 pci8: on pcib8 pcib9: at device 30.0 on pci0 pci9: on pcib9 pci9: at device 12.0 (no driver attached) xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x1400-0x147f mem 0xb8b10000-0xb8b1007f irq 16 at device 13.0 on pci9 miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:10:5a:6d:61:67 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x4030-0x403f irq 20 at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x4048-0x404f,0x4064-0x4067,0x4040-0x4047,0x4060-0x4063,0x4020-0x402f mem 0xb8c00000-0xb8c003ff irq 20 at device 31.2 on pci0 ata2: on atapci1 ata3: on atapci1 pci0: at device 31.3 (no driver attached) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xc0000-0xc8fff,0xc9000-0xc9fff,0xca000-0xcafff,0xcb000-0xcc7ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. ad0: 3882MB at ata0-master PIO4 lapic1: Forcing LINT1 to edge trigger SMP: AP CPU #1 Launched! lapic6: Forcing LINT1 to edge trigger SMP: AP CPU #2 Launched! lapic7: Forcing LINT1 to edge trigger SMP: AP CPU #3 Launched! Trying to mount root from ufs:/dev/ad0s1a >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 7 18:23:15 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C170116A469; Thu, 7 Jun 2007 18:23:15 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 989F613C45E; Thu, 7 Jun 2007 18:23:15 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l57INFH7003656; Thu, 7 Jun 2007 18:23:15 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l57INFm7003652; Thu, 7 Jun 2007 18:23:15 GMT (envelope-from linimon) Date: Thu, 7 Jun 2007 18:23:15 GMT From: Mark Linimon Message-Id: <200706071823.l57INFm7003652@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-www@FreeBSD.org Cc: Subject: Re: www/113461: Intel S5000VSA works with FreeBSD/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: Thu, 07 Jun 2007 18:23:15 -0000 Synopsis: Intel S5000VSA works with FreeBSD/AMD64 Responsible-Changed-From-To: freebsd-amd64->freebsd-www Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jun 7 18:22:54 UTC 2007 Responsible-Changed-Why: This is for the website documentation. http://www.freebsd.org/cgi/query-pr.cgi?pr=113461 From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 7 19:30:30 2007 Return-Path: X-Original-To: freebsd-amd64@FreeBSD.org Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C01816A400; Thu, 7 Jun 2007 19:30:30 +0000 (UTC) (envelope-from arjo.hooimeijer@xs4all.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id 9877E13C480; Thu, 7 Jun 2007 19:30:29 +0000 (UTC) (envelope-from arjo.hooimeijer@xs4all.nl) Received: from mail.hooimeijer.nl.eu.org (deathstar.xs4all.nl [82.93.72.165]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id l57JFVxG004826; Thu, 7 Jun 2007 21:15:32 +0200 (CEST) (envelope-from arjo.hooimeijer@xs4all.nl) Received: from localhost (localhost.starwars.nl.eu.org [127.0.0.1]) by mail.hooimeijer.nl.eu.org (Postfix) with ESMTP id 375791CC1F; Thu, 7 Jun 2007 21:15:31 +0200 (CEST) X-Virus-Scanned: by XS4ALL Virus Scanner Received: from mail.hooimeijer.nl.eu.org ([127.0.0.1]) by localhost (deathstar.starwars.nl.eu.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fMba9UkkJMC7; Thu, 7 Jun 2007 21:15:30 +0200 (CEST) Received: from [192.168.1.3] (router.starwars.nl.eu.org [192.168.1.1]) by mail.hooimeijer.nl.eu.org (Postfix) with ESMTP id AC7661CC1E; Thu, 7 Jun 2007 21:15:30 +0200 (CEST) Message-ID: <46685946.9070405@xs4all.nl> Date: Thu, 07 Jun 2007 21:15:18 +0200 From: Arjo Hooimeijer User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Mark Linimon References: <200706021939.l52JdDcL041099@freefall.freebsd.org> In-Reply-To: <200706021939.l52JdDcL041099@freefall.freebsd.org> X-Enigmail-Version: 0.94.3.0 OpenPGP: id=072C07C7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-amd64@FreeBSD.org Subject: Re: amd64/88299: swapcontext fails with errno 0 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: Thu, 07 Jun 2007 19:30:30 -0000 Wow, that's a loong time ago. Yes, problem was solved. Mark Linimon wrote: > Synopsis: swapcontext fails with errno 0 > > State-Changed-From-To: open->feedback > State-Changed-By: linimon > State-Changed-When: Sat Jun 2 19:38:40 UTC 2007 > State-Changed-Why: > To submitter: did davidxu's patch fix this problem for you? > > > Responsible-Changed-From-To: freebsd-amd64->linimon > Responsible-Changed-By: linimon > Responsible-Changed-When: Sat Jun 2 19:38:40 UTC 2007 > Responsible-Changed-Why: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=88299 From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 12:47:00 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D194716A421; Fri, 8 Jun 2007 12:47:00 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A657113C46A; Fri, 8 Jun 2007 12:47:00 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l58Cl0Qb086537; Fri, 8 Jun 2007 12:47:00 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l58Cl0wO086533; Fri, 8 Jun 2007 12:47:00 GMT (envelope-from gavin) Date: Fri, 8 Jun 2007 12:47:00 GMT From: Gavin Atkinson Message-Id: <200706081247.l58Cl0wO086533@freefall.freebsd.org> To: jan@digitaldaemon.com, gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org Cc: Subject: Re: amd64/107345: [panic] Kernel Panic/Crash on dd if=/dev/ad4 of=/dev/ad6 bs=1m 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: Fri, 08 Jun 2007 12:47:00 -0000 Synopsis: [panic] Kernel Panic/Crash on dd if=/dev/ad4 of=/dev/ad6 bs=1m State-Changed-From-To: open->closed State-Changed-By: gavin State-Changed-When: Fri Jun 8 12:45:57 UTC 2007 State-Changed-Why: Duplicate of amd64/107639 http://www.freebsd.org/cgi/query-pr.cgi?pr=107345 From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 13:07:24 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 721A616A469; Fri, 8 Jun 2007 13:07:24 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 488E213C45E; Fri, 8 Jun 2007 13:07:24 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l58D7Ogb087670; Fri, 8 Jun 2007 13:07:24 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l58D7OEb087666; Fri, 8 Jun 2007 13:07:24 GMT (envelope-from gavin) Date: Fri, 8 Jun 2007 13:07:24 GMT From: Gavin Atkinson Message-Id: <200706081307.l58D7OEb087666@freefall.freebsd.org> To: mohringarmin@hotmail.de, gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org Cc: Subject: Re: amd64/95414: kernel crashes during install 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: Fri, 08 Jun 2007 13:07:24 -0000 Synopsis: kernel crashes during install State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Fri Jun 8 13:06:35 UTC 2007 State-Changed-Why: Ask for more information http://www.freebsd.org/cgi/query-pr.cgi?pr=95414 From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 13:10:08 2007 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BF7616A421 for ; Fri, 8 Jun 2007 13:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E813F13C44C for ; Fri, 8 Jun 2007 13:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l58DA7ot087805 for ; Fri, 8 Jun 2007 13:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l58DA7T2087804; Fri, 8 Jun 2007 13:10:07 GMT (envelope-from gnats) Date: Fri, 8 Jun 2007 13:10:07 GMT Message-Id: <200706081310.l58DA7T2087804@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: Gavin Atkinson Cc: Subject: Re: amd64/95414: kernel crashes during install X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 13:10:08 -0000 The following reply was made to PR amd64/95414; it has been noted by GNATS. From: Gavin Atkinson To: bug-followup@FreeBSD.org, mohringarmin@hotmail.de Cc: Subject: Re: amd64/95414: kernel crashes during install Date: Fri, 08 Jun 2007 14:05:47 +0100 Hi, Is it possible for you to copy down the last few lines shown during a verbose boot just before the panic, and the panic messages themselves? A digital picture of the screen would be sufficient if you don't have time to copy the messages down before the machine reboots. Without knowing exactly where during boot the machine is crashing, I'm afraid it's unlikely anyone will be able to diagnose the problem. Thanks, Gavin From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 17:52:55 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D42E316A46C for ; Fri, 8 Jun 2007 17:52:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6030113C45D for ; Fri, 8 Jun 2007 17:52:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l58HqrOk058477; Fri, 8 Jun 2007 13:52:53 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org, Kris Kennaway Date: Fri, 8 Jun 2007 13:32:16 -0400 User-Agent: KMail/1.9.6 References: <200706062150.l56Lo7rG022869@freefall.freebsd.org> In-Reply-To: <200706062150.l56Lo7rG022869@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706081332.18176.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 08 Jun 2007 13:52:53 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3380/Fri Jun 8 08:34:26 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. 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: Fri, 08 Jun 2007 17:52:55 -0000 On Wednesday 06 June 2007 05:50:07 pm Kris Kennaway wrote: > The following reply was made to PR amd64/110655; it has been noted by GNATS. > > From: Kris Kennaway > To: Jeff Wheelhouse > Cc: Kris Kennaway , bug-followup@FreeBSD.org > Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. > Date: Wed, 6 Jun 2007 17:42:38 -0400 > > On Wed, Jun 06, 2007 at 05:11:25PM -0400, Jeff Wheelhouse wrote: > > Kris Kennaway wrote: > > >-m32 doesn't DTRT on FreeBSD, can you confirm that this problem exists > > >with a binary compiled by an i386 compiler? > > > > I can. > > > > $ uname -m > > i386 > > $ cc -o crash32-thr crash32.c -lthr > > $ cc -o crash32-pthread crash32.c -pthread > > $ md5 crash32-thr crash32-pthread > > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > > $ ./crash32-thr > > Thread. > > $ ./crash32-pthread > > Thread. > > $ > > > > $ uname -m > > amd64 > > $ md5 crash32-thr crash32-pthread > > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > > $ ./crash32-thr > > Bad system call(coredump) > > $ ./crash32-pthread > > Memory fault(coredump) > > $ > > OK, that's useful to know. I ran into a problem myself that looked > similar but wanted to check first (I didn't isolate it to libthr yet). libthr and umtx compat32 support isn't present in 6.x yet. I have a patch to MFC it, but the one person who has tested it still got crashes. I don't think even 7 has libpthread compat32 support yet. http://www.FreeBSD.org/~jhb/patches/thr32.patch is my current libthr + umtx compat32 patch for 6.x. -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 18:16:25 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42AF816A400 for ; Fri, 8 Jun 2007 18:16:25 +0000 (UTC) (envelope-from peter@wemm.org) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.freebsd.org (Postfix) with ESMTP id 2762713C457 for ; Fri, 8 Jun 2007 18:16:25 +0000 (UTC) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (canning.wemm.org [192.203.228.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by canning.wemm.org (Postfix) with ESMTP id 654A046B63 for ; Fri, 8 Jun 2007 10:58:19 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.14.1/8.13.8) with ESMTP id l58HuUL7089798; Fri, 8 Jun 2007 10:56:30 -0700 (PDT) (envelope-from peter@wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.14.1/8.13.8/Submit) id l58HuUc5089797; Fri, 8 Jun 2007 10:56:30 -0700 (PDT) (envelope-from peter@wemm.org) X-Authentication-Warning: overcee.wemm.org: peter set sender to peter@wemm.org using -f From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Fri, 8 Jun 2007 10:56:30 -0700 User-Agent: KMail/1.9.5 References: <46674245.9020304@netapp.com> In-Reply-To: <46674245.9020304@netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706081056.30475.peter@wemm.org> Cc: Subject: Re: amd64 kmod symbol relocation 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: Fri, 08 Jun 2007 18:16:25 -0000 On Wednesday 06 June 2007 16:24, Dixit, Amol wrote: > Hi, > I am having issues loading a test module on amd64 platform, ONLY when > its loaded below 2gb (0x80000000). > The module is trying to access a function 'printf()' in a shared > library which is beyond the 2gb boundary but the runtime loader is > trying to relocate the symbol to some other offset in its .text > section. > > (gdb) disass alloc_loader > Dump of assembler code for function alloc_loader: > 0xffffff000b3a2000 : push %rbp > 0xffffff000b3a2001 : mov $0xb3a2026,%rdi > 0xffffff000b3a2008 : xor %eax,%eax > 0xffffff000b3a200a : mov %rsp,%rbp > 0xffffff000b3a200d : callq 0x8024b730 > <---- call printf() > 0xffffff000b3a2012 : leaveq > 0xffffff000b3a2013 : xor %eax,%eax > 0xffffff000b3a2015 : retq > > (gdb) p/x frame.tf_rip > $10 = 0xffffff008024b730 <--- panic "privileged > instruction fault" address > (gdb) info sym 0xffffff008024b730 > No symbol matches 0xffffff008024b730. <--- nothing here, hence > the panic! > (gdb) info sym 0xffffffff8024b730 > printf in section .text <--- here it is! > beyond 2gb (sign-extended) > > The module is compiled with kernel memory model (mcmodel=kernel). Any > ideas why the relocation is failing in this manner? How do we force > kldload to use addresses above 2gb? > > Object code looks like this: > > alloc_loader(): > 0: 55 push %rbp > 1: 48 c7 c7 00 00 00 00 mov $0x0,%rdi > 4: R_X86_64_32S .rodata.str1.1+0x6 > 8: 31 c0 xor %eax,%eax > a: 48 89 e5 mov %rsp,%rbp > d: e8 00 00 00 00 callq 12 > e: R_X86_64_PC32 > printf+0xfffffffffffffffc 12: c9 leaveq > 13: 31 c0 xor %eax,%eax > 15: c3 retq > > I believe relocation types R_X86_64_32S and R_X86_64_PC32 require top > 33 bits 1 or 0 and in case of 'printf' 0xffffff008024b730 doesn't > obey it...I guess! > > Thanks, > Amol OK, you're running into the same problems we had at work. It sounds like you're doing some evil things that are not in standard freebsd. I'm guessing that you've extended kvm considerably so that it is now no longer restricted to 2GB. The problem is that -mcmodel=kernel generates code that only allows for immediate asm offsets of +/- 31 bits. Consider the instruction in the trace above for "callq alloc_loader". Note that it is e8 00 00 00 00 - 4 bytes only! Not 64 bit. If you are going to have modules loaded outside of that 2gb of space, then you will need to compile with -fpic. You need a tiny tweak to the loader to allow this, but it works. -fpic causes the compiler to make all external function calls and data references via indirect lookups, and then relocations are generated against a 64 bit jump (PLT) and offset table (GOT). That allows the kld to make immediate mode jumps and data references to something that is more than 2GB away. There is a small performance penalty for using -fpic mode (but NOT as much of a penalty as it is in i386 mode!), but it still isn't free. Your only alternative is to come up with a way of giving the loader a way to allocate space in that top 2gb of kvm. We use -fpic kld modules at work FWIW. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 8 18:23:35 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23AE316A41F; Fri, 8 Jun 2007 18:23:35 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1169313C44B; Fri, 8 Jun 2007 18:23:35 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 247F71A3C1A; Fri, 8 Jun 2007 11:23:32 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 69FA7513AE; Fri, 8 Jun 2007 14:23:34 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 613A2C219; Fri, 8 Jun 2007 14:23:34 -0400 (EDT) Date: Fri, 8 Jun 2007 14:23:34 -0400 From: Kris Kennaway To: John Baldwin Message-ID: <20070608182334.GF46273@rot13.obsecurity.org> References: <200706062150.l56Lo7rG022869@freefall.freebsd.org> <200706081332.18176.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706081332.18176.jhb@freebsd.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-amd64@freebsd.org, Kris Kennaway Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on amd64 SMP kernel. 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: Fri, 08 Jun 2007 18:23:35 -0000 On Fri, Jun 08, 2007 at 01:32:16PM -0400, John Baldwin wrote: > On Wednesday 06 June 2007 05:50:07 pm Kris Kennaway wrote: > > The following reply was made to PR amd64/110655; it has been noted by GNATS. > > > > From: Kris Kennaway > > To: Jeff Wheelhouse > > Cc: Kris Kennaway , bug-followup@FreeBSD.org > > Subject: Re: amd64/110655: [threads] 32 bit threaded applications crash on > amd64 SMP kernel. > > Date: Wed, 6 Jun 2007 17:42:38 -0400 > > > > On Wed, Jun 06, 2007 at 05:11:25PM -0400, Jeff Wheelhouse wrote: > > > Kris Kennaway wrote: > > > >-m32 doesn't DTRT on FreeBSD, can you confirm that this problem exists > > > >with a binary compiled by an i386 compiler? > > > > > > I can. > > > > > > $ uname -m > > > i386 > > > $ cc -o crash32-thr crash32.c -lthr > > > $ cc -o crash32-pthread crash32.c -pthread > > > $ md5 crash32-thr crash32-pthread > > > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > > > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > > > $ ./crash32-thr > > > Thread. > > > $ ./crash32-pthread > > > Thread. > > > $ > > > > > > $ uname -m > > > amd64 > > > $ md5 crash32-thr crash32-pthread > > > MD5 (crash32-thr) = 91aea395dd2c5798d7cba9a216c4c227 > > > MD5 (crash32-pthread) = a590f1c97e5ec11ddc94fa3d7f4bf167 > > > $ ./crash32-thr > > > Bad system call(coredump) > > > $ ./crash32-pthread > > > Memory fault(coredump) > > > $ > > > > OK, that's useful to know. I ran into a problem myself that looked > > similar but wanted to check first (I didn't isolate it to libthr yet). > > libthr and umtx compat32 support isn't present in 6.x yet. I have a patch to > MFC it, but the one person who has tested it still got crashes. I don't > think even 7 has libpthread compat32 support yet. > > http://www.FreeBSD.org/~jhb/patches/thr32.patch is my current libthr + umtx > compat32 patch for 6.x. Possibly it's a different bug, but I have a threaded i386 7.0 binary that SIGBUSes on amd64. It is statically linked to libthr and does mmap calls. I can give you the binary if you like. Kris