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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Markus Trippelsdorf <markus <at> trippelsdorf.de>
Subject: bug#24065: closed (Re: commit 09ece4d341a7 (Restore the calloc
 family) causes miscompile for gcc-5 and higher)
Date: Tue, 26 Jul 2016 07:09:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#24065: commit 09ece4d341a7 (Restore the calloc family) causes miscompile for gcc-5 and higher

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 24065 <at> debbugs.gnu.org.

-- 
24065: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24065
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Wolfgang Jenkner <wjenkner <at> inode.at>, markus <at> trippelsdorf.de
Cc: 24065-done <at> debbugs.gnu.org
Subject: Re: commit 09ece4d341a7 (Restore the calloc family) causes miscompile
 for gcc-5 and higher
Date: Tue, 26 Jul 2016 09:08:22 +0200
On 07/25/2016 05:48 PM, Wolfgang Jenkner wrote:
> IIUC, this commit removes  the declaration of __malloc_initialize_hook,
> so the emacs configure check for "whether malloc is Doug Lea style"
> will fail.

This problem should be fixed on Emacs master and emacs-25, as well as in 
the current release candidate for Emacs 25 
<ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.1-rc1.tar.xz>. If you're 
still observing the problem in any of these editions of Emacs, please 
let us know. In the meantime I will close the bug report as I think this 
bug is fixed now.


[Message part 3 (message/rfc822, inline)]
From: Markus Trippelsdorf <markus <at> trippelsdorf.de>
To: bug-gnu-emacs <at> gnu.org
Cc: Wolfgang Jenkner <wjenkner <at> inode.at>
Subject: commit 09ece4d341a7 (Restore the calloc family) causes miscompile
 for gcc-5 and higher
Date: Mon, 25 Jul 2016 09:22:32 +0200
commit 09ece4d341a7e07fab7be22868ebcadae8641c79
Author: Wolfgang Jenkner <wjenkner <at> inode.at>
Date:   Tue Feb 9 15:04:40 2016 -0800

    Restore the calloc family.

causes gcc-5 and higher to compile calloc to an endless loop.
-fno-builtin-malloc should be used to work around the problem.

See: https://gcc.gnu.org/ml/gcc-help/2015-03/msg00109.html
for a similar example.


-- 
Markus



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

Previous Next


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