GNU bug report logs - #7186
Emacs segfaults during compile with -fstack-protector-all

Previous Next

Package: emacs;

Reported by: William Throwe <wthrowe <at> MIT.EDU>

Date: Sun, 10 Oct 2010 18:54:02 UTC

Severity: important

Tags: patch

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7186 in the body.
You can then email your comments to 7186 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7186; Package emacs. (Sun, 10 Oct 2010 18:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to William Throwe <wthrowe <at> MIT.EDU>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 10 Oct 2010 18:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: William Throwe <wthrowe <at> MIT.EDU>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs segfaults during compile with -fstack-protector-all
Date: Sun, 10 Oct 2010 14:54:43 -0400
make[2]: Leaving directory
`/var/tmp/portage/app-editors/emacs-23.2/work/emacs-23.2/lisp'
`/bin/pwd`/temacs --batch --load loadup bootstrap
make[1]: *** [bootstrap-emacs] Segmentation fault
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-23.2/work/emacs-23.2/src'

This is emacs 23.2 on Linux (Gentoo) x86 with gcc 4.4.3

A backtrace and other info can be found at
https://bugs.gentoo.org/show_bug.cgi?id=294479
(in particular see comment 4)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7186; Package emacs. (Sun, 10 Oct 2010 21:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 7186 <at> debbugs.gnu.org (full text, mbox):

From: William Throwe <wthrowe <at> MIT.EDU>
To: 7186 <at> debbugs.gnu.org
Subject: Patch
Date: Sun, 10 Oct 2010 17:10:15 -0400
SSP can reorder function arguments, so the function args can't be
treated as an array if it is enabled.  Simple patch fixing the problem
follows.

*** emacs-23.2/src/m/intel386.h Sat Apr  3 18:26:07 2010
--- emacs-23.2.patch/src/m/intel386.h   Sun Oct 10 16:36:31 2010
***************
*** 103,107 ****
--- 103,111 ----
  #define SEGMENT_MASK ((SEGMENT_SIZE)-1)
  #endif

+ #ifdef __SSP_ALL__
+ #define NO_ARG_ARRAY
+ #endif
+
  /* arch-tag: 746338f0-cb7b-4f49-a98c-cb50817cf2ec
     (do not change this comment) */




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7186; Package emacs. (Fri, 28 Jan 2011 17:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 7186 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: William Throwe <wthrowe <at> MIT.EDU>
Cc: 7186 <at> debbugs.gnu.org
Subject: Re: Emacs segfaults during compile with -fstack-protector-all
Date: Fri, 28 Jan 2011 12:09:02 -0500
I've committed a patch to the branch that turns on NO_ARG_ARRAY
unconditionally.  Thanks.




bug closed, send any further explanations to William Throwe <wthrowe <at> MIT.EDU> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Fri, 28 Jan 2011 17:02:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Feb 2011 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 71 days ago.

Previous Next


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