This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #17 from Martin Liška <marxin at gcc dot gnu.org> ---
So another observation, it's not related to STB_GNU_UNIQUE.
Using --disable-gnu-unique-object:

$ readelf -s /home/marxin/bin/gcc3/lib64/libstdc++.so.6 --wide | grep storage
  1431: 000000000038dd60    32 OBJECT  WEAK   DEFAULT   27
_ZNSs4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4
  4467: 000000000038dd80    32 OBJECT  WEAK   DEFAULT   27
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4
  3633: 000000000038dd60    32 OBJECT  WEAK   DEFAULT   27
_ZNSs4_Rep20_S_empty_rep_storageE
  4224: 000000000038dd80    32 OBJECT  WEAK   DEFAULT   27
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE

$ grep storage pr82172-2.res 
1344 a6363178d2c55d5a PREVAILING_DEF_IRONLY _ZNSs4_Rep20_S_empty_rep_storageE

Still, similar problem, I will debug ld a bit tomorrow.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]