[Bug libstdc++/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 21 11:43:00 GMT 2017


--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The bug is that the symbols in lisbtdc++.so are attempting to delete the
_S_empty_rep_storage object, which suggests that this check is false when it
should be true:

  this != &_S_empty_rep()

That suggests we have multiple definitions of the empty rep symbol, which
aren't being combined.

More information about the Gcc-bugs mailing list