From owner-freebsd-stable@FreeBSD.ORG Mon Dec 22 20:50:11 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77FEE445 for ; Mon, 22 Dec 2014 20:50:11 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34C8410A1 for ; Mon, 22 Dec 2014 20:50:11 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::d9b0:aa62:dd95:6b8f] (unknown [IPv6:2001:7b8:3a7:0:d9b0:aa62:dd95:6b8f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 0F10FB80A; Mon, 22 Dec 2014 21:50:06 +0100 (CET) Subject: Re: CPUTYPEs includig avx are suspicious with clang in stable/10 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b3 From: Dimitry Andric In-Reply-To: <54944D08.8000202@omnilan.de> Date: Mon, 22 Dec 2014 21:49:58 +0100 Message-Id: <18B24CB4-0F39-4A7B-982C-9FAA5CE36749@FreeBSD.org> References: <54944D08.8000202@omnilan.de> To: Harry Schmalzbauer X-Mailer: Apple Mail (2.1993) Cc: FreeBSD Stable Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2014 20:50:11 -0000 --Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 19 Dec 2014, at 17:06, Harry Schmalzbauer wrote: > > I'm seeing sporadic problems (core dumps) with binaries compiled with > CPUTYPE=core-i-avx. > They run fine on IvyBridge, but fail on Haswells. > Stripping avx from MACHINE_CPU (by defining CPUTYPE=corei7 instead of > core-i-avx) solved all crashes on the haswell system. Can you provide a concrete test case? E.g. binaries with both optimizations, of which one exhibits the crash? > I have no idea if applications like pkg(8) make use of AVX, I'd bet they > don't do. If you put CPUTYPE?=core-i-avx in /etc/make.conf, and recompile ports with that configuration, they can certainly use AVX, if there are parts in the code that can be vectorized (e.g. certain loops). > So I guess it's something wrong with clang. > Unfortuantely I currently don't have a development installation on any > haswell system to provide some useful backtraces, but perhaps somebody > with compiler knowledge can have a look at this problem? It is hard to say anything without more concrete information. :) -Dimitry --Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlSYg/0ACgkQsF6jCi4glqMn7gCfS9o/cX7wSz5/YX4Q7azAGHyR tlEAoNfkYkgsQEtsuxEgY75pxM2KlO58 =npG6 -----END PGP SIGNATURE----- --Apple-Mail=_30B7364B-B4E6-447F-95FE-00B2D26F9AD3--