This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Sep 2017 19:13:17 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
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.