From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.bugs Subject: bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9) Date: Mon, 15 Feb 2016 14:51:01 -0400 Message-ID: <86d1rxst7u.fsf@phe.ftfl.ca> References: <867fkz16lw.fsf@phe.ftfl.ca> <85si0vjkos.fsf@iznogoud.viz> <56C0D9ED.3030002@cs.ucla.edu> <86vb5qty7i.fsf@phe.ftfl.ca> <56C1898C.8010508@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1455562344 24589 80.91.229.3 (15 Feb 2016 18:52:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 18:52:24 +0000 (UTC) Cc: Wolfgang Jenkner , ashish@FreeBSD.org, 22065@debbugs.gnu.org, Dmitry Antipov To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 19:52:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVOFn-0005r5-8w for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 19:52:11 +0100 Original-Received: from localhost ([::1]:35264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVOFm-0002qt-Ha for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 13:52:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVOFh-0002qB-QD for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 13:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVOFe-0004ef-K8 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 13:52:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVOFe-0004eM-DS for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 13:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVOFe-0000KH-3N for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 13:52:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <867fkz16lw.fsf@phe.ftfl.ca> Resent-From: Joseph Mingrone Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2016 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22065-submit@debbugs.gnu.org id=B22065.14555622731179 (code B ref 22065); Mon, 15 Feb 2016 18:52:02 +0000 Original-Received: (at 22065) by debbugs.gnu.org; 15 Feb 2016 18:51:13 +0000 Original-Received: from localhost ([127.0.0.1]:40430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVOEq-0000Ix-QP for submit@debbugs.gnu.org; Mon, 15 Feb 2016 13:51:13 -0500 Original-Received: from mail-io0-f176.google.com ([209.85.223.176]:35050) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVOEo-0000Ik-V6 for 22065@debbugs.gnu.org; Mon, 15 Feb 2016 13:51:11 -0500 Original-Received: by mail-io0-f176.google.com with SMTP id g203so141468676iof.2 for <22065@debbugs.gnu.org>; Mon, 15 Feb 2016 10:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; bh=1n1o9AAx39IBVafGag9gCxS/Qcxrp2OYH4P0jyIwT6k=; b=N2Q7HN1sInFk90NPWCzlKw9u2PgZ9AF4y/oIV5RNAru0CcCzmew9zgSCXFqLgWqc1m J9IGkBJt8Evr0Gg2BWEDnFGOdVzRdMqG3S6Z2jgENiPCSmqVA0mFc7LGre2aoRC8ndDA ltJnWW5lsusIlVAUNlgh5mgMmGDZjazZLOdAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version:content-type; bh=1n1o9AAx39IBVafGag9gCxS/Qcxrp2OYH4P0jyIwT6k=; b=Fp20nFlq/f3TPTo9luL//Rz2WDxrdYz1cxuznZ+jrt5MvqNY1pQoBgO6S5EZtwG06I 4xPOD8qDg2x3wPafQVHNczmLgzVLIUCGsuHdGtX42W+CCE+kAiuvojptzFY7CAHB4DrD dPQQCDE/DeCCvDQepEjzMUKUWx44037sU3Nb6X5HizC/9W1oNs9pXfSKzyUtXsH3CDXG NM5QtLxMnAbuxeGOuTtjwNFzi9MiGAhEs7CY4QQPgKxUPhATHypk2JQfE4na0YNQfYAZ vI9ski3CoNw4dH+jWhZp1WZIRjFfvRVxLdiMuWFkKWtUs8vxQSinoh5FaY0W+TLE/mJi 8zbw== X-Gm-Message-State: AG10YOSXQ5iqJ6uCFiNRHsGXQAf7YveLiAZZQENRdncqsLGpvKysBKp9vVaqpcsPCz/FTw== X-Received: by 10.107.157.70 with SMTP id g67mr17339733ioe.38.1455562265213; Mon, 15 Feb 2016 10:51:05 -0800 (PST) Original-Received: from phe.ftfl.ca.ftfl.ca (hlfxns016cw-156057149063.dhcp-dynamic.FibreOp.ns.bellaliant.net. [156.57.149.63]) by smtp.gmail.com with ESMTPSA id b101sm12491019iod.43.2016.02.15.10.51.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Feb 2016 10:51:03 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113093 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Paul Eggert writes: > Joseph Mingrone wrote: >> I'll submit a patch for the FreeBSD port to use clang. > Hold on a minute. Please don't do that, as Emacs is far more tested on GC= C and > (among other things) GCC has better compile-time checking on Emacs. Inste= ad of > papering over the bug (if there is a bug), let's fix it. Here are some p= oints: Sure. I'm willing to test further. I just thought that since 1) clang is = the default compiler in FreeBSD 10+ and 2) if the problem was with the default, ancient compiler in FreeBSD 9.x, I might be abusing everyone's valuable tim= e. > 1. I just now booted FreeBSD-9.3-RELEASE-i386 under VirtualBox and verifi= ed that > Emacs dumped core without my recent patch > . I > also verified that Emacs build and runs fine with the patch. So, if Emacs= is > dumping core for you on FreeBSD 9 i386, there's something different about= your > configuration that is causing the problem. Are you sure you installed the= patch > correctly in your build? I set the FreeBSD emacs-devel port (FreeBSD package building system) to pull from commit 44b16f6 and I still see the problem on amd64 (with X), but not = on i386. > 2. My fix assumes Emacs is built with GCC 4.2.1, the standard GCC on Free= BSD 9 > i386. However, your recent email indicates= that > you're building with GCC 4.8.5. Possibly the problem is due to this compi= ler or > its installation. Can you please try building with the standard GCC 4.2.1 > instead? > 3. Your most recent email says this: > Message from gcc-4.8.5_2: > To ensure binaries built with this toolchain find appropriate versions > of the necessary run-time libraries, you may want to link using > -Wl,-rpath=3D/usr/local/lib/gcc48 > And yet the same email's log says that Emacs was not linked with that > flag. Perhaps this configuration glitch explains your problem? The newer GCC was referenced because a dependency required it, however Emacs itself was built with the default compiler (cc) which is a patched GCC 4.2.= 1 (as Wolfgang stated). Joseph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWwh4VAAoJEDakDIOw1u+egIQQAIQ3qykGFUQlMRzT4rVqVt1j pROlnrN5cLPBNWBG67TM5zdX7e7D6DTF/C0eKMnRW0TasfUa8IV6PUCvNbbR/+kV RNcHKZOMlUUz9d+V6zgB//w/GHGtAVfCFlXMpuH4bX5nNtbSDWq55SxmYoy5p9tU cNLjO5332UkwfvJioy+ZSLVOcEQdSKxJDVyFS0dws1VwF4+pEqkupSV9O4dCq3iM YG4yBwDa7XxsY+ifRkPVXpr9eyYtVX+zYDXgSWBHxqHeWspCJAxcBSMPl2+77kFn dFHASMLbEDNc58BmU72i8vNo0ayyQ6LXR8Ae+VSajsttJOzPiZ9WXmROe7AyCA+p LMOIx5FqdJJRAbGvygIy3snnZHphtALAd43WJ9z+8a4jHfFDjm0JBYSgPLNjf3yS XnXYb+hFxQqLn/wm9+LGRdCOZkNzxsJFxoGCx4N/SmqCPN+wVPldzfKe1xWGHLdv ernMjV2SEFJc+D2H7uwexvRkzrgRY3DPxITSVo5EMU17BpYCEG5+UMnAA15jds2x wVFA+aVG+gcB3jrlUs+EMnLAx7czN1IbDvuXrTQ8+PiNH1OGdp+8Lu/EbJ8DYAfW JGQVWx/yJ1nQsLjt11MlVv76Ar53YuIrR5fs/S6uHgf9xBdIlBC6NisWaF3RiT7M 5ooVYBZlYaWEEVVI01qK =TJnM -----END PGP SIGNATURE----- --=-=-=--