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