public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "chrisj at rtems dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false
Date: Thu, 09 Jun 2022 00:19:26 +0000	[thread overview]
Message-ID: <bug-105880-4-5QsuQN08Gl@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105880-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #10 from Chris Johns <chrisj at rtems dot org> ---
(In reply to Jonathan Wakely from comment #9)
> Created attachment 53103 [details]
> Fix lifetime bugs for non-TLS eh_globals
> 
> Does this work?

That is a great way to solve this problem given the limitation the eh_globals
has. 

And yes the eh_globals single-threaded fallback buffer does have this problem
however for RTEMS that is a corner case because something has called `exit()`
on an embedded realtime system and that typically means a reset is about to
happen.

FYI Sebastian has reviewed our compiler set up as TLS was not enabled. The
architectures that support TLS should soon be switching to that.

  parent reply	other threads:[~2022-06-09  0:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08  5:19 [Bug libstdc++/105880] New: " chrisj at rtems dot org
2022-06-08  5:50 ` [Bug libstdc++/105880] " sebastian.huber@embedded-brains.de
2022-06-08  5:56 ` pinskia at gcc dot gnu.org
2022-06-08  5:58 ` pinskia at gcc dot gnu.org
2022-06-08  6:00 ` chrisj at rtems dot org
2022-06-08  6:04 ` pinskia at gcc dot gnu.org
2022-06-08  6:12 ` chrisj at rtems dot org
2022-06-08  9:00 ` redi at gcc dot gnu.org
2022-06-08  9:19 ` redi at gcc dot gnu.org
2022-06-08  9:49 ` redi at gcc dot gnu.org
2022-06-09  0:19 ` chrisj at rtems dot org [this message]
2022-06-09  9:07 ` redi at gcc dot gnu.org
2022-06-10 14:24 ` cvs-commit at gcc dot gnu.org
2022-06-10 14:27 ` redi at gcc dot gnu.org
2022-07-21  7:55 ` cvs-commit at gcc dot gnu.org
2022-07-21  8:58 ` redi at gcc dot gnu.org
2022-11-02 14:14 ` redi at gcc dot gnu.org
2022-11-02 14:55 ` rdiezmail-gcc at yahoo dot de

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-105880-4-5QsuQN08Gl@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).