GNU bug report logs - #8217
23.3; Runtime segmentation fault when compiled with -O2 on GNU/Linux

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Thu, 10 Mar 2011 08:36:02 UTC

Severity: normal

Tags: unreproducible

Found in version 23.3

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Ulrich Mueller <ulm <at> gentoo.org>
Cc: 8217 <at> debbugs.gnu.org
Subject: bug#8217: 23.3; Runtime segmentation fault when compiled with -O2 on GNU/Linux
Date: Thu, 10 Mar 2011 09:52:54 +0100
Ulrich Mueller <ulm <at> gentoo.org> writes:

> Forwarding downstream bug: <https://bugs.gentoo.org/show_bug.cgi?id=358177>
>
> Emacs 23.3 compiled with -O2 on x86_64-pc-linux-gnu immediately fails
> with a segmentation fault at runtime. This is with GCC 4.5.2 (but it
> also fails when compiled with GCC 4.4.5 or 4.3.5).
>
>    $ emacs -Q
>    Fatal error (11)Segmentation fault
>
> The problem disappears when -fno-strict-aliasing is added to CFLAGS.

Try compiling with -Wstrict-aliasing.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

Previous Next


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