From owner-freebsd-toolchain@FreeBSD.ORG Tue Sep 23 09:59:10 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1359AC39; Tue, 23 Sep 2014 09:59:10 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C45ADDCD; Tue, 23 Sep 2014 09:59:09 +0000 (UTC) Received: from [192.168.2.2] (unknown [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1A5F8B803; Tue, 23 Sep 2014 11:58:58 +0200 (CEST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: clang (both 3.3 and 3.4) OOM crashes on HEAD From: Dimitry Andric In-Reply-To: <542105A3.4090507@iki.fi> Date: Tue, 23 Sep 2014 11:58:49 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <98949B82-4109-4628-BE4E-9817D5614D8A@FreeBSD.org> References: <20140228143606.GD29171@hades.panopticon> <20140228154328.GA13454@hades.panopticon> <20140922231016.GA1301@hades.panopticon> <542105A3.4090507@iki.fi> To: Pasi Parviainen X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-stable@FreeBSD.org, freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 09:59:10 -0000 On 23 Sep 2014, at 07:31, Pasi Parviainen = wrote: > On 23.9.2014 2:10, Dmitry Marakasov wrote: >> * Dmitry Marakasov (amdmi3@amdmi3.ru) wrote: >>>>> I've been getting some failure mails from pkg building cluster = related >>>>> to clang crashes: >>>>>=20 >>>>> = http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2014-02-28_01h43m56s= /logs/arx-libertatis-1.0.3_2.log >>>>> = http://beefy1.isc.freebsd.org/bulk/head-i386-default/2014-02-21_03h01m36s/= logs/supertuxkart-0.8.1.log ... >>> http://people.freebsd.org/~amdmi3/clang-eats-mem-bug.tar.bz2 >>>=20 >>> The bug is reproducible on my 10.x with both system clang 3.3 (after >>> removing -vectorize-loops -vectorize-slp options) and with clang 3.4 >>> from ports. >>=20 >> I'll just remind that this is still an issue, and it's getting into >> 10.1. Could we maybe disable compiler features with lead to these >> crashes? >>=20 >=20 > This seems to be same issue as in = http://llvm.org/bugs/show_bug.cgi?id=3D20893 for which there is patch = review going = onhttp://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140922/236= 415.html. >=20 > Your test case is reproducible with the trunk of llvm/clang and the = patch in review resolves it. Other workaround is to disable generation = of debug information by removing -g flag. Hm, I had assumed this problem was fixed by importing r203311 from upstream llvm trunk, in head r263313. But apparently it is not. The upstream patch seems to fix your specific test case, but it is still in review, so I prefer to wait until it is actually committed, before I import it. -Dimitry