From owner-freebsd-stable@FreeBSD.ORG Wed Sep 19 17:13:28 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D43201065670; Wed, 19 Sep 2012 17:13:28 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id 64F808FC14; Wed, 19 Sep 2012 17:13:27 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id q8JHCocP043022; Wed, 19 Sep 2012 19:12:50 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 7FBD812392; Wed, 19 Sep 2012 19:12:50 +0200 (CEST) Date: Wed, 19 Sep 2012 19:12:50 +0200 From: Roland Smith To: Dimitry Andric Message-ID: <20120919171250.GA50969@slackbox.erewhon.net> References: <20120912060420.GE31029@lonesome.com> <20120917194317.GB43284@slackbox.erewhon.net> <50579DEC.3060902@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <50579DEC.3060902@FreeBSD.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Mark Linimon , FreeBSD Stable Mailing List , Andreas Nilsson Subject: Re: Clang as default compiler X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 17:13:29 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 18, 2012 at 12:02:20AM +0200, Dimitry Andric wrote: > On 2012-09-17 21:43, Roland Smith wrote: > > On Wed, Sep 12, 2012 at 01:04:20AM -0500, Mark Linimon wrote: > ... > >> For most of the failures, we are already aware of them, as a result of > >> our periodic runs. So, just filing a PR to say "broken on clang" does= n't > >> really help us all that much. > > > > Those are build failures. What about crashes? E.g. I've recently had > > crashes with x11-wm/i3 and x11/rxvt-unicode. Both problems disappeared = after > > recompiling them with gcc46. >=20 > We can't figure them all out without *your* help. :-) Please attempt to > run the program in a debugger, gather core dumps, etc. Or at least, try > to make it into a reproducible case, so somebody else can attempt to > diagnose it. And please specify the exact version of clang you used. I was using the clang that is in base in 9.0-RELEASE-p3: FreeBSD clang version 3.0 (branches/release_30 142614) 20111021 Target: x86_64-unknown-freebsd9.0 Thread model: posix I was thinking of installing the most recent clang-devel since it seemed to have a lot of improvements, but I was wondering what is the correct way of makeing sure that it is used in preference to the one in base? I thought ab= out moving /usr/local/bin before /usr/bin in $PATH, but I'm not sure that is a good idea. > Now, most of the time this is because programs contain bugs, or > undefined behavior, which happens to go unnoticed with gcc, for example > because it optimized by accident in such a way to mask the bug. In a > few other cases, real clang bugs are found, and most of the time, those > can be fixed quickly. >=20 > That said, in these cases specifically, how do the applications crash? > Right at startup, or after specific inputs or user actions? Rxvt-unicode seemed to crash reliably whenever I was scrolling through a document with less(1). If I reached the end of the document, and pressed Pa= ge Down (keysim Next), it would crash. It was quite weird.=20 I couldn't pinpoint a concrete action that crashed x11-wm/i3. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --FCuugMFkClbJLl1L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBZ/RIACgkQEnfvsMMhpyViTgCfU7FdcBj9QHAmqz+UFo455RTx M/4AnAyUYQ/Wjxp+kunJXr8Ln6lqGlaz =NPak -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--