[Bug libstdc++/111347] Memory leak loading a shared library built with --static-libsdtc++ when version script is used

2023-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111347

--- Comment #4 from Jonathan Wakely  ---
There's a reason it's marked as unique: it needs to be globally visible and
globally unique.

[Bug libstdc++/111347] Memory leak loading a shared library built with --static-libsdtc++ when version script is used

2023-09-08 Thread gyunaev at ulduzsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111347

--- Comment #3 from George Yunaev  ---
Indeed making a unique symbol local results in a leak.

[Bug libstdc++/111347] Memory leak loading a shared library built with --static-libsdtc++ when version script is used

2023-09-08 Thread gyunaev at ulduzsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111347

--- Comment #2 from George Yunaev  ---
Adding -fno-gnu-unique to the makefile for libleak.so doesn't remove the leak.

[Bug libstdc++/111347] Memory leak loading a shared library built with --static-libsdtc++ when version script is used

2023-09-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111347

--- Comment #1 from Andrew Pinski  ---
I am pretty sure _ZNSt8messagesIwE2idE is marked as GNU unique