public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "patrick.marlier at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug boehm-gc/52179] boehm-gc incompatible with aslr on darwin11
Date: Wed, 22 Feb 2012 22:32:00 -0000	[thread overview]
Message-ID: <bug-52179-4-taBp9i9HZa@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52179-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52179

Patrick Marlier <patrick.marlier at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |patrick.marlier at gmail
                   |                            |dot com

--- Comment #8 from Patrick Marlier <patrick.marlier at gmail dot com> 2012-02-22 22:30:52 UTC ---
As discussed in https://github.com/ivmai/bdwgc/issues/13, this was fixed in
boehm-gc but due to the stage 4, I don't expect to the boehm-gc version be
upgraded. Does a workaround should be proposed?

You can try that but 1) this is untested (and probably is not enough), 2)
NO_PTHREAD_GET_STACKADDR_NP macro does not exists in current boehm-gc so
probably it will create problems too.

Index: os_dep.c
===================================================================
--- os_dep.c    (revision 184398)
+++ os_dep.c    (working copy)
@@ -1011,6 +1011,14 @@ ptr_t GC_get_stack_base()
 #if !defined(BEOS) && !defined(AMIGA) && !defined(MSWIN32) \
     && !defined(MSWINCE) && !defined(OS2) && !defined(NOSYS) && !defined(ECOS)

+# if defined(DARWIN)
+    /* We could use pthread_get_stackaddr_np even in case of a  */
+    /* single-threaded gclib (there is no -lpthread on Darwin). */
+#  include <pthread.h>
+#  undef STACKBOTTOM
+#  define STACKBOTTOM (ptr_t)pthread_get_stackaddr_np(pthread_self())
+# endif /* defined(DARWIN) */
+
 ptr_t GC_get_stack_base()
 {
 #   if defined(HEURISTIC1) || defined(HEURISTIC2) || \


  parent reply	other threads:[~2012-02-22 22:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 23:47 [Bug boehm-gc/52179] New: " howarth at nitro dot med.uc.edu
2012-02-08 23:55 ` [Bug boehm-gc/52179] " howarth at nitro dot med.uc.edu
2012-02-09  0:35 ` howarth at nitro dot med.uc.edu
2012-02-09  0:40 ` howarth at nitro dot med.uc.edu
2012-02-09  0:47 ` howarth at nitro dot med.uc.edu
2012-02-09  0:57 ` howarth at nitro dot med.uc.edu
2012-02-09 15:06 ` howarth at nitro dot med.uc.edu
2012-02-11  1:11 ` howarth at nitro dot med.uc.edu
2012-02-22 22:32 ` patrick.marlier at gmail dot com [this message]
2012-02-23  4:34 ` howarth at nitro dot med.uc.edu
2012-02-23  4:40 ` mikestump at comcast dot net
2012-02-23  8:19 ` mikestump at comcast dot net
2012-02-23 15:17 ` howarth at nitro dot med.uc.edu
2012-02-23 15:18 ` iains at gcc dot gnu.org
2012-02-23 15:42 ` patrick.marlier at gmail dot com
2012-02-23 15:50 ` patrick.marlier at gmail dot com
2012-02-23 15:53 ` howarth at nitro dot med.uc.edu
2012-02-23 18:31 ` howarth at nitro dot med.uc.edu
2012-02-23 18:38 ` howarth at nitro dot med.uc.edu
2012-02-23 18:44 ` howarth at nitro dot med.uc.edu
2012-02-23 18:51 ` mikestump at comcast dot net
2012-02-23 18:53 ` howarth at nitro dot med.uc.edu
2012-02-23 18:57 ` patrick.marlier at gmail dot com
2012-02-23 18:58 ` mikestump at comcast dot net
2012-02-23 21:02 ` howarth at nitro dot med.uc.edu
2012-02-23 21:57 ` mikestump at comcast dot net
2012-02-23 22:05 ` howarth at nitro dot med.uc.edu
2012-02-24 15:52 ` pmarlier at gcc dot gnu.org
2012-02-29  6:04 ` howarth at nitro dot med.uc.edu
2012-03-02 18:23 ` mrs at gcc dot gnu.org
2012-03-02 18:35 ` mrs at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52179-4-taBp9i9HZa@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).