From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Trippelsdorf Newsgroups: gmane.emacs.bugs Subject: bug#24065: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher Date: Mon, 25 Jul 2016 17:58:40 +0200 Message-ID: <20160725155840.GE315@x4> References: <20160725072232.GA315@x4> <57960850.TeswPyw0Vd9RvMtd%wjenkner@inode.at> <20160725125549.GC315@x4> <579613a4.xZGsf2uxC1wSlERP%wjenkner@inode.at> <20160725142414.GD315@x4> <579634e2.pR6ELx3DWCEAJiKN%wjenkner@inode.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1469462371 31165 80.91.229.3 (25 Jul 2016 15:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2016 15:59:31 +0000 (UTC) Cc: eggert@cs.ucla.edu, 24065@debbugs.gnu.org To: Wolfgang Jenkner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 25 17:59:17 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 1bRiHk-0006lC-TF for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 17:59:17 +0200 Original-Received: from localhost ([::1]:33218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRiHk-0002gi-1L for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 11:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRiHa-0002d1-Ke for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRiHW-0005vu-GS for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRiHV-0005vf-W5 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bRiHV-0001ld-L0 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 11:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Trippelsdorf Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2016 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24065-submit@debbugs.gnu.org id=B24065.14694623256768 (code B ref 24065); Mon, 25 Jul 2016 15:59:01 +0000 Original-Received: (at 24065) by debbugs.gnu.org; 25 Jul 2016 15:58:45 +0000 Original-Received: from localhost ([127.0.0.1]:37114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRiHF-0001l6-Bc for submit@debbugs.gnu.org; Mon, 25 Jul 2016 11:58:45 -0400 Original-Received: from ud10.udmedia.de ([194.117.254.50]:45306 helo=mail.ud10.udmedia.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRiHD-0001kv-2m for 24065@debbugs.gnu.org; Mon, 25 Jul 2016 11:58:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=trippelsdorf.de; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=+V0QybK1oONRdEuKzWB2/NnxIaim bVooGIKYwcJwTcM=; b=ooBlDHHJMPqusv2vRjHnw3FN8cZ9QlFljM53Yv1k8gzh QxQGIaSQRKzuQYG2rvxhpB7TUvEQrIO5MNGlCbOIgfwKPQy4FFkDZGUXt6W8R9Wi W4g+rgynATH549acv/JvUx+kYtkLNfQwOhYnjtd+GeUT/n/B2WPQtQcYwwLeW40= Original-Received: (qmail 22558 invoked from network); 25 Jul 2016 17:58:40 +0200 Original-Received: from ip5b41f88a.dynamic.kabel-deutschland.de (HELO x4) (ud10?360p3@91.65.248.138) by mail.ud10.udmedia.de with ESMTPSA (ECDHE-RSA-AES256-SHA encrypted, authenticated); 25 Jul 2016 17:58:40 +0200 Content-Disposition: inline In-Reply-To: <579634e2.pR6ELx3DWCEAJiKN%wjenkner@inode.at> 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" Xref: news.gmane.org gmane.emacs.bugs:121520 Archived-At: On 2016.07.25 at 17:48 +0200, Wolfgang Jenkner wrote: > Markus Trippelsdorf wrote: > > > > > This happens on a Gentoo system (glibc trunk, gcc-6 latest branch): > > > But version 24.5 is the latest stable release. > > It is sad, that it cannot be compiled with gcc-5 or gcc-6. > > Actually, on GNU/Linux src/gmalloc.c (which contains the code in > question) is not even compiled, normally. > > The reason for your compilation troubles seems to be that you use > a recent git checkout of glibc (as you stated above) which I guess > already contains > > http://repo.or.cz/glibc.git/commitdiff/2ba3cfa1607c36613f3b30fb1ae4ec530245ce64 > > IIUC, this commit removes the declaration of __malloc_initialize_hook, > so the emacs configure check for "whether malloc is Doug Lea style" > will fail. > > And this is the reason why you suddenly need malloc etc. from > src/gmalloc.c. Thanks for finding the root cause. I can confirm that my glibc versions contains the commit in question. -- Markus