From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9) Date: Mon, 15 Feb 2016 00:17:16 -0800 Organization: UCLA Computer Science Department Message-ID: <56C1898C.8010508@cs.ucla.edu> References: <867fkz16lw.fsf@phe.ftfl.ca> <85si0vjkos.fsf@iznogoud.viz> <56C0D9ED.3030002@cs.ucla.edu> <86vb5qty7i.fsf@phe.ftfl.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455524303 836 80.91.229.3 (15 Feb 2016 08:18:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 08:18:23 +0000 (UTC) Cc: Wolfgang Jenkner , ashish@FreeBSD.org, 22065@debbugs.gnu.org, Dmitry Antipov To: Joseph Mingrone Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 09:18:12 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 1aVEMG-0001kD-HT for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 09:18:12 +0100 Original-Received: from localhost ([::1]:57682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVEMF-0007ow-NY for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 03:18:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVEMB-0007op-ED for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 03:18:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVEM6-0007uI-E5 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 03:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVEM6-0007uE-AA for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 03:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVEM5-0004xV-VU for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 03:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2016 08:18:01 +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.145552425019023 (code B ref 22065); Mon, 15 Feb 2016 08:18:01 +0000 Original-Received: (at 22065) by debbugs.gnu.org; 15 Feb 2016 08:17:30 +0000 Original-Received: from localhost ([127.0.0.1]:39326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVELa-0004wl-IO for submit@debbugs.gnu.org; Mon, 15 Feb 2016 03:17:30 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42905) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVELZ-0004wW-4v for 22065@debbugs.gnu.org; Mon, 15 Feb 2016 03:17:29 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5F894160FC1; Mon, 15 Feb 2016 00:17:22 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0TygL2RN6GKg; Mon, 15 Feb 2016 00:17:20 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 437F3160FD2; Mon, 15 Feb 2016 00:17:20 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rUNUBHTPrrgw; Mon, 15 Feb 2016 00:17:20 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1B4D7160FC1; Mon, 15 Feb 2016 00:17:20 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <86vb5qty7i.fsf@phe.ftfl.ca> 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:113060 Archived-At: 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 GCC and (among other things) GCC has better compile-time checking on Emacs. Instead of papering over the bug (if there is a bug), let's fix it. Here are some points: 1. I just now booted FreeBSD-9.3-RELEASE-i386 under VirtualBox and verified 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? 2. My fix assumes Emacs is built with GCC 4.2.1, the standard GCC on FreeBSD 9 i386. However, your recent email indicates that you're building with GCC 4.8.5. Possibly the problem is due to this compiler 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=/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?