public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "xry111 at mengyan1223 dot wang" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/101749] gcc -static-libasan broken because libasan.a needs __cxa_guard_release in libstdc++
Date: Tue, 03 Aug 2021 12:32:13 +0000	[thread overview]
Message-ID: <bug-101749-4-0YruifawXB@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101749-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101749

--- Comment #1 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
I guess it's fixed in trunk by something in
90e46074e6b3561ae7d8ebd205127f286cc0c6b6:

@@ -166,9 +158,10 @@ bool SupportsColoredOutput(fd_t fd) {
 #if !SANITIZER_GO
 // TODO(glider): different tools may require different altstack size.
 static uptr GetAltStackSize() {
-  // SIGSTKSZ is not enough.
-  static const uptr kAltStackSize = SIGSTKSZ * 4;
-  return kAltStackSize;
+  // Note: since GLIBC_2.31, SIGSTKSZ may be a function call, so this may be
+  // more costly that you think. However GetAltStackSize is only call 2-3
times
+  // per thread so don't cache the evaluation.
+  return SIGSTKSZ * 4;
 }

Not tested though.

  parent reply	other threads:[~2021-08-03 12:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03 12:23 [Bug sanitizer/101749] New: " xry111 at mengyan1223 dot wang
2021-08-03 12:29 ` [Bug sanitizer/101749] " marxin at gcc dot gnu.org
2021-08-03 12:32 ` xry111 at mengyan1223 dot wang [this message]
2021-08-03 12:57 ` rguenth at gcc dot gnu.org
2021-08-03 13:08 ` xry111 at mengyan1223 dot wang
2021-08-03 13:10 ` xry111 at mengyan1223 dot wang
2021-08-03 16:15 ` redi at gcc dot gnu.org
2021-08-04  8:08 ` marxin at gcc dot gnu.org
2021-08-04  9:00 ` jakub at gcc dot gnu.org
2021-08-04 15:31 ` marxin at gcc dot gnu.org
2021-08-04 15:34 ` jakub at gcc dot gnu.org
2021-08-04 15:36 ` marxin at gcc dot gnu.org
2021-08-05  8:48 ` cvs-commit at gcc dot gnu.org
2021-08-05  8:49 ` cvs-commit at gcc dot gnu.org
2021-08-05  8:51 ` cvs-commit at gcc dot gnu.org
2021-08-05  8:52 ` marxin 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-101749-4-0YruifawXB@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).