GNU bug report logs - #24065
commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher

Previous Next

Package: emacs;

Reported by: Markus Trippelsdorf <markus <at> trippelsdorf.de>

Date: Mon, 25 Jul 2016 07:23:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Markus Trippelsdorf <markus <at> trippelsdorf.de>
To: Wolfgang Jenkner <wjenkner <at> inode.at>
Cc: eggert <at> cs.ucla.edu, 24065 <at> debbugs.gnu.org
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
On 2016.07.25 at 17:48 +0200, Wolfgang Jenkner wrote:
> Markus Trippelsdorf <markus <at> trippelsdorf.de> 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




This bug report was last modified 8 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.