[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-11-02 Thread rdiezmail-gcc at yahoo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 R. Diez changed: What|Removed |Added CC||rdiezmail-gcc at yahoo dot de --- Comment

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-11-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #16 from Jonathan Wakely --- For the record, r12-8589-gade3197134cc9e was needed to fix something in the commits above, and was also backported to gcc-12.

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-07-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 Jonathan Wakely changed: What|Removed |Added Target Milestone|13.0|12.2 --- Comment #15 from Jonathan

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-07-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #14 from CVS Commits --- The releases/gcc-12 branch has been updated by Sebastian Huber : https://gcc.gnu.org/g:ade3197134cc9ed2b7e589a7b58c73110ae13f1c commit r12-8589-gade3197134cc9ed2b7e589a7b58c73110ae13f1c Author: Jonathan

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #12 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:1e65f2ed99024f23c56f7b6a961898bcaa882a92 commit r13-1039-g1e65f2ed99024f23c56f7b6a961898bcaa882a92 Author: Jonathan Wakely

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread chrisj at rtems dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #10 from Chris Johns --- (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

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #9 from Jonathan Wakely --- Created attachment 53103 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53103=edit Fix lifetime bugs for non-TLS eh_globals Does this work?

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #8 from Jonathan Wakely --- As Andrew says, the problem here is that __cxa_get_globals is being used after the global has been destroyed. Nothing done to the _M_init member in the destructor can be changed to fix that, accessing an

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #7 from Jonathan Wakely --- (In reply to Chris Johns from comment #6) > It would have to be last or close to it and I have no idea how that could be > done without additional attributes that are not standard. That's fine, the C++

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread chrisj at rtems dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #6 from Chris Johns --- (In reply to Andrew Pinski from comment #5) > There has to be an ordering issue of the calling of the deconstructors vs > the ordering of the constructors. > > Maybe the problem is the `eh_gloabls init`

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #5 from Andrew Pinski --- There has to be an ordering issue of the calling of the deconstructors vs the ordering of the constructors. Maybe the problem is the `eh_gloabls init` priority is not set correctly to be first/last.

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-08 Thread chrisj at rtems dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #4 from Chris Johns --- (In reply to Andrew Pinski from comment #3) > Sounds like the order of deconstructors is wrong. > Where is __cxxabiv1::__cxa_get_globals being called from that is the problem? The

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #3 from Andrew Pinski --- Sounds like the order of deconstructors is wrong. Where is __cxxabiv1::__cxa_get_globals being called from that is the problem?

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 --- Comment #2 from Andrew Pinski --- (In reply to Sebastian Huber from comment #1) > Just for reference, the destructor code is (eh_globals.cc): > > struct __eh_globals_init > { > __gthread_key_t _M_key; > bool

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-07 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 Sebastian Huber changed: What|Removed |Added CC||sebastian.huber@embedded-br