From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elric Milon Newsgroups: gmane.emacs.bugs Subject: bug#22522: Commit b88e9cded7ae3756e3a2ec4a23e8df352a0239f9 breaks emacs dumping for me Date: Tue, 02 Feb 2016 22:14:54 +0100 Message-ID: <87vb66ddbl.fsf@carbon.whirm.eu> References: <56B0E6B9.5020609@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454448095 24177 80.91.229.3 (2 Feb 2016 21:21:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2016 21:21:35 +0000 (UTC) Cc: Andy Moreton , 22522@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 02 22:21:20 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 1aQiNz-0001Pc-Ue for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 22:21:20 +0100 Original-Received: from localhost ([::1]:59530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQiNw-0000hU-2U for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 16:21:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQiNm-0000Yj-OP for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 16:21:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQiNj-0000ml-Bh for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 16:21:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQiNj-0000mg-85 for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 16:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQiNj-0005GN-3s for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 16:21:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Elric Milon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2016 21:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22522 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22522-submit@debbugs.gnu.org id=B22522.145444800620111 (code B ref 22522); Tue, 02 Feb 2016 21:21:03 +0000 Original-Received: (at 22522) by debbugs.gnu.org; 2 Feb 2016 21:20:06 +0000 Original-Received: from localhost ([127.0.0.1]:57178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQiMn-0005EI-LZ for submit@debbugs.gnu.org; Tue, 02 Feb 2016 16:20:06 -0500 Original-Received: from whirm.eu ([164.132.0.150]:38841 helo=mx1.whirm.eu) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQiHu-00055s-02 for 22522@debbugs.gnu.org; Tue, 02 Feb 2016 16:15:02 -0500 Original-Received: from carbon (a83-161-224-81.adsl.xs4all.nl [::ffff:83.161.224.81]) (AUTH: LOGIN postal, TLS: TLSv1/SSLv3,128bits,AES128-GCM-SHA256) by mx1.whirm.eu with ESMTPSA; Tue, 02 Feb 2016 22:14:55 +0100 id 00000000000C1652.56B11C4F.00002C63 User-agent: mu4e 0.9.17; emacs 24.5.1 In-reply-to: <56B0E6B9.5020609@cs.ucla.edu> X-Mailman-Approved-At: Tue, 02 Feb 2016 16:20:04 -0500 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:112295 Archived-At: Paul Eggert writes: > Thanks for reporting this. I reproduced the problem on Fedora 23 x86-64. > It appears to be a bug in link-time optimization. The symbol > __malloc_initialize_hook is marked external in alloc.o, but merely > static (private) in temacs: > > $ nm -o alloc.o temacs | grep __malloc_init > alloc.o:00000000002e0a40 D __malloc_initialize_hook > temacs:0000000000b25340 d __malloc_initialize_hook > > We used to define this variable in emacs.o, and we now do it in alloc.o. > Possibly we were lucky that the code ever worked, as I guess the LTO bug > strikes depending on link time order. > > I installed the attached patch, which works around the bug for me. > Please give it a try. Are any of you connected to the folks who > implement LTO? It'd be nice to report this bug to them somehow. I checked out latest master which appears to contain this patch and it's building again. Thanks! -- Elric Milon PGP: 3939C2B494084E2F | https://whirm.eu