[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

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 22 14:08:00 GMT 2017


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at ucw dot cz

--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> ---
Looking at resolution file of the compilation unit:

$ cat -- -lm.res
1
ice.o 39
...
1022 a2617b1cb04da8c1 PREVAILING_DEF_IRONLY _ZNSs4_Rep20_S_empty_rep_storageE
...


I'm not fully familiar with symbol resolution, but this looks fishy.
$ readelf -s /usr/lib64/gcc/x86_64-suse-linux/7/libstdc++.so --wide | grep
_ZNSs4_Rep20_S_empty_rep_storageE
  4310: 0000000000388d40    32 OBJECT  UNIQUE DEFAULT   28
_ZNSs4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4

Any ideas Jonathan?


More information about the Gcc-bugs mailing list