all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7186: Emacs segfaults during compile with -fstack-protector-all
@ 2010-10-10 18:54 William Throwe
  2010-10-10 21:10 ` bug#7186: Patch William Throwe
  2011-01-28 17:09 ` bug#7186: Emacs segfaults during compile with -fstack-protector-all Chong Yidong
  0 siblings, 2 replies; 3+ messages in thread
From: William Throwe @ 2010-10-10 18:54 UTC (permalink / raw)
  To: 7186

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)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#7186: Patch
  2010-10-10 18:54 bug#7186: Emacs segfaults during compile with -fstack-protector-all William Throwe
@ 2010-10-10 21:10 ` William Throwe
  2011-01-28 17:09 ` bug#7186: Emacs segfaults during compile with -fstack-protector-all Chong Yidong
  1 sibling, 0 replies; 3+ messages in thread
From: William Throwe @ 2010-10-10 21:10 UTC (permalink / raw)
  To: 7186

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) */





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#7186: Emacs segfaults during compile with -fstack-protector-all
  2010-10-10 18:54 bug#7186: Emacs segfaults during compile with -fstack-protector-all William Throwe
  2010-10-10 21:10 ` bug#7186: Patch William Throwe
@ 2011-01-28 17:09 ` Chong Yidong
  1 sibling, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2011-01-28 17:09 UTC (permalink / raw)
  To: William Throwe; +Cc: 7186

I've committed a patch to the branch that turns on NO_ARG_ARRAY
unconditionally.  Thanks.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-28 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-10 18:54 bug#7186: Emacs segfaults during compile with -fstack-protector-all William Throwe
2010-10-10 21:10 ` bug#7186: Patch William Throwe
2011-01-28 17:09 ` bug#7186: Emacs segfaults during compile with -fstack-protector-all Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.